Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.1.0 CE RC1
    • Fix Version/s: --Sprint 12/11, 6.1.0 CE RC1
    • Component/s: DM, DM > WebDAV
    • Labels:
      None
    • Environment:
      OS X
    • Caused by:
      Bug fix was not complete
    • Where was the bug?:
      Java

      Description

      Uploading a file on OS X now creates the following stack trace (full trace attached):

      15:00:40,921 WARN  [DLWebDAVStorageImpl:791] Unable to unlock file entry
      com.liferay.portlet.asset.NoSuchEntryException: No AssetEntry exists with the key {classNameId=10085, classPK=27036}
      	at com.liferay.portlet.asset.service.persistence.AssetEntryPersistenceImpl.findByC_C(AssetEntryPersistenceImpl.java:2308)
      	at com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl.getEntry(AssetEntryLocalServiceImpl.java:224)
      	at sun.reflect.GeneratedMethodAccessor504.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      	at $Proxy125.getEntry(Unknown Source)
      	at com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl.updateAsset(DLAppHelperLocalServiceImpl.java:217)
      	at com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl.updateFileEntry(DLAppHelperLocalServiceImpl.java:312)
      	at sun.reflect.GeneratedMethodAccessor522.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      	at $Proxy180.updateFileEntry(Unknown Source)
      	at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.checkInFileEntry(DLAppServiceImpl.java:473)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      	at $Proxy179.checkInFileEntry(Unknown Source)
      	at com.liferay.portlet.documentlibrary.service.DLAppServiceUtil.checkInFileEntry(DLAppServiceUtil.java:363)
      	at com.liferay.portlet.documentlibrary.webdav.DLWebDAVStorageImpl.unlockResource(DLWebDAVStorageImpl.java:765)
      	at com.liferay.portal.webdav.methods.UnlockMethodImpl.process(UnlockMethodImpl.java:43)
      	at com.liferay.portal.webdav.WebDAVServlet.service(WebDAVServlet.java:113)
      ...
      15:00:41,032 WARN  [DLWebDAVStorageImpl:791] Unable to unlock file entry
      com.liferay.portlet.documentlibrary.DuplicateFileException: /Users/liferay/Servers/liferay-tomcat/data/document_library/10154/10180/1703/1.1
      	at com.liferay.portlet.documentlibrary.store.FileSystemStore.updateFileVersion(FileSystemStore.java:371)
      	at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.updateFileVersion(StoreProxyImpl.java:283)
      	at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.updateFileVersion(SafeFileNameStoreWrapper.java:433)
      	at com.liferay.portlet.documentlibrary.store.DLStoreImpl.updateFileVersion(DLStoreImpl.java:489)
      	at com.liferay.portlet.documentlibrary.store.DLStoreUtil.updateFileVersion(DLStoreUtil.java:669)
      	at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.checkInFileEntry(DLFileEntryLocalServiceImpl.java:294)
      	at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.checkInFileEntry(DLFileEntryLocalServiceImpl.java:339)
      	at sun.reflect.GeneratedMethodAccessor540.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      	at $Proxy182.checkInFileEntry(Unknown Source)
      	at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl.checkInFileEntry(DLFileEntryServiceImpl.java:104)
      	at sun.reflect.GeneratedMethodAccessor539.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      	at $Proxy183.checkInFileEntry(Unknown Source)
      	at com.liferay.portal.repository.liferayrepository.LiferayRepository.checkInFileEntry(LiferayRepository.java:188)
      	at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.checkInFileEntry(DLAppServiceImpl.java:467)
      	at sun.reflect.GeneratedMethodAccessor538.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      	at $Proxy179.checkInFileEntry(Unknown Source)
      	at com.liferay.portlet.documentlibrary.service.DLAppServiceUtil.checkInFileEntry(DLAppServiceUtil.java:363)
      	at com.liferay.portlet.documentlibrary.webdav.DLWebDAVStorageImpl.unlockResource(DLWebDAVStorageImpl.java:765)
      	at com.liferay.portal.webdav.methods.UnlockMethodImpl.process(UnlockMethodImpl.java:43)
      	at com.liferay.portal.webdav.WebDAVServlet.service(WebDAVServlet.java:113)
      ...
      

      After the upload is complete, the file is found to be locked.

      Also, the JUnit test WebDAVOSXTest is failing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mika.koivisto Mika Koivisto
                Reporter:
                caorongjin Alexander Chow (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  8 years, 2 weeks, 2 days ago

                  Packages

                  Version Package
                  --Sprint 12/11
                  6.1.0 CE RC1