Gargi Jaiswal created HDDS-15618:
------------------------------------

             Summary: Fix ListObjects to include single whitespace-only S3 
object keys
                 Key: HDDS-15618
                 URL: https://issues.apache.org/jira/browse/HDDS-15618
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: S3
            Reporter: Gargi Jaiswal
            Assignee: Gargi Jaiswal


{{s3-tests {color:#de350b}test_bucket_create_special_key_names{color}}} fails 
because a key named         *{{' '}}* is created but not returned by 
{*}ListObjects{*}. *{{OmMetadataManagerImpl.getOzoneKey()}}* uses 
{*}{{StringUtils.isNotBlank()}}{*}, which treats whitespace-only keys as 
absent, so the object is stored under {color:#00875a}{{/volume/bucket}}{color} 
instead of {color:#00875a}{{/volume/bucket/}}{color}. 
List object uses prefix {color:#00875a}{{/volume/bucket/}}{color}, so the key 
is omitted. Fix key encoding to allow whitespace-only names
{code:java}
Expected: [' ', '"', '$', '%', '&', "'", '<', '>', '_', '_ ', '_ _', '__']
Actual:   ['"', '$', '%', '&', "'", '<', '>', '_', '_ ', '_ _'] 

  # missing leading ' '

At index 0: ' ' != '"' {code}
.

 



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