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

Content selector privilege API requires "format"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.29.2
    • Fix Version/s: None
    • Component/s: Content Selectors, REST
    • Labels:
    • Notability:
      4

      Description

      The content select or privilege creation REST API requires format:

       

      {
      "name": "string",
      "description": "string",
      "actions": [
      "READ"
      ],
      "format": "string",
      "repository": "string",
      "contentSelector": "string"
      }
      

      I can see no way to leave it out, it results in an error saying format is required. However the content selector privilege UI does not even allow format to be specified. And additionally, you can create a privilege against "all repositories", where format clearly should not be required.

      Expected: Format should be optional for the API, or remove entirely to be consistent with the UI.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Michael Oliverio Michael Oliverio
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title