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

   ## What changes were proposed in this pull request?
   
   Replacing the IllegalArgumentException thrown with a new OS3Exception for 
MetadataTooLarge.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-8011
   
   ## How was this patch tested?
   
   Manually tested in Docker set-up using an API development tool to send a 
request to s3g.
   cURL form of the request used to test: 
https://gist.github.com/Tejaskriya/7a8740cb2152ba7704030835ae8b85f1
   Output seen:
   ```
   <?xml version="1.0" encoding="UTF-8"?>
   <Error>
     <Code>MetadataTooLarge</Code>
     <Message>Your metadata headers exceed the maximum allowed metadata 
size.</Message>
     <Resource>x-amz-meta-b</Resource>
     <RequestId>2f65ae49-bf28-4947-9504-dddca6fc0452</RequestId>
   </Error>
   ```
   


-- 
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