Ipfs-webui: Unable to create or rename a directory to "foo bar" (with space)

Created on 30 Apr 2021  Â·  3Comments  Â·  Source: ipfs/ipfs-webui

Describe the bug
Renaming a folder or file deletes spaces at the end of the filename while typing.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Files'
  2. Click on 'Import'
  3. Click on 'New Folder'
  4. Type 'Name with spaces'
  5. See 'Namewithspaces'
  6. Adding the spaces afterwards works since then the space is not at the end

Expected behavior
I expect to type filenames with spaces without having to go back later to actually insert them.

Desktop:

  • OS: macOS
  • Browser Safari
  • Version 14.1
kinbug help wanted P2 statuready good first issue efforhours

All 3 comments

@Luflosi thank you for reporting this, I see this is also impacting "Import" → "New folder".
Is it something you would be interested in submitting PR for, or can we leave it for others to pick up?

I'm not interested in submitting a PR, sorry.

I see this is also impacting "Import" → "New folder"

Yes, this is exactly what I described in the steps to reproduce since that is the easiest way to see this problem.
And presumably fixing this will also fix renaming files and folders.
The new title isn't 100% accurate since _technically_ it _is_ possible to create or rename a directory to "foo bar" by first typing "foobar" and then adding the space afterwards.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

olizilla picture olizilla  Â·  5Comments

olizilla picture olizilla  Â·  4Comments

jessicaschilling picture jessicaschilling  Â·  4Comments

mxdpeep picture mxdpeep  Â·  5Comments

prettymuchbryce picture prettymuchbryce  Â·  5Comments