Bug 373062 - WebDav - Cannot rename or delete files when special characters in the path
Summary: WebDav - Cannot rename or delete files when special characters in the path
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: WebDAV (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-29 04:48 UTC by Musikolo
Modified: 2022-11-30 14:32 UTC (History)
4 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 Musikolo 2016-11-29 04:48:10 UTC
I've got a server with OwnCloud. I often manage my files with Dolphin through the WebDav KIO. I would say everything used to work nicely, but since a few weeks ago, I've noticed that I'm unable to rename files if there are special characters (such as accented vowels) in the path. The same happens if you try to delete a file having special characters in the path.

Dolphin shows an error message that reads: Access was denied while attempting to move the specified file or folder.

The surprising thing is that I'm allowed to copy files with special characters in the path (directory or filename itself) though.

P.S: My current dolphin version 16.08.3
Comment 1 Elvis Angelaccio 2017-08-30 15:48:53 UTC
Does it work with kioclient5?

From a konsole, run:

    kioclient5 move 'src' 'dest'
Comment 2 Musikolo 2017-09-04 17:33:41 UTC
Hi Elvis,

I've further looked into the issue and find out more information. The error I get it's still occurring but the cause it's slightly different to what I thought.

If I copy or move a file which name is having vowels with accents, the operation completes successfully. When I try to rename the file, this is what I get:

A) If I rename the file removing all accents, the operation succeeds.
B) If I rename the file keeping one or more accents, the operation fails with an error message that says "Access was denied while attempting to move the specified file or folder."

After that I can delete the file renamed in A) seamlessly. However, if try to delete the file renamed in B), I get an error that says "The file or folder webdavs://mysesrver/remote.php/webdav/adiós.txt does not exist." The problem here is not related to the delete operation. The real issue is that after the error, dolphin shows the file as successfully renamed and, when I try to delete the file with the new name, the operation obviously fails because the naming never happened. If I refresh and retry, I can successfully delete such a file file.

From command line, the same happens:
[me@MyPC tmp]$ kioclient5 copy 'a.txt' 'webdavs://myserver/remote.php/webdav/'
[me@MyPC tmp]$ kioclient5 move 'webdavs://myserver/remote.php/webdav/a.txt' 'webdavs://myserver/remote.php/webdav/b.txt'
[me@MyPC tmp]$ kioclient5 move 'webdavs://myserver/remote.php/webdav/b.txt' 'webdavs://myserver/remote.php/webdav/bá.txt'
"Access was denied while attempting to move the specified file or folder."
[me@MyPC tmp]$ kioclient5 move 'webdavs://myserver/remote.php/webdav/b.txt' 'webdavs://myserver/remote.php/webdav/ba.txt'
[me@MyPC tmp]$ kioclient5 ls 'webdavs://cubox.ddns.net/remote.php/webdav/' | grep ba.txt
ba.txt
[me@MyPC tmp]$

So to sum up, the only issue we have is at renaming a file with accents. Everything else is fine. Maybe dolphin should be updated to refresh the file names even after an error occurs when renaming to prevent other operations to fails afterwards.

I hope this helps and the issue gets fixed shortly.

Thank you!
Comment 3 Justin Zobel 2022-11-30 05:28:32 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Musikolo 2022-11-30 14:32:07 UTC
(In reply to Justin Zobel from comment #3)
> Thank you for reporting this issue in KDE software. As it has been a while
> since this issue was reported, can we please ask you to see if you can
> reproduce the issue with a recent software version?
> 
> If you can reproduce the issue, please change the status to "REPORTED" when
> replying. Thank you!

Hi Justin,

No, the issue is no longer occurring. I can now copy files with special characters, rename and delete them.

I think the issue is gone, so I'm updating the status accordingly.

Please let me know if anything else is needed.

Thanks.