You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Konstantin Boudnik (JIRA)" <ji...@apache.org> on 2014/03/26 23:22:19 UTC
[jira] [Updated] (BIGTOP-1255) init-hcfs.json needs to encode
privileges as strings, not numbers.
[ https://issues.apache.org/jira/browse/BIGTOP-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Boudnik updated BIGTOP-1255:
---------------------------------------
Component/s: Tests
> init-hcfs.json needs to encode privileges as strings, not numbers.
> ------------------------------------------------------------------
>
> Key: BIGTOP-1255
> URL: https://issues.apache.org/jira/browse/BIGTOP-1255
> Project: Bigtop
> Issue Type: Bug
> Components: Tests
> Affects Versions: 0.7.0
> Reporter: jay vyas
> Fix For: 0.8.0
>
>
> JSON doesn't support octal numbers, so to encode privileges, its best to encode the privilege numbers as strings:
> {noformat}
> "/tmp",0777
> {noformat}
> Needs to be
> {noformat}
> "/tmp","0777"
> {noformat}
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)