-
Bug
-
Resolution: Fixed
-
Major
-
1.12.0
-
None
-
4.8.1
-
Oui
The controller can initialize without setting the _rootPath attribute but this attribute is not protected against NPE after.
This can lead to the following error :
Message : An error occured with controller 'org.ametys.plugins.extraction.rights.ExtractionAuthorAccessController' for object org.apache.excalibur.source.impl.FileSource@12dbfe67. Thus, this controller will be ignored. Emplacement : org.ametys.core.right.RightManager._getAccessResults(RightManager.java:498) Pile d'appels : java.lang.NullPointerException: Cannot invoke "String.length()" because "prefix" is null at java.base/java.lang.String#startsWith:2259 at java.base/java.lang.String#startsWith:2302 at org.ametys.plugins.extraction.rights.ExtractionAuthorAccessController#isSupported:80