-
Type:
Bug
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: 7.18.6, 7.27.3
-
Fix Version/s: None
-
Component/s: Maven, Remote Repository
-
Labels:None
-
Environment:
Reproduced in On prem Artifactory 7.18.6 and SaaS Artifactory 7.26.3 and 7.27.3
-
Location:External
Problem description:
Adding a Maven repository from one Artifactory as a remote repository in another Artifactory will not allow packages to be pulled if the package version is in the following format in the pom.xml:
NAME-SNAPSHOT-NAME-SNAPSHOT
For example:
<version>3.11-SNAPSHOT-jay-SNAPSHOT</version>
Maven will produce package with following name:
multi1-3.11-SNAPSHOT-jay-20211020.134450-1.jar
When an attempt is made to pull this package through the remote on the second Artifactory the request will replace the first "-SNAPSHOT" with the snapshot number as well and the request will receive a 404.
Package requested from remote source:
multi1-3.11-20211020.134450-1-jay-20211020.134450-1.jar
When viewing remote repository contents on the second Artifactory the name displays correctly but cannot be downloaded due to the incorrect request.
What is the expected behavior?
Able to use one Artifactory as a remote source for another and able to download Maven artifacts.
Steps to reproduce:
1. Build Maven project with <version> containing "-SNAPSHOT" twice and publish to Artifactory
2. Set the local libs-snapshot repo as a remote repo in another Artifactory
3. Attempt to download any of the build artifacts through the remote
Possible workaround:
Push replicating the repository to the second Artifactory