-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: 2021.58, 2023.16
-
Component/s: Core
-
Release Notes Summary:Moving a document to an Orderable folderable is now working correctly.
-
Tags:
-
Backlog priority:900
-
Team:PLATFORM
-
Sprint:nxplatform #122
-
Story Points:3
Steps to reproduce:
- install Nuxeo 2021.58
- install the addons nuxeo-jsf-ui and nuxeo-tree-snapshot
- copy the jar nuxeo-tree-snapshot-jsf-2021.58.6.jar (it contains a modif to be able to create a versionable folder in an ordered folder)
- start Nuxeo and go to the personal workspace
- create 2 ordered folders
- in the first ordered folder, create a versionable folder
- in the first ordered folder, select the versionable folder and push the button to add it to the selection
- navigate to the second ordered folder
- in the left clipboard, click on the link to move the selection to the current folder
- observe the error
In the logs, the stacktrace is
Caused by: java.lang.NullPointerException at org.nuxeo.ecm.core.storage.sql.PersistenceContext.orderBefore(PersistenceContext.java:1397) ~[nuxeo-core-storage-sql-2021.58.6.jar:?] at org.nuxeo.ecm.core.storage.sql.SessionImpl.orderBefore(SessionImpl.java:846) ~[nuxeo-core-storage-sql-2021.58.6.jar:?] at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.orderBefore(SQLSession.java:191) ~[nuxeo-core-storage-sql-2021.58.6.jar:?] at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.orderBefore(SQLDocumentLive.java:733) ~[nuxeo-core-storage-sql-2021.58.6.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.orderBefore(AbstractSession.java:2909) ~[nuxeo-core-2021.58.6.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.move(AbstractSession.java:620) ~[nuxeo-core-2021.58.6.jar:?] at org.nuxeo.ecm.webapp.clipboard.ClipboardActionsBean.moveDocumentsToNewParent(ClipboardActionsBean.java:353) ~[nuxeo-platform-webapp-base-2021.39.6.jar:?] at org.nuxeo.ecm.webapp.clipboard.ClipboardActionsBean.moveDocumentList(ClipboardActionsBean.java:375) ~[nuxeo-platform-webapp-base-2021.39.6.jar:?] at org.nuxeo.ecm.webapp.clipboard.ClipboardActionsBean.moveDocumentList(ClipboardActionsBean.java:397) ~[nuxeo-platform-webapp-base-2021.39.6.jar:?] at org.nuxeo.ecm.webapp.clipboard.ClipboardActionsBean.moveWorkingList(ClipboardActionsBean.java:403) ~[nuxeo-platform-webapp-base-2021.39.6.jar:?]
Expected behavior: the versionable folder is moved without error
- is caused by
-
NXP-32759 Moving documents to ordered folder does not give them a position
- Resolved