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

REST API Swagger generates extra "-F" causing command to fail.

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.12.0
    • 3.11.0
    • REST

    Description

      Using the swagger REST API for component upload, generates incorrect curl call due to blank "-F" parameters.

       

      curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: text/plain' -F -F -F -F -F -F -F -F -F maven2.groupId=testgroup -F maven2.artifactId=testartifact -F maven2.version=1.0.0 -F maven2.generate-pom=true -F maven2.packaging=jar -F -F -F maven2.asset1.extension=jar -F -F -F -F -F 'http://localhost:8081/service/rest/beta/components?repository=maven-releases'

       

      The above was generated with below settings.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            msurani Mahendra Surani
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              tigCommentSecurity.panel-title