Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-653

Error in Function WebServicesAuthenticate of class StandardAuthenticationProvider

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • DotCMIS 0.6
    • dotcmis
    • None

    Description

      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.

      Attachments

        Activity

          People

            fmui Florian Müller
            antonia Antonia Baumann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: