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

Upload Artifact fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.6
    • Fix Version/s: 1.4.0
    • Component/s: Repository
    • Labels:
      None
    • Environment:
      Using Nexus 1.3.6 running on a Ubuntu 8.04 Server Edition within VMWare
      Client is using Windows 7, and have tried with IE 8, FF3, Google Chrome, and Safari

      Description

      When trying to upload artifacts into the third party repository, the UI reports artifact upload successful. However, browsing the repository, no such artifacts are found.

      Also went to review the storage folder for the third party repository, and it was again empty.

      Turned on the DEBUG level for logging, and subsequently went on to perform the upload of the artifact again. Noticed that whenever the upload artifact action is being performed, the system is attempting to perform the activity as anonymous. I also tried creating another user and granted the user administrative privileges to attempt to perform the activity, and it still failed due to the permissions being not available to anonymous users.

      Taking a look at the log statements in this section

      =====================================================================================================
      2009-10-13 15:45:08 DEBUG [c=1255419907726] - org.mortbay.log - REQUEST /nexus/service/local/repository_statuses on org.mortbay.jetty.HttpConnection@153d05b
      2009-10-13 15:45:08 DEBUG [c=1255419907726] - org.mortbay.log - sessionManager=org.mortbay.jetty.servlet.HashSessionManager@1341183
      2009-10-13 15:45:08 DEBUG [c=1255419907726] - org.mortbay.log - session=null
      2009-10-13 15:45:08 DEBUG [c=1255419907726] - org.mortbay.log - servlet=nexus
      2009-10-13 15:45:08 DEBUG [c=1255419907726] - org.mortbay.log - chain=nexusFilter->nexus
      2009-10-13 15:45:08 DEBUG [c=1255419907726] - org.mortbay.log - servlet holder=nexus
      2009-10-13 15:45:08 DEBUG [c=1255419907726] - org.mortbay.log - call filter nexusFilter
      2009-10-13 15:45:08 INFO [c=1255419907726] - o.s.n.s.f.a.NexusSe~ - Successfully authenticated user [jega] from address/host [127.0.0.1/127.0.0.1]
      2009-10-13 15:45:09 DEBUG [c=1255419907726] - o.s.n.e.Authenticat~:default - Notifying 1 EventListener about event org.sonatype.nexus.auth.NexusAuthenticationEvent fired (org.sonatype.nexus.auth.NexusAuthenticationEvent@55ff4)
      2009-10-13 15:45:09 DEBUG [c=1255419907726] - o.s.n.s.f.a.HttpVer~ - MAPPED 'read' action to permission: nexus:repostatus:read
      2009-10-13 15:45:09 DEBUG [c=1255419907726] - org.mortbay.log - call servlet nexus
      2009-10-13 15:45:09 DEBUG [c=1255419907726] - org.mortbay.log - RESPONSE /nexus/service/local/repository_statuses 200
      2009-10-13 15:45:44 DEBUG [t/maven/content] - org.mortbay.log - REQUEST /nexus/service/local/artifact/maven/content on org.mortbay.jetty.HttpConnection@192c766
      2009-10-13 15:45:44 DEBUG [t/maven/content] - org.mortbay.log - sessionManager=org.mortbay.jetty.servlet.HashSessionManager@1341183
      2009-10-13 15:45:44 DEBUG [t/maven/content] - org.mortbay.log - session=null
      2009-10-13 15:45:44 DEBUG [t/maven/content] - org.mortbay.log - servlet=nexus
      2009-10-13 15:45:44 DEBUG [t/maven/content] - org.mortbay.log - chain=nexusFilter->nexus
      2009-10-13 15:45:44 DEBUG [t/maven/content] - org.mortbay.log - servlet holder=nexus
      2009-10-13 15:45:44 DEBUG [t/maven/content] - org.mortbay.log - call filter nexusFilter
      2009-10-13 15:45:44 DEBUG [t/maven/content] - o.s.n.s.f.a.NexusSe~ - Attempting to authenticate Subject as Anonymous request...
      2009-10-13 15:45:44 DEBUG [t/maven/content] - o.s.n.s.f.a.NexusSe~ - Successfully logged in as anonymous
      2009-10-13 15:45:44 DEBUG [t/maven/content] - o.s.n.e.Authenticat~:default - Notifying 1 EventListener about event org.sonatype.nexus.auth.NexusAuthenticationEvent fired (org.sonatype.nexus.auth.NexusAuthenticationEvent@c1abcf)
      2009-10-13 15:45:44 DEBUG [t/maven/content] - o.s.n.s.f.a.HttpVer~ - MAPPED 'create' action to permission: nexus:artifact:create
      2009-10-13 15:45:44 DEBUG [t/maven/content] - o.s.n.s.f.a.NexusSe~ - Request processing is rejected coz lacking of perms/roles.
      2009-10-13 15:45:44 DEBUG [t/maven/content] - org.mortbay.log - RESPONSE /nexus/service/local/artifact/maven/content 401
      =====================================================================================================

      It can be seen that the request immediately prior to the upload request was authenticated as the user who had logged on (myself: jega). However, when the create request is called, the operation is being performed as anonymous.

      Please do advise if there is any additional items that I need to take into consideration prior to being able to perform the artifact upload. I also tried using the default "admin" account and the log still seems to indicate the same. I am attaching the log file for further investigation and advice.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jegadisan Jegadisan
              Last Updated By:
              Rich Seddon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: