Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-49753

Calling move file/folder to trash for objects already in trash throws exception

    Details

      Description

      When moving a folder or fileEntry that's already in the trash to the trash again, the following exception will be thrown:

      19:30:55,449 ERROR [http-bio-8080-exec-3][JSONWebServiceServiceAction:82] com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:251)
      at com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistenceImpl.fetchByF_V(DLFileVersionPersistenceImpl.java:3659)
      at com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistenceImpl.fetchByF_V(DLFileVersionPersistenceImpl.java:3563)
      at com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistenceImpl.findByF_V(DLFileVersionPersistenceImpl.java:3527)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileVersionLocalServiceImpl.getFileVersion(DLFileVersionLocalServiceImpl.java:51)
      ...

        Attachments

          Activity

            People

            Assignee:
            shitian.zhang Shitian "Shelton" Zhang (Inactive)
            Reporter:
            dennis.ju Dennis Ju
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 years, 25 weeks, 1 day ago

                Packages

                Version Package
                6.2.X EE
                7.0.0 M2