jfrog-cli icon indicating copy to clipboard operation
jfrog-cli copied to clipboard

Unable to download complete build when using --build flag

Open erlkoenig91 opened this issue 4 years ago • 5 comments

Describe the bug When trying to download the latest artifacts from Arifactory using Jfrog CLI and specifying the --build option, the Jfrog CLI didn´t find any files to download. Test with older Versions (1.44.0) working and using the Buildnumber /123 working too.

To Reproduce CI=true jfrog rt dl --url https://linktoartifactoy.com/artifactory --user _deployuser --password ASDFASDFASDFASDFASDF --build application::app-name::trunk '*' "/tmp/download"

{   "status": "success",   "totals": {     "success": 0,     "failure": 0   } }

Expected behavior According to the documentation https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory#CLIforJFrogArtifactory-DownloadingFiles, it says when we use --build flag and If we do not specify the build number, the artifacts are filtered by the latest build number. So we are expecting to get the latest artifact version.

CI=true jfrog rt dl --url https://linktoartifactoy.com/artifactory --user _deployuser --password ASDFASDFASDFASDFASDF --build application::app-name::trunk '*' "/tmp/download"

{   "status": "success",   "totals": {     "success": 2,     "failure": 0   } }

Screenshots No Screenshots

Versions

  • JFrog CLI version: 2.4.1
  • JFrog CLI operating system: 1.51.2
  • Artifactory Version: 7.25.7

Additional context Add any other context about the problem here.

erlkoenig91 avatar Oct 08 '21 06:10 erlkoenig91

@erlkoenig91 Thanks for reporting this issue. It appears that the problem occurs when using build name without build number to get the latest build (or using LATEST parameter) with build name that contains Slash (:) character. Behind the scenes, we escape slashes with %3A encoding, but it appears that AQL has a problem resolving the % character so the query fails to provide.

Our apologies for the inconvenience caused by this bug.

That issue has the same root cause as https://github.com/jfrog/jfrog-cli-artifactory/issues/245. Resolving that issue requires changes on both Artifactory and JFrog CLI. We will share an update here once the fix is released. We opened https://www.jfrog.com/jira/browse/RTFACT-25808 to track the required fix on Artifactory’s side.

sverdlov93 avatar Oct 10 '21 07:10 sverdlov93

Hi @sverdlov93,

thank you for the quick answer. I still wondering why the later versions are working and the new one not. Can you please give us a work around for this problem?

Thank you

erlkoenig91 avatar Oct 14 '21 07:10 erlkoenig91

Hi @erlkoenig91, Hi, following a previous issue we had with downloading LATEST build Issue 1100, we released a fix that uses AQL query to get the LATEST build PR 396. Unfortunately, now we are getting the above issue using special characters in AQL query. I hope it will be fixed soon and sorry again for the inconvenience.

sverdlov93 avatar Oct 14 '21 10:10 sverdlov93

@erlkoenig91, We're using RTFACT-25808 to track the fix for this issue.

eyalbe4 avatar Oct 15 '21 03:10 eyalbe4

Reference in ne

https://jfrog.atlassian.net/browse/RTFACT-25808 is marked as closed but the this problem persists: https://github.com/jfrog/jfrog-cli-artifactory/issues/245

Zoz24 avatar Jul 29 '24 20:07 Zoz24

This issue has been marked as stale due to 6 months of inactivity. As part of our effort to address every issue properly, please feel free to remove the stale label or keep this issue active by leaving a comment. Otherwise, it will be closed in 7 days

github-actions[bot] avatar Feb 28 '25 06:02 github-actions[bot]

This issue was closed due to 7 days of inactivity after being marked as stale. Feel free to reopen it if it remains relevant.

github-actions[bot] avatar Mar 12 '25 09:03 github-actions[bot]