|
@@ -1350,6 +1350,8 @@ def extract_archive_using_batch_job(request):
|
|
|
|
|
|
|
|
if upload_path and archive_name:
|
|
if upload_path and archive_name:
|
|
|
try:
|
|
try:
|
|
|
|
|
+ upload_path = urllib.unquote(upload_path)
|
|
|
|
|
+ archive_name = urllib.unquote(archive_name)
|
|
|
response = extract_archive_in_hdfs(request, upload_path, archive_name)
|
|
response = extract_archive_in_hdfs(request, upload_path, archive_name)
|
|
|
except Exception, e:
|
|
except Exception, e:
|
|
|
response['message'] = _('Exception occurred while extracting archive: %s' % e)
|
|
response['message'] = _('Exception occurred while extracting archive: %s' % e)
|
|
@@ -1371,6 +1373,9 @@ def compress_files_using_batch_job(request):
|
|
|
|
|
|
|
|
if upload_path and file_names and archive_name:
|
|
if upload_path and file_names and archive_name:
|
|
|
try:
|
|
try:
|
|
|
|
|
+ upload_path = urllib.unquote(upload_path)
|
|
|
|
|
+ archive_name = urllib.unquote(archive_name)
|
|
|
|
|
+ file_names = [urllib.unquote(name) for name in file_names]
|
|
|
response = compress_files_in_hdfs(request, file_names, upload_path, archive_name)
|
|
response = compress_files_in_hdfs(request, file_names, upload_path, archive_name)
|
|
|
except Exception, e:
|
|
except Exception, e:
|
|
|
response['message'] = _('Exception occurred while compressing files: %s' % e)
|
|
response['message'] = _('Exception occurred while compressing files: %s' % e)
|