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

getting unauthorized when I try to batch upload artifact using curl

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 2.8.1
    • Fix Version/s: None
    • Component/s: LDAP
    • Labels:
      None
    • Environment:
      this is happening in both dev and prod environment

      Description

      I am trying to upload an artifact to nexus and getting an unauthorized message. Below is the command and the output from the command.
      curl -v -F r=snapshots -F hasPom=false -F e=tar -F g=edu.vt.dbaa -F a=svn -F v=1.0-SANPSHOT -F p=tar -F file=/apps/dbms/install/svn.tar id/pswd https://webapps-dev.es.vt.edu/nexus/content/repositories/snapshots/edu/vt/dbaa/svn/svn.tar

      About to connect() to webapps-dev.es.vt.edu port 443 (#0)

      • Trying 198.82.183.87... connected
      • Connected to webapps-dev.es.vt.edu (198.82.183.87) port 443 (#0)
      • Initializing NSS with certpath: /etc/pki/nssdb
      • CAfile: /etc/pki/tls/certs/ca-bundle.crt
        CApath: none
      • SSL connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
      • Server certificate:
      • subject: CN=webapps-dev.es.vt.edu,O=Virginia Polytechnic Institute and State University,L=Blacksburg,ST=Virginia,C=US
      • start date: Apr 14 13:00:32 2014 GMT
      • expire date: Apr 13 13:00:32 2016 GMT
      • common name: webapps-dev.es.vt.edu
      • issuer: CN=Virginia Tech Global Qualified Server CA,O=Virginia Polytechnic Institute and State University,OU=Global Qualified Server CA,L=Blacksburg,ST=Virginia,C=US
        > POST /nexus/content/repositories/snapshots/edu/vt/dbaa/svn/svn.tar HTTP/1.1
        > User-Agent: curl/7.19.7 (x86_64-unknown-linux-gnu) libcurl/7.19.7 NSS/3.12.7.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
        > Host: webapps-dev.es.vt.edu
        > Accept: /
        > Content-Length: 846
        > Expect: 100-continue
        > Content-Type: multipart/form-data; boundary=----------------------------630148f60def
        >
        < HTTP/1.1 100 Continue
        < HTTP/1.1 401 Unauthorized
        < Date: Thu, 09 Oct 2014 14:12:10 GMT
        < Strict-Transport-Security: max-age=31536000; includeSubDomains
        < X-Frame-Options: SAMEORIGIN
        < X-Content-Type-Options: nosniff
        < WWW-Authenticate: BASIC realm="Sonatype Nexus Repository Manager"
        < Content-Type: text/html;charset=utf-8
        < Content-Length: 951
        < Set-Cookie: rememberMe=deleteMe; Path=/nexus; Max-Age=0; Expires=Wed, 08-Oct-2014 14:12:10 GMT
        < X-RouteInfo: rp-3, mt-dvlp-4
        < WL-Proxy-Client-IP: 198.82.162.127
        < WL-Proxy-SSL: true
        <
      • Connection #0 to host webapps-dev.es.vt.edu left intact
      • Closing connection #0

      Any help would be appreciated.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bagley Victor Bagley
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title