Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-19128

Delete operation fails for user which associated to a permission target that includes builds only and no repos in it

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 6.8.10
    • Fix Version/s: 6.11.0, 6.8.11
    • Component/s: None
    • Labels:
      None
    • Severity:
      Medium

      Description

      Flow:

      • Create user
      • Add Permission with only build related permission target (no repos included in permission)
      • Delete user

      As a result, exception in Artifactory:

      2019-05-02 12:54:48,294 [http-nio-8081-exec-7] [ERROR] (o.a.r.c.e.m.GlobalExceptionMapper:48) - Acl is not of a known type. Must be of type repo/build
      java.lang.IllegalStateException: Acl is not of a known type. Must be of type repo/build
      at org.artifactory.storage.db.security.service.access.AclStoreServiceImpl.copyAclByType(AclStoreServiceImpl.java:260)
      at org.artifactory.storage.db.security.service.access.AclStoreServiceImpl.removeAceFromAcl(AclStoreServiceImpl.java:246)
      at org.artifactory.storage.db.security.service.access.AclStoreServiceImpl.lambda$null$4(AclStoreServiceImpl.java:241)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1553)
      at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
      at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
      at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1625)
      at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      at org.artifactory.storage.db.security.service.access.AclStoreServiceImpl.lambda$removeAllGeneric$5(AclStoreServiceImpl.java:242)
      at org.artifactory.storage.db.security.service.access.AclStoreServiceImpl.cudOperation(AclStoreServiceImpl.java:202)
      at org.artifactory.storage.db.security.service.access.AclStoreServiceImpl.removeAllGeneric(AclStoreServiceImpl.java:233)
      at org.artifactory.storage.db.security.service.access.AclStoreServiceImpl.removeAllUserAces(AclStoreServiceImpl.java:218)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shayb Shay Bagants
              Reporter:
              shayb Shay Bagants
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-19128 -
                  SYNCHRONIZED
                  • Last Sync Date: