Uploaded image for project: 'Links directory'
  1. Links directory
  2. LINKS-122

Can not limit an application to a group that has a # in the id

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.3.0
    • 2.2.0
    • None
    • 4.2 M1

      I'm using an LDAP group width id #AGGLO and label #AGGLO.

      I have limited several applications to this group, applications disappear from the front office, while the connected user is in this group.
      => identifiers with # are not supported in the limitation

          [LINKS-122] Can not limit an application to a group that has a # in the id

          Widget edition.group should be review too, as it splits on "#" (see #getValue)

          Laurence Aumeunier added a comment - Widget edition.group should be review too, as it splits on "#" (see #getValue )

          Raphaël Franchet added a comment - - edited

          A search returned me the following occurences

          • org.ametys.core.group.GroupIdentity#stringToGroupIdentity
          • org.ametys.core.user.UserIdentity#stringToUserIdentity
          • org.ametys.plugins.core.group.GroupSearchAction#_searchGroupsByContext
          • org.ametys.plugins.core.user.UserSearchAction#_searchUsersByContext

          In all cases, we user String#split and we could change this by StringUtils.substringBeforeLast("#") StringUtils.substringAfterLast("#") to allow the '#' character in login/groupId (as we know that '#' is forbiddent in user and group populations)

          Raphaël Franchet added a comment - - edited A search returned me the following occurences org.ametys.core.group.GroupIdentity#stringToGroupIdentity org.ametys.core.user.UserIdentity#stringToUserIdentity org.ametys.plugins.core.group.GroupSearchAction#_searchGroupsByContext org.ametys.plugins.core.user.UserSearchAction#_searchUsersByContext In all cases, we user String#split and we could change this by StringUtils.substringBeforeLast("#") StringUtils.substringAfterLast("#") to allow the '#' character in login/groupId (as we know that '#' is forbiddent in user and group populations)

            laurence Laurence Aumeunier
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: