You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Maria Odea Ching (JIRA)" <ji...@codehaus.org> on 2013/05/01 09:42:52 UTC

[jira] (MRM-1757) Unable to download uploaded artifact from repository

    [ https://jira.codehaus.org/browse/MRM-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=324470#comment-324470 ] 

Maria Odea Ching commented on MRM-1757:
---------------------------------------

The problem occurs if the URL specified in the Application Link in UI Configuration has a trailing '/' at the end of it. Workaround is to remove the '/'. 

I'll add a fix for it as well to remove any trailing '/' in the base url when generating the artifact link.


                
> Unable to download uploaded artifact from repository
> ----------------------------------------------------
>
>                 Key: MRM-1757
>                 URL: https://jira.codehaus.org/browse/MRM-1757
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.4-M4
>            Reporter: Maria Odea Ching
>            Priority: Critical
>
> Reported from the dev list by Piotr Szwed:
> After uploading an artifact to the newly created repository, I am unable
> to download it. The problem seems to be in the URL generated by Jetty.
> When I click on the particular artifact's URL, I get the following link:
> *//*
> repository/playground/com/gerrit-architecture/1.0/gerrit-architecture-1.0.zip
> which results with the following message:
> *Problem accessing
> //repository/playground/com/gerrit-architecture/1.0/gerrit-architecture-1.0.zip.
> Reason:    Not Found*
> After removing the first slash "/" from the URL - downloading
> starts automatically. So I suspect that one of the "/" is redundant and
> shouldn't be generated.
> my default config entry seems to be fine:
> ./conf/archiva.xml:<location>/mnt/localdata/gerrit/archiva/apache-archiva-js-1.4-M3/repositories/playground</location>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira