WebDAV: Authentification failed - read-only permission

<oXygen/> general issues.
Posts: 18
Joined: Mon Dec 09, 2013 7:47 pm

WebDAV: Authentification failed - read-only permission

Post by fhorn » Thu Jan 15, 2015 4:30 pm


in our project we use a WebDAV resource (eXist server 2.0). Most users
have enhanced permissions to edit files in our database. We also created
a guest user with limited permissions ("r--" for the xml file and for the
directory containing the xml files: "r-x"). It seems that oxygen doesn't
accept the user data correctly when the guest user with read-only
permission tries to open a file in the database.

If the guest user tries to open a file a dialog box appears, the user has
to enter user data but the program doesn't accept the user data. if I
cancel the registration dialog, the following warning message appears:

"Problem while trying to acquire lock:
401 Unauthorized for: http://webdav.filepath.filename.xml
If the current lock expires during editing you could overwrite changes
made by the current lock owner. It is strongly recommended to cancel
the open operation."

If I ignore the warning and click "continue", the file opens correctly
in read-only modus. In the end, the file opens correctly, but the procedure
isn't ideal. Maybe, a guest user gets the impression that there is something wrong.

If the guest user logs on eXist admin client and tries to open a file,
everything works fine and there is only the message: "Resource cannot
be locked. Opening read-only".

This might be a rather specific question. Maybe you have some hints?

Best regards,

Posts: 2703
Joined: Tue May 17, 2005 4:01 pm

Re: WebDAV: Authentification failed - read-only permission

Post by adrian » Thu Jan 15, 2015 5:44 pm


This is a bug. When WebDAV resource locking is enabled (it is by default) the WebDAV client from Oxygen queries the server for resource locking support. If the server supports it, Oxygen will try to lock the resource on open even though the logged user may not have the necessary rights. The repeated authentication prompts are the result.
I've logged this on our issue tracking tool to be resolved.

As you have noticed, it's not ideal but you can cancel the authentication and press Continue.
A more permanent workaround for this annoyance is to disable the WebDAV resource locking on open from Options > Preferences, Network Connection Settings > HTTP(S)/WebDAV, 'Lock WebDAV files on open' (uncheck it).
Note that this is a global option so locking will be disabled for all WebDAV repositories.

Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Posts: 7331
Joined: Fri Jul 09, 2004 5:18 pm

Re: WebDAV: Authentification failed - read-only permission

Post by Radu » Mon May 18, 2015 3:45 pm


This behavior should be fixed in the already available Oxygen 17.0.

Radu Coravu
<oXygen/> XML Editor

Post Reply