Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4BF8E10747 for ; Thu, 2 May 2013 08:54:18 +0000 (UTC) Received: (qmail 16275 invoked by uid 500); 2 May 2013 08:54:17 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 16209 invoked by uid 500); 2 May 2013 08:54:17 -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 15817 invoked by uid 99); 2 May 2013 08:54:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 May 2013 08:54:16 +0000 Date: Thu, 2 May 2013 08:54:16 +0000 (UTC) From: "Antonia Baumann (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CMIS-653) Error in Function WebServicesAuthenticate of class StandardAuthenticationProvider MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Antonia Baumann created CMIS-653: ------------------------------------ Summary: Error in Function WebServicesAuthenticate of class StandardAuthenticationProvider Key: CMIS-653 URL: https://issues.apache.org/jira/browse/CMIS-653 Project: Chemistry Issue Type: Bug Components: dotcmis Reporter: Antonia Baumann Priority: Minor There seems to be an error in the binding-intf.cs (class: StandardAuthenticationProvider; method: protected virtual void WebServicesAuthenticate(object connection)), line 175: is: PolicyServicePortClient policyServicePortClient = connection as PolicyServicePortClient; if (policyServicePortClient != null) { AddWebServicesCredentials(multiFilingServicePortClient.Endpoint, multiFilingServicePortClient.ClientCredentials); return; } should most probably be: PolicyServicePortClient policyServicePortClient = connection as PolicyServicePortClient; if (policyServicePortClient != null) { AddWebServicesCredentials(policyServicePortClient.Endpoint, policyServicePortClient.ClientCredentials); return; } Otherwise the calling of IPolicyService.ApplyPolicy(string repositoryId, string policyId, string objectId, IExtensionsData extension) runs into: System.NullReferenceException: Object reference not set to an instance of an object. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira