Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-2667

Running the disable-presto-plugin.sh script will always get stuck

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: plugins
    • Labels:
      None

      Description

      Running the disable-presto-plugin.sh script will always get stuck. Because the script sets the
      controlName to an empty string and passes it to the function addOrUpdatePropertyToFile when disable the presto plugin. If controlName is an empty string, addOrUpdatePropertyToFile will ignore this parameter and let fn to be the second parameter. So $3 passed to checkPropertyInFile will be empty. In checkPropertyInFile, if the second parameter is empty, the sed command will never return, and the disable-presto-plugin.sh script will always get stuck.

      We should pass the default value of access-control.name and set controlName to be allow-all when disable presto plugin.

      The default value of access-control.name can be seen here: https://prestodb.io/docs/current/security/built-in-system-access-control.html
      The pull request: https://github.com/apache/ranger/pull/45

        Attachments

        1. 0001-RANGER-2667.patch
          0.7 kB
          Jiayi Liu

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              liujiayi771 Jiayi Liu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m