archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Coy <steve....@gmail.com>
Subject Re: authorization denied
Date Wed, 31 Jan 2007 11:50:09 GMT
Giving the guest user the "Repository Observer" role worked for me.

Steve Coy

On 31/01/2007, at 9:24 AM, Brett Porter wrote:

> Yes - currently the repository access is secured by default.
>
> You can either create a user/pass and grant them read access to the  
> repository in question, or you can do that for the guest user (I  
> think this will allow it to be used without credentials - if not I  
> think it should be added).
>
> - Brett
>
> On 31/01/2007, at 9:16 AM, flyboy wrote:
>
>>
>> How do I give myself authorization to download from my archiva  
>> manager?  Do I
>> have to enter my local username into the archiva user list?
>>
>> I built archiva from trunk today (Jan 30).  And ran it using 'mvn
>> jetty:run'.
>>
>> I setup a repository under archiva and changed my .m2/settings.xml  
>> file to
>> use it.  I cleared .m2/repository.  In return to a 'mvn compile',  
>> I get:
>>
>>
>> ...
>> Caused by: java.io.IOException: Server returned HTTP response  
>> code: 401 for
>> URL:
>> http://esm-build:9091/repository/mvn-repo/com/xxx/esm-pom/1.0.1/ 
>> esm-pom-1.0.1.pom
>> ...
>>
>>
>> esm-pom is the parent pom of all my projects.  Its the first  
>> artifact that
>> would be downloaded.
>>
>>
>> The window from which I started archiva, the following log  
>> messages appear:
>>
>>
>> -->>> request  
>> ----------------------------------------------------------
>> --> http://esm-build:9091/repository
>> GET /repository/mvn-repo/com/xxx/esm-pom/1.0.1/esm-pom-1.0.1.pom  
>> HTTP/1.1
>> Pragma: no-cache
>> User-Agent: Java/1.5.0_04
>> Host: esm-build:9091
>> Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
>> Connection: keep-alive
>> Content-Type: application/x-www-form-urlencoded
>>
>> --------------------------------------------------------------------- 
>> ---
>> 2007-01-30 17:07:28.763:/:INFO:  RepositoryServlet: Authorization  
>> Denied
>> [ip=172.24.0.156,isWriteRequest=false,permission=archiva-read- 
>> repository] :
>> no matching permissions
>> 2007-01-30 17:09:17,562 [btpool0-15] WARN   
>> DefaultActionInvocation        -
>> No result defined for action
>> org.codehaus.plexus.security.ui.web.action.admin.ReportAction and  
>> result
>> null
>>
>>
>> Thanks,
>>
>> John
>>
>> -- 
>> View this message in context: http://www.nabble.com/authorization- 
>> denied-tf3145308.html#a8719120
>> Sent from the archiva-users mailing list archive at Nabble.com.


Mime
View raw message