Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3691

Ignore rights.xml declaration when already present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.4.11, 4.5.0
    • None
    • None
    • None
    • 4.5 RC3

      When starting a projet with a rights.xml file declaring an already existing right, I have the following error :

      Caused by: java.lang.IllegalArgumentException: Right with id 'Workflow_Rights_Edition_Online' is already declared : 'Declared by plugin 'cms''. This second declaration is ignored.
      	at org.ametys.core.right.RightsExtensionPoint.addRight(RightsExtensionPoint.java:154)
      	at org.ametys.core.right.RightManager.configureRights(RightManager.java:255)
      	at org.ametys.core.right.RightManager.configure(RightManager.java:205)
      	... 76 more
      

      This error actually prevent the component from loading correctly and is not ignored as stated. We should at least not say that we will ignore it if we don't. But it would be better to actually ignore it I believe

            bmaurel Bérénice Maurel
            ggouin Guillaume Gouin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: