Bug 358567 - Dolphin allows you to safely place slashes file names, but for folder names, doing this creates a folder hierarchy
Summary: Dolphin allows you to safely place slashes file names, but for folder names, ...
Status: RESOLVED DUPLICATE of bug 251830
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 15.12.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-26 04:09 UTC by Laptander
Modified: 2018-04-13 17:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laptander 2016-01-26 04:09:40 UTC
If user is using cinnamon and decided to rename or create file of directory in dolphin and he/she place a forward slash ('/') symbol in its name, then dolphin would just create/rename file with such name.

Reproducible: Always



Expected Results:  
It should warn user about "slash is not permitted in file names" as it does when user is using kde.
Comment 1 OlafLostViking 2016-01-28 15:51:23 UTC
Are you sure it is adding a "/" (slash) and not a "⁄" (fraction)?

I just tried it out within a plasma workspace and it is trying to create fractions. When my filename ends with a number, it puts it "on top" of a fraction...

(Not saying this is a good idea - but a slash symbol in the filename shouldn't even be possible.)
Comment 2 Laptander 2016-01-30 01:55:59 UTC
Yes, I suspected that it is not actually slash, but another symbol due to it was looking a bit different.
So this is not a bug?
In my case when I name file or folder ending with fraction with digit under kde, it do not place it on top of it.
I created this report because it confused me. As I remember, dolphin was giving such warning when you tryed to use slash in file name. But now it just changes slash to math division slash. Ok, maybe it is a smart solution to not distarb user. But why when you are creating a directory for example "a/b" than it creates "a" and inside of it it creates "b". If in one case it changes slash to fraction, why not in another case?
Comment 3 BT 2018-02-24 00:45:06 UTC
I recently encountered this issue. I couldn't understand how Dolphin was creating a directory with a forward slash in the name. I only realized it wasn't a forward slash after the directory name string returned 'utf-8' for the encoding.

I agree with comment 1. Dolphin should warn the user, not convert a forward slash to a fraction slash. They are different symbols, even though they look almost identical.
Comment 4 Nate Graham 2018-03-29 21:36:28 UTC
Using a visually similar character is actually a usability feature: we try to do what the user intended (even if it's not via the same approach) rather than display a nasty error that then tries to explain some technical gibberish about unsupported characters.

If there's any issue here, it's the inconsistency of having slashes in folder names create a hierarchy rather than using the same behavior as with slashes in file names.
Comment 5 BT 2018-04-08 03:04:44 UTC
(In reply to Nate Graham from comment #4)
> If there's any issue here, it's the inconsistency of having slashes in
> folder names create a hierarchy rather than using the same behavior as with
> slashes in file names.

I do agree with you on this point. The behavior should be the same for files and directories, whether slashes are allowed or not.
Comment 6 Nate Graham 2018-04-13 17:46:03 UTC

*** This bug has been marked as a duplicate of bug 251830 ***