console icon indicating copy to clipboard operation
console copied to clipboard

Minio Console don't show whitespace on path name

Open jjmm0312 opened this issue 2 years ago • 4 comments

Hello. I want to ask a bug about Minio console.

Expected Behavior

When I use Minio console, I can create new path below bucket with this button. image

If i include whitespace in the path name, i want to see whitespace.

Current Behavior

For example, I want to make a path "minio". By mistake, I wrote the name " minio" ( include whitespace at the head ).

In this case, Minio console show same name like "minio". So, I cannot find which factor is problem.

Path "minio" and " minio" show same path name on Minio Console. (in this case, two "minio" path. I can't discover the difference)

Possible Solution

I want to see exact name of path. "minio" and " minio" is different.

jjmm0312 avatar Feb 10 '22 05:02 jjmm0312

@harshavardhana do we support spaces in prefixes? I find it odd to use at the start or end of a prefix

dvaldivia avatar Feb 11 '22 00:02 dvaldivia

@harshavardhana do we support spaces in prefixes? I find it odd to use at the start or end of a prefix

Yes @dvaldivia it is supported since it can be created on the disk - but its hard to read @dvaldivia :-)

harshavardhana avatar Feb 11 '22 01:02 harshavardhana

I see we do create the prefixes with spaces

➜ mc ls myminio/amq-notifications/prefix1/prefix2/prefix3         
[2022-02-15 13:11:10 PST] 368KiB STANDARD minio-operator-4-4-7.yaml
[2022-02-15 13:10:31 PST]   881B STANDARD olm.sh
[2022-02-15 13:33:03 PST]     0B   minio/
(base)  portal-ui git:(fix-upload-button-logic) ✗ 
➜ mc ls myminio/amq-notifications/prefix1/prefix2/prefix3/\ \ minio/
[2022-02-15 13:32:05 PST] 3.3KiB STANDARD Makefile
(base)  portal-ui git:(fix-upload-button-logic) ✗ 
➜ mc ls myminio/amq-notifications/prefix1/prefix2/prefix3           
[2022-02-15 13:11:10 PST] 368KiB STANDARD minio-operator-4-4-7.yaml
[2022-02-15 13:10:31 PST]   881B STANDARD olm.sh
[2022-02-15 13:33:51 PST]     0B   doublespace  /
[2022-02-15 13:33:51 PST]     0B   minio/
(base)  portal-ui git:(fix-upload-button-logic) ✗ 
➜ mc ls myminio/amq-notifications/prefix1/prefix2/prefix3/\ \ doublespace\ \ /
[2022-02-15 13:33:47 PST] 3.3KiB STANDARD Makefile

we just need to show this on the breadcrums

dvaldivia avatar Feb 15 '22 21:02 dvaldivia

I see we do create the prefixes with spaces

➜ mc ls myminio/amq-notifications/prefix1/prefix2/prefix3         
[2022-02-15 13:11:10 PST] 368KiB STANDARD minio-operator-4-4-7.yaml
[2022-02-15 13:10:31 PST]   881B STANDARD olm.sh
[2022-02-15 13:33:03 PST]     0B   minio/
(base)  portal-ui git:(fix-upload-button-logic) ✗ 
➜ mc ls myminio/amq-notifications/prefix1/prefix2/prefix3/\ \ minio/
[2022-02-15 13:32:05 PST] 3.3KiB STANDARD Makefile
(base)  portal-ui git:(fix-upload-button-logic) ✗ 
➜ mc ls myminio/amq-notifications/prefix1/prefix2/prefix3           
[2022-02-15 13:11:10 PST] 368KiB STANDARD minio-operator-4-4-7.yaml
[2022-02-15 13:10:31 PST]   881B STANDARD olm.sh
[2022-02-15 13:33:51 PST]     0B   doublespace  /
[2022-02-15 13:33:51 PST]     0B   minio/
(base)  portal-ui git:(fix-upload-button-logic) ✗ 
➜ mc ls myminio/amq-notifications/prefix1/prefix2/prefix3/\ \ doublespace\ \ /
[2022-02-15 13:33:47 PST] 3.3KiB STANDARD Makefile

we just need to show this on the breadcrums

Do we want to also show this while listing folders/prefixes ?

Alevsk avatar Feb 15 '22 22:02 Alevsk

Thank you @jjmm0312 , will be fixed in UI once the PR is merged.

prakashsvmx avatar Jul 10 '23 13:07 prakashsvmx