Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-23071

/beta/repositories/{format}/group/{repositoryName} example model is wrong

    XMLWordPrintable

    Details

    • Notability:
      3

      Description

      Open the UI API browser and expand the /beta/repositories/docker/group/{repositoryName} resource.

      The example value for the model is:

      {
        "name": "internal",
        "online": true,
        "storage": {
          "blobStoreName": "default",
          "strictContentTypeValidation": true
        },
        "group": {
          "memberNames": "maven-public"
        },
        "docker": {
          "v1Enabled": false,
          "forceBasicAuth": true,
          "httpPort": 8082,
          "httpsPort": 8083
        }
      }
      

      If this example model is used, you get a 400 response errors:

      "id": "memberNames", 
      "message": "Cannot deserialize instance of `java.util.ArrayList` out of VALUE_STRING token" 
      

      Expected

      Fix the example model to use an array for memberNames instead of a String "maven-public".
      Make sure other REST resources for other formats are also fixed.

      Workaround

      Manually edit the model to use an array instead of a string.

      "memberNames": [ "maven-public" ] 
      

        Attachments

          Activity

            People

            Assignee:
            bradbeck Brad Beck
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Joe Tom
            Team:
            NXRM - Operations/Groot
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title