Ankit Dangi created KARAF-5297:

             Summary: Cave proxy repository that requires authentication
                 Key: KARAF-5297
             Project: Karaf
          Issue Type: Improvement
          Components: cave-repository
    Affects Versions: 4.1.1
         Environment: macOS Sierra 10.12.6, Karaf 4.1.1
            Reporter: Ankit Dangi

Let's say, we're proxying an external repository in Karaf Cave to use as an 
{{karaf@root()> cave:repository-proxy my-repository 
http://[maven_repository_url] }}

If this external [maven_repository_url] requires authentication in the HTTP 
mode (and not HTTPS), then the error is: {{"Error executing command: Server 
returned HTTP response code: 401 for URL: [maven_repository_url]"}}. 

Improvement: Requesting an appropriate option (like "{{--filter}}") for 
{{cave:repository-proxy}} support for proxying a repository that requires 

Changes would mostly be at these locations: 
1. {{karaf-cave/server/command/src/.../}} [Link: 
2. {{karaf-cave/server/storage/src/.../}}, Update 
method: {{proxyHttp(...)}} [Link: []]

Also, in 2 above, replace the deprecated {{DefaultHttpClient}} with 

However, if the {{proxy(...)}} parameters are changed, then, it may require 
changes at other places, such as:
i. {{karaf-cave/server/api/src/.../}}, Overload method: 
{{proxy(...)}} [Link: []]
ii. {{karaf-cave/server/storage/src/.../}}, Overload 
method: {{proxy(...)}} [Link: []]
iii. {{karaf-cave/server/management/src/.../}} [Link: 
iv. {{karaf-cave/server/management/src/.../}} 
[Link: []]
v. {{karaf-cave/manual/src/.../administrate-cave.conf}} [Link: 

Any other places? Search: [].

This message was sent by Atlassian JIRA

Reply via email to