Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 06CDC200D35 for ; Tue, 7 Nov 2017 17:13:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 05657160C01; Tue, 7 Nov 2017 16:13:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4AD021609C8 for ; Tue, 7 Nov 2017 17:13:04 +0100 (CET) Received: (qmail 98890 invoked by uid 500); 7 Nov 2017 16:13:03 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 98879 invoked by uid 99); 7 Nov 2017 16:13:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2017 16:13:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9430D1A0C7D for ; Tue, 7 Nov 2017 16:13:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_SHORT=0.001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id luC-ogKwUw6m for ; Tue, 7 Nov 2017 16:13:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 61D4B5FD61 for ; Tue, 7 Nov 2017 16:13:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E1906E0F7D for ; Tue, 7 Nov 2017 16:13:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 62DF0241AB for ; Tue, 7 Nov 2017 16:13:00 +0000 (UTC) Date: Tue, 7 Nov 2017 16:13:00 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-5297) Cave proxy repository that requires authentication MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 07 Nov 2017 16:13:05 -0000 [ https://issues.apache.org/jira/browse/KARAF-5297?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated KARAF-5297: ---------------------------------------- Fix Version/s: (was: cave-4.0.1) > Cave proxy repository that requires authentication > -------------------------------------------------- > > Key: KARAF-5297 > URL: https://issues.apache.org/jira/browse/KARAF-5297 > Project: Karaf > Issue Type: Improvement > Components: cave-repository > Affects Versions: cave-4.0.0 > Environment: macOS Sierra 10.12.6, Karaf 4.1.1 > Reporter: Ankit Dangi > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: cave-4.1.0 > > > Let's say, we're proxying an external repository in Karaf Cave to use as = an OBR:=20 > {{karaf@root()> cave:repository-proxy my-repository 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: S= erver returned HTTP response code: 401 for URL: maven_repository_url"}}.=20 > Improvement: Requesting an appropriate option (like "{{--filter}}") for {= {cave:repository-proxy}} support for proxying a repository that requires au= thentication.=20 > Changes would mostly be at these locations:=20 > 1. {{karaf-cave/server/command/src/.../RepositoryProxyCommand.java}} [Lin= k: [http://bit.ly/2fqUbgD]] > 2. {{karaf-cave/server/storage/src/.../CaveRepositoryImpl.java}}, Update = method: {{proxyHttp(...)}} [Link: [http://bit.ly/2wrwQiS]] > Also, in 2 above, replace the deprecated {{DefaultHttpClient}} with {{Htt= pClientBuilder}}.=20 > However, if the {{proxy(...)}} parameters are changed, then, it may requi= re changes at other places, such as: > i. {{karaf-cave/server/api/src/.../CaveRepository.java}}, Overload method= : {{proxy(...)}} [Link: [http://bit.ly/2vh6bXa]] > ii. {{karaf-cave/server/storage/src/.../CaveRepositoryImpl.java}}, Overlo= ad method: {{proxy(...)}} [Link: [http://bit.ly/2uDu2Nt]] > iii. {{karaf-cave/server/management/src/.../CaveRepositoryMBean.java}} [L= ink: [http://bit.ly/2uDxUy2]] > iv. {{karaf-cave/server/management/src/.../CaveRepositoryMBeanImpl.java}}= [Link: [http://bit.ly/2wFG2zj]] > v. {{karaf-cave/manual/src/.../administrate-cave.conf}} [Link: [http://bi= t.ly/2wr4SDX]] > Any other places? Search: [http://bit.ly/2fr4qkQ]. -- This message was sent by Atlassian JIRA (v6.4.14#64029)