You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Priyesh Karatha (Jira)" <ji...@apache.org> on 2026/08/04 08:43:00 UTC
[jira] [Resolved] (HDDS-15940) S3 Gateway putBucketLifecycleConfiguration swallows unexpected OMExceptions and returns false HTTP 200
[ https://issues.apache.org/jira/browse/HDDS-15940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Priyesh Karatha resolved HDDS-15940.
------------------------------------
Fix Version/s: 2.3.0
Resolution: Fixed
> 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: Sub-task
> Components: S3
> Reporter: Priyesh Karatha
> Assignee: Priyesh Karatha
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.3.0
>
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org