You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Artifactory does not escape artifact uri return from search, so if artifacts has been uploaded with space in name we must escape before calling client.get.
Also make sure we do not escape already escaped URIs
Signed-off-by: Rasmus Bergholdt <[email protected]>
Issue chef#65
URI::InvalidURIError: bad URI(is not URI?): http://artifactory.8081/artifactory/api/storage/bin-release-local/com/prod/IP/2016.02/PROD IP-2016.02.msi
version 2.3.2
The download_uri from artifactory is not encoded so the client request fails.
Local fix artifactory/resources/artifact.rb
`
client.get('/api/search/artifact', params)['results'].map do |artifact|
--- from_url(artifact['uri'], client: client)
+++ from_url(URI.encode(artifact['uri']), client: client)
end
`
The text was updated successfully, but these errors were encountered: