Comments (11)
For posterity, I had to add /artifactory
to my servers URL with:
jfrog rt config --url https://artifactory-test.testdomain.com/artifactory ...
from jfrog-cli.
@scottrus and @karangurnani,
Since the fix seems to resolve the issue, I'm closing it.
from jfrog-cli.
We'll check this issue @karangurnani. Thanks for letting us know.
from jfrog-cli.
Probably related to this, I found a case where I am unable to upload a file with a percent in the name.
cit@linp-95-08:~$ jfrog rt upload 'test % hi' data-insights/
[Info] [Thread 2] Uploading artifact: test % bye
[Error] Put : unsupported protocol scheme ""
Removing the % doesn't have the same error.
from jfrog-cli.
We just hit this url encoding issue downloading files that contain a # in the path. Unfortunately we are making heavy use of the jfrog CLI in our environment to download artifacts.
[srussell@artifactory]$ jfrog rt dl --threads 1 'builds-local/sm_prj-artifactory/52/sdk/c#/*' artifacts/
[Info] Searching items to download...
[Debug] Searching Artifactory using AQL query:
items.find({"repo": "builds-local","path": {"$ne": "."},"$or": [{"$and":[{"path": {"$match": "sm_prj-artifactory/52/sdk/c#"},"name": {"$match": "*"}}]},{"$and":[{"path": {"$match": "sm_prj-artifactory/52/sdk/c#/*"},"name": {"$match": "*"}}]}]}).include("name","repo","path","actual_md5","actual_sha1","size","type","property")
[Debug] Artifactory response: 200 OK
[Info] [Thread 0] Downloading builds-local/sm_prj-artifactory/52/sdk/c#/gensrc/v1/object/NsFcSessionInitiator.cs
[Debug] [Thread 0] Artifactory response: 404 Not Found
[Info] [Thread 0] Downloading builds-local/sm_prj-artifactory/52/sdk/c#/gensrc/v1/object/NsReplPairListWithObjectType.cs
[Debug] [Thread 0] Artifactory response: 404 Not Found
[Info] [Thread 0] Downloading builds-local/sm_prj-artifactory/52/sdk/c#/gensrc/v1/object/NsShelfPortStatus.cs
[Debug] [Thread 0] Artifactory response: 404 Not Found
[Info] [Thread 0] Downloading builds-local/sm_prj-artifactory/52/sdk/c#/gensrc/v1/object/NsFcLinkInfo.cs
[Debug] [Thread 0] Artifactory response: 404 Not Found
[Info] [Thread 0] Downloading builds-local/sm_prj-artifactory/52/sdk/c#/gensrc/v1/object/Subscriber.cs
[Debug] [Thread 0] Artifactory response: 404 Not Found
^C
from jfrog-cli.
@scottrus,
We are working on a fix and planning to release it soon.
The fix should tale care of all special characters (including # and %).
We'll let you know once we release the fix.
Thanks for reporting this issue!
from jfrog-cli.
Thank you! I found PathEscape() but do t know the code well enough to see where the url is constructed. Sorry I didn’t make a patch for this.
from jfrog-cli.
No worries @scottrus!
We'll let you know once the code is committed.
from jfrog-cli.
@scottrus, @karangurnani,
Version 1.12.1 has been released and includes this fix.
We'd appreciate your feedback for it.
from jfrog-cli.
A quick smoke test and things look great! I'll do additional testing today and tomorrow. However I don't expect any issues based on the what I'm seeing.
[srussell@ln70-srussell artifactory]$ jfrog rt dl --threads 1 'builds-local/sm_prj-artifactory/53/sdk/c#/*' artifacts/ [Info] Searching items to download... [Debug] Searching Artifactory using AQL query: items.find({"repo": "builds-local","path": {"$ne": "."},"$or": [{"$and":[{"path": {"$match": "sm_prj-artifactory/53/sdk/c#"},"name": {"$match": "*"}}]},{"$and":[{"path": {"$match": "sm_prj-artifactory/53/sdk/c#/*"},"name": {"$match": "*"}}]}]}).include("name","repo","path","actual_md5","actual_sha1","size","type","property") [Debug] Artifactory response: 200 OK [Info] [Thread 0] Downloading builds-local/sm_prj-artifactory/53/sdk/c#/gensrc/v1/object/Stat.cs [Debug] [Thread 0] Artifactory response: 200 OK [Info] [Thread 0] Downloading builds-local/sm_prj-artifactory/53/sdk/c#/gensrc/v1/object/NsObjectCount.cs [Debug] [Thread 0] Artifactory response: 200 OK [Info] [Thread 0] Downloading builds-local/sm_prj-artifactory/53/sdk/c#/gensrc/v1/object/NsFcSessionTarget.cs [Debug] [Thread 0] Artifactory response: 200 OK
from jfrog-cli.
I'm currently getting this with the following search command, but it's first time i've used jfrog cli with artifactory for search, so might be my command. Is it related or should I open new issue?
C:\Users\myuser\Downloads>jfrog rt search docker/conangcc5
[Info] Searching artifacts...
[Error] Post artifactory-test.testdomain.com/api/search/aql: unsupported protocol scheme ""
C:\Users\myuser\Downloads>jfrog rt config show artifactory-test
Server ID: artifactory-test
Url: https://artifactory-test.testdomain.com/
artifactory.version: | 5.9.1
artifactory server logs show nothing.
from jfrog-cli.
Related Issues (20)
- "jf config show" should also show the used config file HOT 5
- jf go-publish [Error] create zip: file "XXX" is larger than declared size HOT 1
- jf build-scan results in "index out of range" panic error
- "/" in build number will cause the build promotion to fail
- jf mvn does not pick up .mvn/jvm.config HOT 1
- jf docker scan fails to extract indexer
- Current CLI failing Trivy Scans due to cloudf vulnerability HOT 1
- purge artifacts from specific repo HOT 1
- ignore .git folder even when CLI does not have the proper permissions for it
- 404 when trying to download a release HOT 2
- ignore .git folder even when CLI does not have the proper permissions for it #2440
- build.bat produces jfrog.exe instead of jf.exe
- JFrog CLI command for promoting Release Bundles V2 is not throwing an error for the asynchronous call when the operation failed HOT 1
- JFrog CLI command for promotion do not have option to configure target repository and also do not prompt when tried to overwrite the target repository HOT 1
- JFrog CLI version 2.52.9 creating refreshable tokens in contradiction with --help HOT 2
- Missing JFrog Licenses in SARIF format HOT 2
- JFrog cannot download/pull image from Repos
- The 'jf docker scan <container image>" command doesn't provide the total count of findings for each severity category.
- Results of build scan via JFrog CLI (or Azure DevOps plugin) are different from UI results
- --exclude-props can't handle wildcard input
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jfrog-cli.