Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-1232

Unable to get artifacts from repositories which requires Repository Manager role using repository group

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.2.2
    • Component/s: WebDAV Interface
    • Labels:
      None

      Description

      To reproduce:

      1. Create managed repository 'releases'
      2. Create a new user account with the following credentials
        • username: newuser
        • password: pass1
      3. Assign Repository Manager role for 'releases' repository to newuser
      4. Deploy a test artifact to 'releases' repository. Make sure that the credentials are configured in settings.xml
      5. Create a new repository group named 'internal.group'
      6. Add the 'releases' repository and the pre-configured 'internal' repository to 'internal.group'
      7. Add the following configuration to your settings.xml:
        <mirrors>
          <mirror>
            <id>internal.group</id>
           <name>Local Mirror</name>
           <url>http://localhost:8080/archiva/repository/internal.group</url>
           <mirrorOf>*</mirrorOf>
          </mirror>
        <mirrors>
        <servers>
          <server>
            <id>internal.group</id>
            <username>newuser</username>
            <password>pass1</password>
          </server>  
        </server>
        
      8. Build a project with a dependency on the test artifact you deploy in step 4. The build would fail with unable to resolve artifact ... error.
      9. Edit guest account and assign Repository Observer role for repository 'releases'
      10. Build the project again. You would get a successful build.

        Attachments

          Activity

            People

            • Assignee:
              oching Maria Odea B. Ching
              Reporter:
              oching Maria Odea B. Ching
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: