[
https://issues.apache.org/jira/browse/HDDS-4618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
masstter updated HDDS-4618:
---------------------------
Description:
Listing file statues with ozone filesystem api in my SpringBoot project. the
invoke chain(like):
FileSystem#listStatus
---> BasicRootedOzoneFileSystem#listStatus-
---> BasicOzoneClientAdapterImpl#listStatus-
--> OzoneBucket#listStatus
--> RpcClient#listStatus
--> OzoneManagerProtocolClientSideTranslatorPB#listStatus
--> OzoneManager#listStatus.
in OzoneManager, it's not supported PREFIX resource type in getResourceType
method, there's Screenshot below:
the OzoneManager#listStatus method:
!image-2020-12-22-20-36-05-469.png|width=731,height=298!
the OzoneManager#getResourceType method({color:#de350b}*not supported PREFIX
resource type*{color}):
!image-2020-12-22-20-36-31-426.png|width=695,height=215!
in OzoneNativeAuthorizer#checkAccess method, it's supported PREFIX resource
type.
in my case, we set ACLs to "dir" key with PREFIX resource type, when listing
file statues by this "dir" key by native API, it's go to KEY resource type.
the solution is: {color:#de350b}*check access permission if key or prefix check
matched either*{color}
!image-2020-12-22-20-38-06-503.png|width=679,height=686!
was:
Listing file statues with ozone filesystem api in my SpringBoot project. the
invoke chain(like):
FileSystem#listStatus --> BasicRootedOzoneFileSystem#listStatus -->
BasicOzoneClientAdapterImpl#listStatus --> OzoneBucket#listStatus -->
RpcClient#listStatus --> OzoneManagerProtocolClientSideTranslatorPB#listStatus
--> OzoneManager#listStatus.
in OzoneManager, it's not supported PREFIX resource type in getResourceType
method, there's Screenshot below:
the OzoneManager#listStatus method:
!image-2020-12-22-20-36-05-469.png|width=731,height=298!
the OzoneManager#getResourceType method({color:#de350b}*not supported PREFIX
resource type*{color}):
!image-2020-12-22-20-36-31-426.png|width=695,height=215!
in OzoneNativeAuthorizer#checkAccess method, it's supported PREFIX resource
type.
in my case, we set ACLs to "dir" key with PREFIX resource type, when listing
file statues by this "dir" key by native API, it's go to KEY resource type.
the solution is: {color:#de350b}*check access permission if key or prefix check
matched either*{color}
!image-2020-12-22-20-38-06-503.png|width=679,height=686!
> Prefix resource type access check not effect after set key prefix ACLs
> ----------------------------------------------------------------------
>
> Key: HDDS-4618
> URL: https://issues.apache.org/jira/browse/HDDS-4618
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Components: Native, OFS, Ozone Client, Ozone Filesystem, Ozone
> Manager
> Affects Versions: 1.1.0
> Environment: Spring Boot: 2.2.6.RELEASE
> Apache Ozone (Client): 1.1.0-SNAPSHOT(master)
> Apache HDFS: 2.7.2
> Reporter: masstter
> Priority: Major
> Fix For: 1.1.0
>
> Attachments: image-2020-12-22-20-36-05-469.png,
> image-2020-12-22-20-36-31-426.png, image-2020-12-22-20-38-06-503.png
>
>
> Listing file statues with ozone filesystem api in my SpringBoot project. the
> invoke chain(like):
> FileSystem#listStatus
> ---> BasicRootedOzoneFileSystem#listStatus-
> ---> BasicOzoneClientAdapterImpl#listStatus-
> --> OzoneBucket#listStatus
> --> RpcClient#listStatus
> --> OzoneManagerProtocolClientSideTranslatorPB#listStatus
> --> OzoneManager#listStatus.
> in OzoneManager, it's not supported PREFIX resource type in getResourceType
> method, there's Screenshot below:
> the OzoneManager#listStatus method:
> !image-2020-12-22-20-36-05-469.png|width=731,height=298!
> the OzoneManager#getResourceType method({color:#de350b}*not supported PREFIX
> resource type*{color}):
> !image-2020-12-22-20-36-31-426.png|width=695,height=215!
> in OzoneNativeAuthorizer#checkAccess method, it's supported PREFIX resource
> type.
> in my case, we set ACLs to "dir" key with PREFIX resource type, when listing
> file statues by this "dir" key by native API, it's go to KEY resource type.
> the solution is: {color:#de350b}*check access permission if key or prefix
> check matched either*{color}
> !image-2020-12-22-20-38-06-503.png|width=679,height=686!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]