You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Jeffrey Hagelberg (JIRA)" <ji...@codehaus.org> on 2014/06/28 00:24:10 UTC
[jira] (MRM-1848) download links for files mult-dot extensions
incorrect in Browse view
Jeffrey Hagelberg created MRM-1848:
--------------------------------------
Summary: download links for files mult-dot extensions incorrect in Browse view
Key: MRM-1848
URL: https://jira.codehaus.org/browse/MRM-1848
Project: Archiva
Issue Type: Bug
Components: repository interface
Affects Versions: 2.0.1
Environment: Redhat 6.2, hosted in tomcat 8.0.9
Reporter: Jeffrey Hagelberg
We've found that the download links for tar.gz and .tar.bz2 files is missing the "tar" in the download link in the latest version of Archiva. We recently upgraded from Archiva 1.3.6 to 2.0.1. This issue occurs both for artifacts that were uploaded before the upgrade as well as for artifacts uploaded after the upgrade.
To illustrate this, I created a simple test case where I uploaded a sample .tar.gz (with and without a classifer) and .tar.bz2 file with different SNAPSHOT versions. When navigating the repository directory structure directly, we can see that the files were uploaded correctly. The tree SNAPSHOT directories are shown as following in my web browser:
Collection: /com/mydomain/test/jna/1.0-SNAPSHOT
com/mydomain/test/jna (Parent)
Name Size (Bytes) Last Modified
jna-1.0-20140627.220523-1-aix.tar.gz 963951 6/27/14 6:05 PM
jna-1.0-20140627.220523-1-aix.tar.gz.md5 32 6/27/14 6:05 PM
jna-1.0-20140627.220523-1-aix.tar.gz.sha1 40 6/27/14 6:05 PM
jna-1.0-20140627.220523-1.pom 427 6/27/14 6:05 PM
jna-1.0-20140627.220523-1.pom.md5 32 6/27/14 6:05 PM
jna-1.0-20140627.220523-1.pom.sha1 40 6/27/14 6:05 PM
maven-metadata.xml 799 6/27/14 6:05 PM
maven-metadata.xml.md5 32 6/27/14 6:05 PM
maven-metadata.xml.sha1 40 6/27/14 6:05 PM
Collection: /com/mydomain/test/jna/1.1-SNAPSHOT
com/mydomain/test/jna (Parent)
Name Size (Bytes) Last Modified
jna-1.1-20140627.220555-1.pom 427 6/27/14 6:05 PM
jna-1.1-20140627.220555-1.pom.md5 32 6/27/14 6:05 PM
jna-1.1-20140627.220555-1.pom.sha1 40 6/27/14 6:05 PM
jna-1.1-20140627.220555-1.tar.gz 963951 6/27/14 6:05 PM
jna-1.1-20140627.220555-1.tar.gz.md5 32 6/27/14 6:05 PM
jna-1.1-20140627.220555-1.tar.gz.sha1 40 6/27/14 6:05 PM
maven-metadata.xml 762 6/27/14 6:06 PM
maven-metadata.xml.md5 32 6/27/14 6:06 PM
maven-metadata.xml.sha1 40 6/27/14 6:06 PM
Collection: /com/mydomain/test/jna/1.2-SNAPSHOT
com/mydomain/test/jna (Parent)
Name Size (Bytes) Last Modified
jna-1.2-20140627.220629-1.pom 428 6/27/14 6:06 PM
jna-1.2-20140627.220629-1.pom.md5 32 6/27/14 6:06 PM
jna-1.2-20140627.220629-1.pom.sha1 40 6/27/14 6:06 PM
jna-1.2-20140627.220629-1.tar.bz2 934159 6/27/14 6:06 PM
jna-1.2-20140627.220629-1.tar.bz2.md5 32 6/27/14 6:06 PM
jna-1.2-20140627.220629-1.tar.bz2.sha1 40 6/27/14 6:06 PM
maven-metadata.xml 763 6/27/14 6:06 PM
maven-metadata.xml.md5 32 6/27/14 6:06 PM
maven-metadata.xml.sha1 40 6/27/14 6:06 PM
When we choose the Browse option, navigate to the artifacts, go to the "Artifacts" tab, and try to download the archives, though, none of the links for the .tar.gz and .tar.bz2 files are correct. Here is what the links are for each case (and what the Artifacts tab shows):
1.0-SNAPSHOT:
display:
tar.gz:1.0-20140627.220523-1 - 941.36 K
link:
http://www.myarchiva.com:8080/archiva/repository/snapshots/com/mydomain/test/jna/1.0-SNAPSHOT/jna-1.0-20140627.220523-1-aix.gz
1.1-SNAPSHOT:
display:
tar.gz:1.1-20140627.220555-1 - 941.36 K
link:
http://www.myarchiva.com:8080/archiva/repository/snapshots/com/mydomain/test/jna/1.1-SNAPSHOT/jna-1.1-20140627.220555-1.gz
1.2-SNAPSHOT:
display:
tar.bz2:1.2-20140627.220629-1 - 912.26 K
link:
http://www.myarchiva.com:8080/archiva/repository/snapshots/com/mydomain/test/jna/1.2-SNAPSHOT/jna-1.2-20140627.220629-1.bz2
Note that .tar is missing from all of the links.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)