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

Initialization issue with author access controller

    • 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
      

          [EXTRACT-195] Initialization issue with author access controller

          Guillaume Gouin made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Ready to merge [ 10208 ] New: Resolved [ 5 ]
          Cédric Damioli made changes -
          Rank New: Ranked higher
          Cédric Damioli made changes -
          Rank New: Ranked higher
          Cédric Damioli made changes -
          Rank New: Ranked higher
          Magali Franchet made changes -
          Assignee New: Guillaume Gouin [ ggouin ]
          Magali Franchet made changes -
          Status Original: Code review OK [ 10206 ] New: Ready to merge [ 10208 ]
          Laurence Aumeunier made changes -
          Status Original: Available for review [ 10005 ] New: Code review OK [ 10206 ]
          Guillaume Gouin made changes -
          Assignee Original: Guillaume Gouin [ ggouin ]
          Guillaume Gouin made changes -
          Status Original: In Progress [ 3 ] New: Available for review [ 10005 ]
          Guillaume Gouin made changes -
          Revue fonctionnelle renseignée New: Oui [ 10610 ]

            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: