Эх сурвалжийг харах

HUE-5277 [oozie] User object in Job may not always be initialized

krish 9 жил өмнө
parent
commit
9f70614

+ 1 - 1
desktop/libs/liboozie/src/liboozie/submission2.py

@@ -311,7 +311,7 @@ STORED AS TEXTFILE %s""" % (self.properties.get('send_result_path'), '\n\n\n'.jo
     has_deployment_dir_access = False
     if self.job.deployment_dir and self.fs.exists(self.job.deployment_dir):
       statbuf = self.fs.stats(self.job.deployment_dir)
-      has_deployment_dir_access = statbuf and (statbuf.user == self.job.user.username)
+      has_deployment_dir_access = statbuf and (statbuf.user == self.user.username)
 
     # Case of a shared job
     if self.job.document and self.user != self.job.document.owner or not has_deployment_dir_access: