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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.11.0
    • Fix Version/s: 3.12.0
    • Component/s: REST
    • Labels:

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            msurani Mahendra Surani
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title