-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
4.8.1
-
Oui
I have an application without EP activated yet and no catalog site name in configuration parameter (workspaces.catalog.site.name)
In logs, there is many errors about access controllers
java.lang.IllegalArgumentException: Unknown site ''. The global Ametys configuration is invalid for the parameter 'workspaces.catalog.site.name' at org.ametys.plugins.workspaces.project.ProjectManager.getCatalogSiteName(ProjectManager.java:2116) at org.ametys.plugins.workspaces.project.rights.accesscontroller.ReportsPageAccessController.isReportPage(ReportsPageAccessController.java:284) at org.ametys.plugins.workspaces.project.rights.accesscontroller.ReportsPageAccessController.isSupported(ReportsPageAccessController.java:81) at org.ametys.core.right.RightManager._getAccessResults(RightManager.java:476) at org.ametys.core.right.RightManager._hasRightOrRead(RightManager.java:392) at org.ametys.core.right.RightManager.hasAnonymousReadAccess(RightManager.java:540)
java.lang.IllegalArgumentException: Unknown site ''. The global Ametys configuration is invalid for the parameter 'workspaces.catalog.site.name' at org.ametys.plugins.workspaces.project.ProjectManager.getCatalogSiteName(ProjectManager.java:2116) at org.ametys.plugins.workspaces.project.rights.accesscontroller.CatalogNewsAccessController._isCatalogNewsPage(CatalogNewsAccessController.java:99) at org.ametys.plugins.workspaces.project.rights.accesscontroller.CatalogNewsAccessController.isSupported(CatalogNewsAccessController.java:94) at org.ametys.core.right.RightManager._getAccessResults(RightManager.java:476) at org.ametys.core.right.RightManager._hasRightOrRead(RightManager.java:392) at org.ametys.core.right.RightManager.hasAnonymousReadAccess(RightManager.java:540)
Since WORKSPACES-1368, we throw an error when catalog site name is empty or is unknown.
Maybe the AC should not ignore this error and return false for #isSupported in this case
- testing discovered
-
RUNTIME-4033 Protect RightManager#explain against failure in isSupported method
- Resolved