Skip to content

Download fails through virtual repo #4

@jgeorgeson

Description

@jgeorgeson

I have a virtual repo to aggregate Maven Central and our internal Maven artifacts. There is a settings.xml deployed in a local repo that is included in the virtual repo. Downloading the settings.xml with jfrog-cli finds no artifacts using the virtual repo, but succeeds using the actual repo. Downloading from the virtual repo with curl works fine.

C:\Users\jgeorgeson\Downloads
> jfrog rt download maven-virtual/settings.xml
Pinging Artifactory...
Searching Artifactory using AQL query: items.find({"repo": "maven-virtual","$or": [{"$and": [{"path": {"$match":"*"},"name":{"$match":"settings.xml"}}]}]})
Artifactory response: 200 OK
Downloaded 0 artifacts from Artifactory.

C:\Users\jgeorgeson\Downloads
> jfrog rt download maven-local/settings.xml
Pinging Artifactory...
Searching Artifactory using AQL query: items.find({"repo": "maven-local","$or": [{"$and": [{"path": {"$match":"*"},"name":{"$match":"settings.xml"}}]}]})
Artifactory response: 200 OK
[Thread 0] Downloading http://artprod.example.com/artifactory/maven-local/settings.xml
[Thread 0] Artifactory response: 200 OK
Downloaded 1 artifacts from Artifactory.

C:\Users\jgeorgeson\Downloads
> curl -u jgeorgeson http://artprod.example.com/artifactory/maven-virtual/settings.xml -o settings2.xml
Enter host password for user 'jgeorgeson':
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3831  100  3831    0     0  40755      0 --:--:-- --:--:-- --:--:-- 81510

C:\Users\jgeorgeson\Downloads
> fc settings.xml settings2.xml
Comparing files settings.xml and SETTINGS2.XML
FC: no differences encountered


C:\Users\jgeorgeson\Downloads
>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions