smengcl opened a new pull request, #10859:
URL: https://github.com/apache/ozone/pull/10859

   Generated-by: Codex (GPT-5.6 Sol)
   
   ## What changes were proposed in this pull request?
   
   HDDS-9117 changed `getBucketInfo` so linked buckets return selected 
operational properties from their resolved source bucket. HDDS-15624 extracted 
this behavior into shared logic and applied it to `listBuckets`.
   
   This patch addresses two gaps in that behavior:
   
   - Check `READ` access on the resolved source bucket before copying its 
operational properties. If access is denied, return the stored link information 
instead.
   - Reuse successfully authorized source information within `listBuckets`, 
avoiding repeated source access checks when multiple links resolve to the same 
bucket.
   - Copy `BucketEncryptionKeyInfo` from the resolved source along with its 
other operational properties.
   
   The link bucket's identity fields—including its volume, bucket name, owner, 
source path, ACLs, timestamps, and object/update IDs—remain unchanged. 
`listBuckets` also continues processing subsequent entries when a link cannot 
be enriched.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-15961
   
   ## How was this patch tested?
   
   The following test cases were added:
   
   - `TestOmBucketInfo#testWithOperationalPropertiesFromCopiesEncryptionInfo`
   - 
`TestBucketManagerImpl#testGetBucketInfoDoesNotCopySourcePropertiesWithoutReadAccess`
   - 
`TestBucketManagerImpl#testListBucketsDoesNotCopySourcePropertiesWithoutReadAccess`
   - `TestBucketManagerImpl#testListBucketsChecksSourceReadAccessOncePerSource`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to