AnsweredAssumed Answered

Hidden nodes in WebDAV protocol in version 4.2d

Question asked by npasquetto on Oct 16, 2013
Hello everyone, we had some problems with the WebDAV protocol in version 4.2d.

Strangely, from a certain moment some documents <strong>were no longer visible via WebDAV</strong>. Using Alfresco Share, Alfresco Explorer and <strong>CIFS instead the documents could be seen properly</strong>.

What might cause this difference in visibility?

Thanks in advance to all, I attach here under a stacktrace that appeared in the logs when we encountered the problem (maybe it could be related to the problem).


2013-10-15 17:48:46,545  ERROR [repo.webdav.ExceptionHandler] [ajp-apr-8009-exec-5] Exception thrown.
HTTP Status Code: 500 caused by: java.lang.RuntimeException: Unable to parse JSON from [AlfrescoLockKeeperImpl]
        at org.alfresco.repo.webdav.WebDAVMethod.execute(WebDAVMethod.java:451)
        at org.alfresco.repo.webdav.WebDAVServlet.service(WebDAVServlet.java:138)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter.doFilter(BaseSSOAuthenticationFilter.java:137)
        at sun.reflect.GeneratedMethodAccessor509.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:112)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at sun.proxy.$Proxy287.doFilter(Unknown Source)
        at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1822)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: Unable to parse JSON from [AlfrescoLockKeeperImpl]
        at org.alfresco.repo.webdav.LockInfoImpl.fromJSON(LockInfoImpl.java:280)
        at org.alfresco.repo.webdav.WebDAVLockServiceImpl.getLockInfo(WebDAVLockServiceImpl.java:348)
        at org.alfresco.repo.webdav.WebDAVMethod.getNodeLockInfoDirect(WebDAVMethod.java:1311)
        at org.alfresco.repo.webdav.WebDAVMethod.getNodeLockInfoImpl(WebDAVMethod.java:1221)
        at org.alfresco.repo.webdav.WebDAVMethod.access$300(WebDAVMethod.java:92)
        at org.alfresco.repo.webdav.WebDAVMethod$3.doWork(WebDAVMethod.java:1213)
        at org.alfresco.repo.webdav.WebDAVMethod$3.doWork(WebDAVMethod.java:1210)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:546)
        at org.alfresco.repo.webdav.WebDAVMethod.getNodeLockInfo(WebDAVMethod.java:1209)
        at org.alfresco.repo.webdav.PropFindMethod.generateLockDiscoveryResponse(PropFindMethod.java:924)
        at org.alfresco.repo.webdav.PropFindMethod.generateAllPropertiesResponse(PropFindMethod.java:727)
        at org.alfresco.repo.webdav.PropFindMethod.generateResponseForNode(PropFindMethod.java:418)
        at org.alfresco.repo.webdav.PropFindMethod.executeImpl(PropFindMethod.java:312)
        at org.alfresco.repo.webdav.WebDAVMethod$2.execute(WebDAVMethod.java:391)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:447)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:337)
        at org.alfresco.repo.webdav.WebDAVMethod.execute(WebDAVMethod.java:399)
        … 32 more
Caused by: org.codehaus.jackson.JsonParseException: Unexpected character ('A' (code 65)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@2e2f7b2c; line: 1, column: 2]
        at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1432)
        at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
        at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)
        at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1198)
        at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:485)
        at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2770)
        at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2718)
        at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1863)
        at org.alfresco.repo.webdav.LockInfoImpl.fromJSON(LockInfoImpl.java:275)
        … 48 more

Outcomes