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

Rest API returns storage.writePolicy set to ALLOW for repository type proxy if format is apt or docker

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.24.0
    • Fix Version/s: None
    • Component/s: Repository, REST
    • Labels:

      Description

      Nexus Repository Manager 3 Rest API returns attribute storage.writePolicy set to ALLOW for proxy repositories of format apt and docker.

      API model does not show the attribute at all.

      For all other proxy repositories the attribute is not returned at all.

      $ curl -X GET "http://127.0.0.1:8081/service/rest/beta/repositories" -H "accept: application/json"
      
      {
      "name": "docker-proxy",
      "url": "http://127.0.0.1:8081/repository/docker-proxy",
      "online": true,
      "storage": {
        "blobStoreName": "default",
        "strictContentTypeValidation": true,
        "writePolicy": "ALLOW"
      },
      "format": "docker",
      "type": "proxy"
      ...
      {
      "name": "apt-proxy",
      "url": "http://127.0.0.1:8081/repository/apt-proxy",
      "online": true,
      "storage": {
        "blobStoreName": "default",
        "strictContentTypeValidation": true,
        "writePolicy": "ALLOW"
      },
      "format": "docker",
      "type": "proxy"
      ...
      {
      "name": "helm-proxy",
      "format": "helm",
      "url": "http://127.0.0.1:8081/repository/helm-proxy",
      "online": true,
      "storage": {
        "blobStoreName": "default",
        "strictContentTypeValidation": true
      }, 

      Expectation:

      • storage.writePolicy is not returned for proxy repositores of format apt and docker

      Tested with docker container image sonatype/nexus3:3.24.0

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            Nosmoht Thomas Krahn
            Last Updated By:
            Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title