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 1E4F1200B35 for ; Tue, 5 Jul 2016 19:35:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1CDEE160A2C; Tue, 5 Jul 2016 17:35:51 +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 60E08160A60 for ; Tue, 5 Jul 2016 19:35:50 +0200 (CEST) Received: (qmail 24441 invoked by uid 500); 5 Jul 2016 17:35:12 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 24393 invoked by uid 99); 5 Jul 2016 17:35:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 17:35:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 05EB22C027F for ; Tue, 5 Jul 2016 17:35:11 +0000 (UTC) Date: Tue, 5 Jul 2016 17:35:11 +0000 (UTC) From: "Johannes (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CMIS-989) PortCMIS: User / Password login should submit authentication in header MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 05 Jul 2016 17:35:51 -0000 [ https://issues.apache.org/jira/browse/CMIS-989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Johannes updated CMIS-989: -------------------------- Description: I came across a CMIS system where login would not work with PortCMIS (OpenText Content Server). The below change in BindingIntf.cs makes it work and does not break any unit test for the other CMIS systems. Should that code be the default? {noformat} public override void PrepareHttpClientHandler(HttpClientHandler httpClientHandler) { base.PrepareHttpClientHandler(httpClientHandler); if (User != null) { //httpClientHandler.Credentials = new NetworkCredential(User, Password); var userPassword = Encoding.UTF8.GetBytes(User + ":" + Password); AuthenticationHeader = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(userPassword)); } else ... {noformat} was: I came across a CMIS system where login would not work with PortCMIS (OpenText Content Server). The below change in BindingIntf.cs makes it work and does not break any unit test for the other CMIS systems. Should that code be the default? {noformat} public override void PrepareHttpClientHandler(HttpClientHandler httpClientHandler) { base.PrepareHttpClientHandler(httpClientHandler); if (User != null) { httpClientHandler.Credentials = new NetworkCredential(User, Password); var userPassword = Encoding.UTF8.GetBytes(User + ":" + Password); AuthenticationHeader = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(userPassword)); } else ... {noformat} > PortCMIS: User / Password login should submit authentication in header > ---------------------------------------------------------------------- > > Key: CMIS-989 > URL: https://issues.apache.org/jira/browse/CMIS-989 > Project: Chemistry > Issue Type: Wish > Reporter: Johannes > > I came across a CMIS system where login would not work with PortCMIS (OpenText Content Server). The below change in BindingIntf.cs makes it work and does not break any unit test for the other CMIS systems. Should that code be the default? > {noformat} > public override void PrepareHttpClientHandler(HttpClientHandler httpClientHandler) > { > base.PrepareHttpClientHandler(httpClientHandler); > if (User != null) > { > //httpClientHandler.Credentials = new NetworkCredential(User, Password); > var userPassword = Encoding.UTF8.GetBytes(User + ":" + Password); > AuthenticationHeader = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(userPassword)); > } > else ... > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)