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

Attila Doroszlai commented on HDDS-9855:
----------------------------------------

This happens if the name is invalid only due to one or more underscores ({{_}}).

In all other cases more helpful message is output:

{code}
$ ozone sh bucket create vol1/12
INVALID_BUCKET_NAME Bucket or Volume length is illegal, valid length is 3-63 
characters

$ ozone sh bucket create vol1/INVALID
INVALID_BUCKET_NAME Bucket or Volume name does not support uppercase characters

$ ozone sh bucket create vol1/----   
INVALID_BUCKET_NAME Bucket or Volume name cannot start with a period or dash

$ ozone sh bucket create vol1/?????
INVALID_BUCKET_NAME Bucket or Volume name has an unsupported character : ?

$ ozone sh bucket create vol1/#############
INVALID_BUCKET_NAME Bucket or Volume name has an unsupported character : #

$ ozone sh bucket create vol1/1\\2
INVALID_BUCKET_NAME Bucket or Volume name has an unsupported character : \
{code}

See HDDS-8549 for details.

> Make the error message clearer when bucket creation fails with unsupported 
> character
> ------------------------------------------------------------------------------------
>
>                 Key: HDDS-9855
>                 URL: https://issues.apache.org/jira/browse/HDDS-9855
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: Ozone CLI
>            Reporter: Dave Teng
>            Priority: Major
>
> Creating a bucket would fail if bucket name contains unsupported characters.
> Currently the error message is not very clear.
> For example,
> {code:java}
> ozone sh bucket create vol1/bucket_1 
> Invalid bucket name: test_bucketĀ {code}
> Maybe we could provide more details why bucket name is invalid so It would be 
> easier for user to understand quickly why that creation fails.



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