Giter Club home page Giter Club logo

Comments (11)

solvingj avatar solvingj commented on August 17, 2024 4

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.

eyalbe4 avatar eyalbe4 commented on August 17, 2024 1

@scottrus and @karangurnani,
Since the fix seems to resolve the issue, I'm closing it.

from jfrog-cli.

eyalbe4 avatar eyalbe4 commented on August 17, 2024

We'll check this issue @karangurnani. Thanks for letting us know.

from jfrog-cli.

treed avatar treed commented on August 17, 2024

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.

scottrus avatar scottrus commented on August 17, 2024

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.

eyalbe4 avatar eyalbe4 commented on August 17, 2024

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

scottrus avatar scottrus commented on August 17, 2024

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.

eyalbe4 avatar eyalbe4 commented on August 17, 2024

No worries @scottrus!
We'll let you know once the code is committed.

from jfrog-cli.

romangurevitch avatar romangurevitch commented on August 17, 2024

@scottrus, @karangurnani,
Version 1.12.1 has been released and includes this fix.
We'd appreciate your feedback for it.

from jfrog-cli.

scottrus avatar scottrus commented on August 17, 2024

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.

solvingj avatar solvingj commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.