Bug 384130 - Unable to delete files from webdavs folder
Summary: Unable to delete files from webdavs folder
Status: RESOLVED DUPLICATE of bug 355441
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 377125 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-08-29 08:43 UTC by Stefan
Modified: 2018-08-22 21:20 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot,dolphin after atempting to delete a file (28.85 KB, image/png)
2017-08-29 08:43 UTC, Stefan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan 2017-08-29 08:43:41 UTC
Created attachment 107572 [details]
Screenshot,dolphin after atempting to delete a file

There is a possible issue in dolphin while using the WEBDAVS protocol.
It is not possible to delete files, neither  using del or shift-del keys or menu-bar. An Error Message is displayed: Unknown Error 400.
Workaround: Move File using drag-and-drop to any folder on the client to remove file from server works well.
(Client is a openSUSE Leap 42,3 with KDE Frameworks 5,32.
Server is CENTOS with actual apache web-server installed.
Same issue with client openSUSE Leap 42,2)
Comment 1 Elvis Angelaccio 2017-08-29 09:19:27 UTC
Works for me. Does kioclient5 work? 

From a konsole:

kioclient5 remove <URL>
Comment 2 Stefan 2017-08-29 10:48:39 UTC
from the console i get the same error and no further information

stefan@losch-linux-pc2:~> kioclient5 remove webdavs://gast@losch-spandau.de/dav-lara-public/test3.txt
"Bei der Aktion angegebene Datei(en) oder Ordner löschen ist der unerwartete Fehler 400 aufgetreten."
stefan@losch-linux-pc2:~>
Comment 3 Elvis Angelaccio 2017-09-04 17:54:11 UTC
Does the path contain special characters? (see bug #373062)
Comment 4 Wulf 2017-09-09 09:33:55 UTC
I reported the same: file:///mnt/veracrypt1/Musik/Jeff Beal/Monk Soundtrack
Comment 5 Wulf 2017-09-09 09:34:39 UTC
I reported the same: https://bugs.kde.org/show_bug.cgi?id=377125
Comment 6 Elvis Angelaccio 2017-09-09 12:43:27 UTC
*** Bug 377125 has been marked as a duplicate of this bug. ***
Comment 7 Wulf 2017-09-10 06:48:09 UTC
(In reply to Elvis Angelaccio from comment #3)
> Does the path contain special characters? (see bug #373062)

in my path aren't any special characters, all us-ascii
Comment 8 Tim Schlotfeldt 2017-10-21 11:16:56 UTC
I think i found the error.

Deleting a file gives an error 400. WebDAV is only accessible over https and digest authentification (apache auth_digest). With cadaver deleting the files works.

This is the debug log:

[Sat Oct 21 12:56:48.749869 2017] [authz_core:debug] [pid 31587:tid 140425816446720] mod_authz_core.c(809): [client xxx.xxx.xxx.xxx:55850] AH01626: au
thorization result of <RequireAny>: granted
[Sat Oct 21 12:56:48.749909 2017] [dav:error] [pid 31587:tid 140425816446720] [client xxx.xxx.xxx.xxx:55850] Could not fetch resource information.  [4
00, #0]
[Sat Oct 21 12:56:48.749921 2017] [dav:error] [pid 31587:tid 140425816446720] [client xxx.xxx.xxx.xxx:55850] The URL contains extraneous path componen
ts. The resource could not be identified.  [400, #0]
[Sat Oct 21 12:56:48.749984 2017] [authz_core:debug] [pid 31587:tid 140425816446720] mod_authz_core.c(809): [client xxx.xxx.xxx.xxx:55850] AH01626: au
thorization result of Require all granted: granted
[Sat Oct 21 12:56:48.749996 2017] [authz_core:debug]

And the access log shows that kio added a trailing slash to the filename:

xxx.xxx.xxx.xxx - - [21/Oct/2017:12:56:48 +0200] "DELETE /my_testfile.pdf/ HTTP/1.1" 400 973 "-" "Mozilla/5.0 (X11) KHTML/5.39.0 (like Gecko) Konqueror/5 KIO/5.39"


I remember the same issue occured with Akonadi deleting an CardDAV address ressource. Workaround was a Apache rewrite rule because the Akonadi-Team wasn't able to change the webdav behavior.
Comment 9 Tim Schlotfeldt 2017-10-21 11:27:09 UTC
See bug #355441
Comment 10 Nate Graham 2018-08-22 21:20:38 UTC

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