Uploaded image for project: 'Extraction'
  1. Extraction
  2. EXTRACT-195

Initialization issue with author access controller

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.13.0
    • 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
      

            ggouin Guillaume Gouin
            ggouin Guillaume Gouin
            Guillaume Gouin Guillaume Gouin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: