Bläddra i källkod

HUE-4816 [oozie] Execute from Filebrowser fails with execute permission

To avoid:
Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): Permission denied: user=romain, access=EXECUTE, inode="/user/hue/oozie/workspaces/hue-oozie-1470771063.27/workflow.xml":romain:supergroup:-rw-r--r-- (Ancestor /user/hue/oozie/workspaces/hue-oozie-1470771063.27/workflow.xml is not a directory).
Romain Rigaux 9 år sedan
förälder
incheckning
ea3813ed65
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      apps/oozie/src/oozie/views/dashboard.py

+ 1 - 1
apps/oozie/src/oozie/views/dashboard.py

@@ -892,7 +892,7 @@ def submit_external_job(request, application_path):
       mapping['dryrun'] = request.POST.get('dryrun_checkbox') == 'on'
       application_name = os.path.basename(application_path)
       application_class = Bundle if application_name == 'bundle.xml' else Coordinator if application_name == 'coordinator.xml' else get_workflow()
-      mapping[application_class.get_application_path_key()] = application_path
+      mapping[application_class.get_application_path_key()] = os.path.dirname(application_path)
 
       try:
         submission = Submission(request.user, fs=request.fs, jt=request.jt, properties=mapping)