Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-7081

Duplicate key exception in permissions directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2024.1.5
    • Fix Version/s: 2024.1.6
    • Component/s: Roles & Permissions

      Description

      Due to duplicated keys in the permission directory, it leads to 500 errors when they are computed:

       

      java.lang.IllegalStateException: Duplicate key nreddy3@lululemon.com (attempted merging values [git:write, git:read] and [git:write, git:read]) at java.util.stream.Collectors.duplicateKeyException(Collectors.java:133) ~[?:?] at java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180) ~[?:?] at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:?] at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1621) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ~[?:?] at com.nuxeo.studio.core.PermissionServiceImpl.getPermissionsByUser(PermissionServiceImpl.java:177) ~[nuxeo-studio-core-2024.1.5-0-g53f665d7.jar:?] at com.nuxeo.connect.rest.impl.ProjectResourceImpl.getProject(ProjectResourceImpl.java:79) ~[nuxeo-connect-rest-api-2024.1.5-0-g53f665d7.jar:?]

        Attachments

          Activity

            People

            • Assignee:
              fbematol Florian Bematol
              Reporter:
              fbematol Florian Bematol
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: