Cannot Access WebDAV Configuration's Page

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The WebDAV page can not be accessed and the following appears in the atlassian-confluence.log:

com.thoughtworks.xstream.converters.ConversionException: Invalid 
final field 
com.atlassian.confluence.extra.webdav.WebdavSettings.excludedClientUserAgentRegexes
 ---- Debugging information ---- message : Invalid final field 
com.atlassian.confluence.extra.webdav.WebdavSettings.excludedClientUserAgentRegexes
 line number : 2 path : 
/com.atlassian.confluence.extra.webdav.WebdavSettings/excludedClientUserAgentRegexes
 cause-message : Invalid final field 
com.atlassian.confluence.extra.webdav.WebdavSettings.excludedClientUserAgentRegexes
 class : com.atlassian.confluence.extra.webdav.WebdavSettings 
cause-exception : 
com.thoughtworks.xstream.converters.reflection.ObjectAccessException 
required-type : com.atlassian.confluence.extra.webdav.WebdavSettings 
-------------------------------

    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:45)


caused by: 
com.thoughtworks.xstream.converters.reflection.ObjectAccessException: 
Invalid final field 
com.atlassian.confluence.extra.webdav.WebdavSettings.excludedClientUserAgentRegexes

    at 
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.validateFieldAccess(PureJavaReflectionProvider.java:150)

Cause

Occurs due to errors in the configuration of the WebDAV itself (regexes) performed by the user.

There is also a known issue which may cause this problem:  CONF-29309 - Getting issue details... STATUS . If this is your case, the solution does not apply.

Resolution

  1. Stop Confluence;
  2. Perform a backup of Confluence's database;
  3. Run the following query to identify the row that needs to be removed:
select * from bandana where bandanavalue like '%webdav%';

The query above will show an entry with some information like this:

BANDANAID: 1343493
BANDANACONTEXT: _GLOBAL
BANDANAKEY: com.atlassian.confluence.extra.webdav-2.0.settings
BANDANAVALUE: <string>&lt;com.atlassian.confluence.extra.webdav.WebdavSettings&gt;
  &lt;excludedClientUserAgentRegexes class=&quot;linked-hash-set&quot;/&gt;
  &lt;contentExportsResourceEnabled&gt;true&lt;/contentExportsResourceEnabled&gt;
  &lt;contentVersionsResourceEnabled&gt;true&lt;/contentVersionsResourceEnabled&gt;
  &lt;contentUrlResourceEnabled&gt;true&lt;/contentUrlResourceEnabled&gt;
  &lt;strictPageResourcePathCheckingDisabled&gt;false&lt;/strictPageResourcePathCheckingDisabled&gt;
  &lt;/com.atlassian.confluence.extra.webdav.WebdavSettings&gt;</string>

(info) To identify the related entry in the table check the column BANDANAKEY that will mention the WebDAV's settings as the example above.

      4. After identify the row,  run a query informed below to remove the entry from the table:

delete from BANDANA where BANDANAID=<id_from_the_previous_query>;

      5. Start Confluence and try to access again the WebDAV configuration's page.

 

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.