archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohni, Daniel" <daniel.mo...@ch.unisys.com>
Subject download artefacts from managed repositories
Date Tue, 24 Oct 2006 15:41:31 GMT
Hello

I was checking the daily build for archiva today and I configured
2 repositories, one proxied to ibiblio and one without proxy.

Browsing the repository I can only download artefacts from proxied
repositories. Artefacts in managed repositories are not handled.

I checked the code and found the problem in 

DefaultProxyManager.getProxyGroups()

Only Proxied Repositories are added to the group, and therefore
only managed repositories will be searched for a requested artefact.

If I comment line 178 

// if ( !proxiedRepositories.isEmpty() )

then I can only download artefacts when I add the repoId in
the url for the download 

http://localhost:8080/archiva/proxy/<repoId>/...

now all artefacts are accessible...

Is this the way it should work, or should this be changed ?

if only 1 proxied repository is defined, then the downloads will
work, because it is hendled like the default repo (Line 187-190).

-> as soon as you have more than on proxied repository (release,
snapshot)
   you will get problems.

If the indexer would add the repository_id to the model, the url
could be modified to contain the repo_id

now, I can have a closer look, if this is the way to go...

- Daniel

Mime
View raw message