[
https://issues.apache.org/jira/browse/MRM-1149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Olivier Lamy (*$^¨%`£) closed MRM-1149.
---------------------------------------
Resolution: Won't Fix
> White/Blacklist pattern matching doesn't work for Maven-1-repos
> ---------------------------------------------------------------
>
> Key: MRM-1149
> URL: https://issues.apache.org/jira/browse/MRM-1149
> Project: Archiva
> Issue Type: Bug
> Components: remote proxy
> Affects Versions: 1.2-M1
> Reporter: Lars Beuster
> Labels: TOMARKWONTFIX?
> Fix For: Backlog
>
>
> I have a proxy connector to a Maven-1 repo.
> I have a whitelist entry "my/group/**".
> If I try to download an artifact with the groupId "my.group.id" then my
> repository is ignored.
> This is because for Maven-2 repos the resolved filename is something like
> "my/group/id/<artifactId>".
> But I have a Maven-1 repo and here the resolved filename is
> "my.group.id/<artifactId>".
> Changing the whitelist entry to "my.group.**" still doesn't work, because the
> method DefaultRepositoryProxyConnector.matchesPattern() uses
> org.codehaus.plexus.util.SelectorUtils.matchPath() to check if the file
> matches a whitelist entry.
> But SelectorUtils works only with the "file.separator" ("/" on Unix) to split
> the filename. So I have no chance of using stars (*) in the whitelist.
> As a hack I could specify the complete groupId with stars (I cannot omit the
> stars) "my.group.id/**" - this works. But I can't add "my.group.**" to the
> whitelist.
> Regards
> Lars
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)