chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonia Baumann (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-653) Error in Function WebServicesAuthenticate of class StandardAuthenticationProvider
Date Thu, 02 May 2013 08:54:16 GMT
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

Mime
View raw message