Bug 387449 - Creating a folder named "." or ".." doesn't display an error
Summary: Creating a folder named "." or ".." doesn't display an error
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 18.04.2
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-29 20:11 UTC by Giorgi Gzirishvili
Modified: 2018-07-29 19:16 UTC (History)
5 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 Giorgi Gzirishvili 2017-11-29 20:11:45 UTC
When you're trying to create a folder named "." or "..". Dolphin displays a warning saying "The name "." starts with a dot, so the directory will be hidden by default.", but after you click "Create directory" button and it fails to do so (obviously, you can't create these two under a *nix system), it doesn't even display an error message.
Comment 1 Julian Steinmann 2018-06-23 19:33:02 UTC
Can confirm with Dolphin 18.04.2, thanks for reporting!
Comment 2 Thomas Marshall 2018-06-29 19:57:17 UTC
I'm going to start working on this one. It should be pretty easy just to check the name of the new folder.

It also seems like this problem comes from KIO.
Comment 3 Christoph Feck 2018-07-18 18:07:32 UTC
https://phabricator.kde.org/D13805
Comment 4 Elvis Angelaccio 2018-07-29 19:16:19 UTC
Git commit 54298c16f37a81afb670f7b1c8fae323aedfb8a3 by Elvis Angelaccio, on behalf of Thomas Marshall.
Committed on 29/07/2018 at 19:15.
Pushed by elvisangelaccio into branch 'master'.

Present error dialog when user tries to create directory named "." or ".."

Summary:

In Dolphin, when a user tries to create a folder named "." or "..", they are presented with a dialog that informs them that since the folder name they entered begins with a ".", the folder they are about to create will be hidden. This is, of course, misleading. This patch instead presents them with a similar dialog, informing them of the error and asking them for a new name.

Before:

{F5976307}

After:

{F5976315}

Reviewers: #dolphin, #frameworks, ngraham, dfaure, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: cfeck, elvisangelaccio, dfaure, tmarshall, bruns, ngraham, kde-frameworks-devel

Tags: #frameworks, #dolphin

Differential Revision: https://phabricator.kde.org/D13805

M  +27   -0    src/filewidgets/knewfilemenu.cpp

https://commits.kde.org/kio/54298c16f37a81afb670f7b1c8fae323aedfb8a3