Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-5356

Fix shell command to add users to group

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3.1
    • Fix Version/s: 5.3.2
    • Component/s: Shell

      Description

      When a group has already some members, the command groupmod raises an error :

      java.lang.UnsupportedOperationException
      at java.util.AbstractList.add(AbstractList.java:131)
      at java.util.AbstractList.add(AbstractList.java:91)
      at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
      at org.nuxeo.ecm.shell.commands.user.GroupModCommand.modifyGroup(GroupMo
      dCommand.java:166)

      It is because we try to modify a singleton list which is immutable.

        Attachments

          Activity

            People

            • Assignee:
              tmartins Thierry Martins
              Reporter:
              tmartins Thierry Martins
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: