-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 8.10-HF05
-
Component/s: Directory
-
Sprint:nxcore 9.2.6
-
Story Points:5
Most of the time after a hot reload, non admin user can't read directories.
Name: Directory.SuggestEntries
Exception: OperationException
Caught error: Failed to invoke operation Directory.SuggestEntries
Caused by: org.nuxeo.ecm.directory.DirectorySecurityException: User Bob does not have Write permission
****** Hierarchy calls ******
org.nuxeo.ecm.automation.core.operations.services.directory.SuggestDirectoryEntries
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:238)
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:121)
at org.nuxeo.ecm.automation.server.jaxrs.OperationResource.execute(OperationResource.java:58)
at org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource.doPost(ExecutableResource.java:68)
... 90 more
Caused by: org.nuxeo.ecm.automation.OperationException: Failed to invoke operation Directory.SuggestEntries
at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:189)
at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.doInvoke(CompiledChainImpl.java:130)
at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.invoke(CompiledChainImpl.java:116)
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:214)
... 93 more
Caused by: org.nuxeo.ecm.directory.DirectorySecurityException: User Bob does not have Write permission
at org.nuxeo.ecm.directory.BaseSession.checkPermission(BaseSession.java:122)
at org.nuxeo.ecm.directory.sql.SQLSession.createEntry(SQLSession.java:190)
at org.nuxeo.ecm.directory.sql.SQLDirectory$$Lambda$39/1980678381.accept(Unknown Source)
at org.nuxeo.ecm.directory.DirectoryCSVLoader.loadData(DirectoryCSVLoader.java:110)
at org.nuxeo.ecm.directory.sql.SQLDirectory.getSession(SQLDirectory.java:266)
at org.nuxeo.ecm.automation.core.operations.services.directory.SuggestDirectoryEntries.run(SuggestDirectoryEntries.java:463)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:164)
at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:177)
... 96 more
2017-04-27 00:15:16,755 WARN [http-bio-127.0.0.1-8080-exec-12] [org.nuxeo.ecm.directory.sql.SQLDirectory] Closing a sql directory session for you SQLSession [directory=products, sid=-5997931518310217368]
2017-04-27 00:15:16,755 WARN [http-bio-127.0.0.1-8080-exec-12] [org.nuxeo.ecm.directory.sql.SQLDirectory] Closing sql directory session outside a transactionSQLSession [directory=products, sid=-5997931518310217368]
The error happened for a directory with creation policy set to always