Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to download complete build when using --build flag #1252

Open
erlkoenig91 opened this issue Oct 8, 2021 · 5 comments
Open

Unable to download complete build when using --build flag #1252

erlkoenig91 opened this issue Oct 8, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@erlkoenig91
Copy link

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 erlkoenig91 added the bug Something isn't working label Oct 8, 2021
@sverdlov93
Copy link
Contributor

@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 #1220.
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.

@erlkoenig91
Copy link
Author

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

@sverdlov93
Copy link
Contributor

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.

@eyalbe4
Copy link
Contributor

eyalbe4 commented Oct 15, 2021

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

@Zoz24
Copy link

Zoz24 commented Jul 29, 2024

Reference in ne

https://jfrog.atlassian.net/browse/RTFACT-25808 is marked as closed but the this problem persists:
#1220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants