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

Access Federation - PATCH config - cannot add servers

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.0
    • Component/s: None
    • Labels:
      None

      Description

      PATCH fails when including servers:

      curl -uaccess-admin:password -XPATCH "http://localhost:8081/access/api/v1/config" -H "Content-Type: application/json" -v -d '{"config":"federation:\n  outbound:\n    buffer-max-size: 500\n    buffer-wait-millis: 10000\n    consider-stale-hours: 168\n    entity-types-to-sync:\n    - users\n    - groups\n    - permissions\n    maximum-future-time-diff-millis: 60000\n    number-of-retries: 3\n    timeout-millis: 3000\n    servers:\n    - name: \"access-2\"\n      url: \"http://localhost:8082/access/\"\n  inbound:\n    service-id-mapping: \n    - from: jfrt@01cbvqwgz6dg3t0h5ysfg40xm5\n      to: jfrt@01cbvqjmap9dpt0br73hme1trb"}'
      

      logs:
      2018-04-25 12:53:45,185 [http-nio-8081-exec-6] [JFrog-Access] [ERROR] (o.j.a.s.r.e.m.DefaultExceptionMapper:25) - General exception mapper caught:null
      java.lang.UnsupportedOperationException: null
      at com.google.common.collect.ImmutableCollection.add(ImmutableCollection.java:218)
      at org.jfrog.common.config.diff.DiffMerger.processSpecialInstructionsForMap(DiffMerger.java:502)
      at org.jfrog.common.config.diff.DiffMerger.lambda$processMapOrCollectionElements$31(DiffMerger.java:378)

        Attachments

          Activity

            People

            • Assignee:
              noams Noam Shemesh
              Reporter:
              rotemk Rotem Kfir
              Assigned QA:
              Rotem Kfir
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: