URI with space causes artifact error
snowman78 opened this issue · 0 comments
snowman78 commented
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
`