[RTFACT-14786] When remote repository contain "/" in the end of the url the rest API return wrong value Created: 16/Aug/17  Updated: 14/Nov/17  Resolved: 17/Oct/17

Status: Resolved
Project: Artifactory Binary Repository
Component/s: None
Affects Version/s: 5.4.6
Fix Version/s: 5.6.0

Type: Bug Priority: Normal
Reporter: Batel Tova Assignee: Avi Zaig (Inactive)
Resolution: Fixed Votes: 0
Labels: remote, repository

Attachments: JPEG File slash.jpeg    

 Description   

If the remote repository contain "/" in the end of the url the output of the storage rest API the download url will contain 2 slashes as the following screenshot :

Steps to reproduce :
1. Quick install Maven repository
2.Change the remote repository (jcenter) and add / to the url (e.g. http://jcenter.bintray.com/)
3. Use the rest api as the following :
curl -H "X-JFrog-Art-Api:$API_KEY" -X GET "https://localhost:8081/artifactory/api/storage/jcenter-cache/AbsFrame/Frame/1.0.7/Frame-1.0.7-javadoc.jar"
As the following screenshot the remoteURL contain 2 slash :


Generated at Sat Jul 04 00:45:58 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.