[ 
https://issues.apache.org/jira/browse/HDDS-17892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149554#comment-18149554
 ] 

Gargi Jaiswal commented on HDDS-17892:
--------------------------------------

[~ivanandika] 

We traced {{InvalidTag}} for values like *{{a@b}}* to *{{TAG_REGEX_PATTERN}}* 
in {{S3Consts.java}} (line 126):

 

{{^([\p\{L}\p\{Z}\p\{N}_.:/=+\-]*)$}}

 

The comment points at the AWS 
[S3Tag|https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_S3Tag.html] 
pattern, which includes {{@}} at the end: 
{{{}^([\p\{L}\p\{Z}\p\{N}_.:/=+\-@]*)${}}}.

I just need confirmation from ur side whether leaving `{{{}@{}}} ` out 
intentional (for example a deliberate Ozone restriction), or was it missed when 
the regex was copied from the AWS docs when object tagging was added 
([HDDS-10435|https://issues.apache.org/jira/browse/HDDS-10435])?

Thanks.

> PutObjectTagging Rejects @ Character in Tag Value
> -------------------------------------------------
>
>                 Key: HDDS-17892
>                 URL: https://issues.apache.org/jira/browse/HDDS-17892
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: S3
>            Reporter: Bablu Raul
>            Assignee: Gargi Jaiswal
>            Priority: Major
>
> Ozone S3 Gateway rejects an object tag value containing the {{@}} character 
> with {{{}InvalidTag{}}}, although AWS S3 allows this character in tag values.
> *Steps to Reproduce:*
>  # Create an S3 bucket.
>  # Upload an object to the bucket.
>  # Execute {{PutObjectTagging}} with the tag value {{{}a@b{}}}.
>  # Observe the response.
> *Actual Result:*
> {{PutObjectTagging}} fails with {{InvalidTag}} when the tag value contains 
> {{{}@{}}}.
> *Expected Result:*
> {{PutObjectTagging}} should accept {{@}} in tag values, consistent with AWS 
> S3's supported character set.
> *Reference:*
> AWS S3 tag restrictions allow the following special characters: {{{}+ - = . _ 
> : / @{}}}.
> *Impact:*
> This causes an S3 compatibility issue for clients that use {{@}} in object 
> tag values.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to