Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-1255

init-hcfs.json needs to encode privileges as strings, not numbers.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.7.0
    • Fix Version/s: 0.8.0
    • Component/s: tests
    • Labels:
      None

      Description

      JSON doesn't support octal numbers, so to encode privileges, its best to encode the privilege numbers as strings:

      "/tmp",0777
      

      Needs to be

      "/tmp","0777"
      

      Then, we can easily use Short.decode(..) to read in octal encoded numbers. The short value can then be passed properly to the constructor of FsPermission.

      This is fixed in https://issues.apache.org/jira/secure/attachment/12634808/BIGTOP-952.patch , but just wanted to create a separate placeholder JIRA while BIGTOP-952 is still pending.

        Issue Links

          Activity

          Hide
          cos Konstantin Boudnik added a comment -

          Let's address it as a part of BIGTOP-952

          Show
          cos Konstantin Boudnik added a comment - Let's address it as a part of BIGTOP-952

            People

            • Assignee:
              Unassigned
              Reporter:
              jayunit100 jay vyas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development