You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/06/23 08:29:00 UTC
[jira] [Updated] (HDDS-15618) Fix ListObjects to include single whitespace-only S3 object keys
[ https://issues.apache.org/jira/browse/HDDS-15618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HDDS-15618:
----------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Major
> Labels: pull-request-available
>
> {{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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org