| Summary: | KIO turns slash character ("/") into "⁄" when writing file names--but not directory names | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Leandro Santiago da Silva <leandrosansilva> |
| Component: | general | Assignee: | David Faure <faure> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | a.samirh78, alpeterson, bugseforuns, kdelibs-bugs-null, markg85, nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.45.0 | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Bug Depends on: | |||
| Bug Blocks: | 400469 | ||
|
Description
Leandro Santiago da Silva
2012-10-29 12:02:33 UTC
Ohh nice one! Frank, What's the intended case here? If one types: "folder_name///" Should that be interpreted as: "folder_name" And what if one types: "folder////some_other_folder" Should that be interpreted as: "folder" - "some_other_folder" (so that you can create recursive folders) Your input would be nice :) This replacement is actually made by KIO and is intentional, see http://permalink.gmane.org/gmane.comp.kde.devel.kfm/13363 The intention is a bug. A very serious one. If KIO is so broken, the applications need to protect us from this. If I tell it to make a / and it makes an arbitary ⁄ Right, re-assigning to KIO to let them decide. Doesn't happen for directories, but still happens for files. The inconsistency is not good. For directory names it looks like KNewFileMenu if you type a/b/c, would create a, then b and c as sub-dirs of a. The / is converted into a fraction slash because there is no way to have / as part of a file or dir names, because it's the dir path delimiter/separator: https://commits.kde.org/kdelibs/53659edb4b1841474a23952746e68a1222756fec Personally, I think / should be disallowed as part of file/dir names altogether... it has some potential side-effects, see bug 400469. I can't reproduce this bug with today's directory creation dialog. It shows the structure that is about to be created, pretty precisely, and no fraction slash is involved.
Arguably it could trim trailing slashes to avoid showing a wrong structure like
my new directory
/
/
/
But that's a minor bug and not exactly the one reported here.
This bug is actually fixed.
|