Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.0
-
None
-
None
-
Spring Boot: 2.2.6.RELEASE
Apache Ozone (Client): 1.1.0-SNAPSHOT(master)
Apache HDFS: 2.7.2
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:
the OzoneManager#getResourceType method(not supported PREFIX resource type):
in OzoneNativeAuthorizer#checkAccess method, it's supported PREFIX resource type.
in my case, we set ACLs to "dir" key with PREFIX resource type user native API, when listing file statues by this "dir" key by native API, it's go into KEY resource type case.