Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12194

Can't access user permission because of resource from an other site

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.8.2, 4.9.0
    • 4.8.2, 4.9.0
    • None
    • None
    • 4.9.0 M1
    • Oui

      Following CMS-12180, accessing the user permission tool for a user with access on resource from an other site fails with the following error :

      Unsupported object '/ametys-internal:sites/www2' (site://61f2a272-bea4-4836-a3e7-25c9abd7f049)
      org.ametys.core.right.RightsException: Unsupported object '/ametys-internal:sites/www2' (site://61f2a272-bea4-4836-a3e7-25c9abd7f049)
          at org.ametys.plugins.explorer.rights.ResourceAccessController.getObjectLabel(ResourceAccessController.java:173)
          at org.ametys.plugins.explorer.rights.ResourceAccessController.getObjectLabel(ResourceAccessController.java:168)
          at org.ametys.core.right.AccessController.getExplanationObject(AccessController.java:397)
      

      It comes from the fact that explorer root from an other site is detected as supported but the getExplanationObject only support the root of the current site

          [CMS-12194] Can't access user permission because of resource from an other site

          Guillaume Gouin made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Ready to merge [ 10208 ] New: Resolved [ 5 ]
          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 -
          Assignee Original: Laurence Aumeunier [ laurence ]
          Laurence Aumeunier made changes -
          Status Original: Available for review [ 10005 ] New: Code review OK [ 10206 ]
          Guillaume Gouin made changes -
          Assignee Original: Guillaume Gouin [ ggouin ] New: Laurence Aumeunier [ laurence ]
          Guillaume Gouin made changes -
          Status Original: In Progress [ 3 ] New: Available for review [ 10005 ]
          Laurence Aumeunier made changes -
          Assignee New: Guillaume Gouin [ ggouin ]
          Status Original: Available for review [ 10005 ] New: In Progress [ 3 ]
          Guillaume Gouin made changes -
          Assignee Original: Guillaume Gouin [ ggouin ]
          Guillaume Gouin made changes -
          Status Original: Open [ 1 ] New: Available for review [ 10005 ]

            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: