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

Access Federation - patching config with entity-types-to-sync fails

    Details

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

      Description

      When sending a valid payload with all 4 entity types, the patching fails. Moreover, it changes the config before failing, thus leaving the config in an invalid state (e.g. curl -uaccess-admin:password http://localhost:8081/access/api/v1/config will fail after that patching)

      curl -uaccess-admin:password -XPATCH "http://localhost:8081/access/api/v1/config" -H "Content-Type: application/json" -v -d '\{"config":"---\nfederation:\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    - tokens\n    maximum-future-time-diff-millis: 60000\n    number-of-retries: 3\n    timeout-millis: 3000\n"}'
      

      {
      "errors" : [

      { "code" : "BAD_REQUEST", "message" : "Invalid payload; java.lang.String cannot be cast to java.lang.Enum (through reference chain: org.jfrog.access.server.config.mapping.AccessConfigurationImpl[\"federation\"]->org.jfrog.access.server.config.mapping.federation.ConfigFederationImpl[\"outbound\"]->org.jfrog.access.server.config.mapping.federation.ConfigFederationOutboundImpl[\"entity-types-to-sync\"]->com.google.common.collect.RegularImmutableSet[0])" }

       

      Sending 1, 2 or 3 types, no matter which types, succeeds.

        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: