Description
After HDDS-682, volume creation through shell fails if the volume name does not have leading slash.
$ ./ozone sh volume create volume1 Volume name is required $ ./ozone sh volume create /volume1 2018-10-30 14:07:58,078 INFO rpc.RpcClient: Creating Volume: volume1, with hdds as owner and quota set to 1152921504606846976 bytes.
In OzoneAddress#stringToUri, when creating a new URI, the path parameter is expected to have a leading slash. Otherwise, the path gets mixed with the authority.
To fix this, we should add a leading slash to the path variable, if it does not exist, before constructing the URI object.
Attachments
Attachments
Issue Links
- duplicates
-
HDDS-803 Volume creation without leading / fails
- Resolved