[ 
https://issues.apache.org/jira/browse/HDDS-15940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Priyesh Karatha updated HDDS-15940:
-----------------------------------
        Parent:     (was: HDDS-8342)
    Issue Type: Improvement  (was: Sub-task)

> S3 Gateway putBucketLifecycleConfiguration swallows unexpected OMExceptions 
> and returns false HTTP 200
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HDDS-15940
>                 URL: https://issues.apache.org/jira/browse/HDDS-15940
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: S3
>            Reporter: Priyesh Karatha
>            Assignee: Priyesh Karatha
>            Priority: Major
>
> BucketCrudHandler.putBucketLifecycleConfiguration() catches OMException but 
> only handles ACCESS_DENIED and INVALID_REQUEST result codes. Any other 
> OMException result code (e.g., QUOTA_EXCEEDED, NOT_SUPPORTED_OPERATION, or an 
> unexpected internal OM failure) falls through both if/else if branches 
> without re-throwing, and the method returns Response.ok().build() — a false 
> HTTP 200 success to the client.
> Every other S3 handler in the gateway uses throw 
> S3ErrorTable.newError(bucketName, ex) as the fallback, which correctly 
> propagates the error. This handler does not.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to