AnsweredAssumed Answered

WebDav folder rename error

Question asked by luca on Sep 2, 2011
Hi all,
I'm using Alfresco 3.2 and I'm experiencing an error if I rename a folder through WebDav.

I found another post about it, but they don't getting to the point:
http://forums.alfresco.com/en/viewtopic.php?f=3&t=14718&start=0

The error is caused because it fails when checking the integrity of the new name of the folder. The regex expression that fails to match is (.*[\"\*\\\>\<\?\/\:\|]+.*)|(.*[\.]?.*[\.]+$)|(.*[ ]+$) (from contentModel.xml).

The stacktrace below is caused renaming a folder from Management to ManagementX, which is a valid name for a folder.

Can anyone help me?

Stacktrace:
10:35:55,058 User:adminapi DEBUG [alfresco.webdav.protocol] WebDAV request PROPFIND on path /alfresco/webdav/Projects/A/AAA_MAN001/Documents/
10:35:55,088 User:adminapi DEBUG [alfresco.webdav.protocol] PROPFIND took 31ms to execute
10:35:55,153 User:adminapi DEBUG [alfresco.webdav.protocol] WebDAV request PROPFIND on path /alfresco/webdav/Projects/A/AAA_MAN001/Documents/
10:35:55,181 User:adminapi DEBUG [alfresco.webdav.protocol] PROPFIND took 28ms to execute
10:35:55,250 User:adminapi DEBUG [alfresco.webdav.protocol] WebDAV request PROPFIND on path /alfresco/webdav/Projects/A/AAA_MAN001/
10:35:55,271 User:adminapi DEBUG [alfresco.webdav.protocol] PROPFIND took 21ms to execute
10:35:55,335 User:adminapi DEBUG [alfresco.webdav.protocol] WebDAV request PROPFIND on path /alfresco/webdav/Projects/A/
10:35:55,459 User:adminapi DEBUG [alfresco.webdav.protocol] PROPFIND took 124ms to execute
10:35:55,537 User:adminapi DEBUG [alfresco.webdav.protocol] WebDAV request PROPFIND on path /alfresco/webdav/Projects/A/AAA_MAN001/Documents/
10:35:55,564 User:adminapi DEBUG [alfresco.webdav.protocol] PROPFIND took 28ms to execute
10:35:55,629 User:adminapi DEBUG [alfresco.webdav.protocol] WebDAV request MOVE on path /alfresco/webdav/Projects/A/AAA_MAN001/Documents/Management/
10:35:55,629 User:adminapi DEBUG [alfresco.webdav.protocol] Parsing Destination header: https://test1/alfresco/webdav/Projects/A/AAA_MAN001/Documents/ManagementX/
10:35:55,630 User:adminapi DEBUG [alfresco.webdav.protocol] Copy from /Projects/A/AAA_MAN001/Documents/Management to /Projects/A/AAA_MAN001/Documents/ManagementX/
10:35:55,771 User:adminapi ERROR [node.integrity.IntegrityChecker] Found 1 integrity violations:
Invalid property value:
   Node: workspace://SpacesStore/09f1f82c-80fd-4c05-8b8c-3ccd935f7d16
   Type: {http://www.alfresco.org/model/content/1.0}folder
   Property: {http://www.alfresco.org/model/content/1.0}name
   Constraint: 08020163 Value '/Projects/A/AAA_MAN001/Documents/ManagementX/' is not valid as a file name. This property must be a valid file name.
10:35:55,796 User:adminapi ERROR [alfresco.webdav.protocol] Internal Server Error:
org.alfresco.repo.node.integrity.IntegrityException: 08020164 Found 1 integrity violations:
Invalid property value:
   Node: workspace://SpacesStore/09f1f82c-80fd-4c05-8b8c-3ccd935f7d16
   Type: {http://www.alfresco.org/model/content/1.0}folder
   Property: {http://www.alfresco.org/model/content/1.0}name
   Constraint: 08020163 Value '/Projects/A/AAA_MAN001/Documents/ManagementX/' is not valid as a file name. This property must be a valid file name.
        at org.alfresco.repo.node.integrity.IntegrityChecker.checkIntegrity(IntegrityChecker.java:667)
        at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:661)
        at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:48)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:835)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:645)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:632)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:314)
        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:467)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:340)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:252)
        at org.alfresco.repo.webdav.WebDAVMethod.execute(WebDAVMethod.java:152)
        at org.alfresco.repo.webdav.WebDAVServlet.service(WebDAVServlet.java:137)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.alfresco.repo.webdav.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:315)
        at sun.reflect.GeneratedMethodAccessor359.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:122)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy192.doFilter(Unknown Source)
        at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:88)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
        at java.lang.Thread.run(Thread.java:662)
10:35:55,797 User:adminapi DEBUG [alfresco.webdav.protocol] MOVE is returning status code: 500
10:35:55,797 User:adminapi DEBUG [alfresco.webdav.protocol] MOVE took 168ms to execute

Outcomes