Archiva

Exception when trying to retrieve a Maven 1 artifact of type zip

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.1
  • Fix Version/s: 1.0.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Through my browser, I try to access my artifact :

the url is
http://localhost:8080/archiva/repository/maven1/jdk/zips/jre-1.0.zip

and the exception is
Error 404 Not Found

The following resource does not exist: http://localhost:8080/repository/jdk/distributions/jre-1.0.zip

org.apache.maven.archiva.repository.layout.LayoutException: Invalid path to Artifact: mismatch on extension [zip] and layout specified type [distributions] (which maps to extension: [distribution]) on path [jdk/distributions/jre-1.0.zip]
at org.apache.maven.archiva.repository.content.LegacyPathParser.toArtifactReference(LegacyPathParser.java:190)
at org.apache.maven.archiva.repository.content.RepositoryRequest.toArtifactReference(RepositoryRequest.java:135)
at org.apache.maven.archiva.repository.content.RepositoryRequest.toNativePath(RepositoryRequest.java:281)
at org.apache.maven.archiva.web.repository.ProxiedDavServer.process(ProxiedDavServer.java:193)
at org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.service(MultiplexedWebDavServlet.java:119)
at org.apache.maven.archiva.web.repository.RepositoryServlet.service(RepositoryServlet.java:155)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

The artifact has been correctly deployed on archiva and what is strange is that it tries to access
jdk/distributions/jre-1.0.zip instead of jdk/zips/jre-1.0.zip

If I install my artifact under le directory jdk/distributions, this don't solve the problem and
if I try to retrieve the artifact with maven it fails too.

Activity

Hide
Brett Porter added a comment -

I believe this may already be fixed in 1.0.2-SNAPSHOT - I will confirm

Show
Brett Porter added a comment - I believe this may already be fixed in 1.0.2-SNAPSHOT - I will confirm
Hide
Ivan POPOV added a comment -

It seems to be similar to this issue http://jira.codehaus.org/browse/MRM-481
but it has been fixed in 1.0-beta-3 so ....

Show
Ivan POPOV added a comment - It seems to be similar to this issue http://jira.codehaus.org/browse/MRM-481 but it has been fixed in 1.0-beta-3 so ....
Hide
Brett Porter added a comment -

confirmed

Show
Brett Porter added a comment - confirmed
Hide
Ivan POPOV added a comment -

I have just tested the revision 644345 and the problem is not solved.

I try to get jdk/zips/jre-1.5.0.zip

and the proxy answer is
Error 404 Not Found
The following resource does not exist: http://localhost:8080/repository/jdk/distributions/jre-1.5.0.zip

Show
Ivan POPOV added a comment - I have just tested the revision 644345 and the problem is not solved. I try to get jdk/zips/jre-1.5.0.zip and the proxy answer is Error 404 Not Found The following resource does not exist: http://localhost:8080/repository/jdk/distributions/jre-1.5.0.zip
Hide
Brett Porter added a comment -

what format is your underlying repository? is it maven1, or maven2?

Show
Brett Porter added a comment - what format is your underlying repository? is it maven1, or maven2?
Hide
Ivan POPOV added a comment -

It is a maven 1 repository

<layout>legacy</layout>

Show
Ivan POPOV added a comment - It is a maven 1 repository <layout>legacy</layout>
Hide
Ivan POPOV added a comment -

I find a workaround only available in 1.0.2.
Just have to install the zip file as groupId/distributions/artifactId-version.zip.

Show
Ivan POPOV added a comment - I find a workaround only available in 1.0.2. Just have to install the zip file as groupId/distributions/artifactId-version.zip.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: