Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-4633

[editor] Auto-created oozie schedule WF docs can raise permissions exception for shared users

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 3.10.0
    • Fix Version/s: None
    • Component/s: app.editor
    • Labels:
      None

      Description

      Since we now create an oozie workflow document ("Schedule of...") when we save or run any Hive query, a user that opens a shared document will run into a permissions exception in Oozie decorators:

      File "/Users/jennykim/Dev/hue/apps/oozie/src/oozie/decorators.py", line 69, in decorate
      doc2.can_read_or_exception(request.user)

      So these auto-created WFs need to either inherit the permissions of the dependency documents, or we need to somehow bypass the permissions check of the WF doc for shared documents.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                romain Romain Rigaux
                Reporter:
                jennykim Jenny Kim
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: