manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1534814 - /manifoldcf/branches/CONNECTORS-754/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/sharepoint/SPSProxyHelper.java
Date Tue, 22 Oct 2013 21:51:50 GMT
Author: kwright
Date: Tue Oct 22 21:51:50 2013
New Revision: 1534814

URL: http://svn.apache.org/r1534814
Log:
Fix bug using wrong node

Modified:
    manifoldcf/branches/CONNECTORS-754/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/sharepoint/SPSProxyHelper.java

Modified: manifoldcf/branches/CONNECTORS-754/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/sharepoint/SPSProxyHelper.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-754/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/sharepoint/SPSProxyHelper.java?rev=1534814&r1=1534813&r2=1534814&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-754/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/sharepoint/SPSProxyHelper.java
(original)
+++ manifoldcf/branches/CONNECTORS-754/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/sharepoint/SPSProxyHelper.java
Tue Oct 22 21:51:50 2013
@@ -181,7 +181,7 @@ public class SPSProxyHelper {
       }
 
       MessageElement groups = groupsList[0];
-      if (!users.getElementName().getLocalName().equals("GetGroupCollectionFromUser"))
+      if (!groups.getElementName().getLocalName().equals("GetGroupCollectionFromUser"))
         throw new ManifoldCFException("Bad response - outer node should have been 'GetGroupCollectionFromUser'
node");
           
       Iterator groupsIter = groups.getChildElements();
@@ -268,6 +268,11 @@ public class SPSProxyHelper {
         {
           elem.normalize();
           String sharepointErrorCode = elem.getFirstChild().getNodeValue().trim();
+          if (sharepointErrorCode.equals("0x80131600"))
+          {
+            // No such user
+            return null;
+          }
           if (Logging.authorityConnectors.isDebugEnabled())
           {
             org.w3c.dom.Element elem2 = e.lookupFaultDetail(new javax.xml.namespace.QName("http://schemas.microsoft.com/sharepoint/soap/","errorstring"));
@@ -280,7 +285,7 @@ public class SPSProxyHelper {
           throw new ManifoldCFException("SharePoint server error code: "+sharepointErrorCode);
         }
         if (Logging.authorityConnectors.isDebugEnabled())
-          Logging.authorityConnectors.debug("SharePoint: Unknown SharePoint server error
getting the acls for site "+site+" - axis fault = "+e.getFaultCode().getLocalPart()+", detail
= "+e.getFaultString(),e);
+          Logging.authorityConnectors.debug("SharePoint: Unknown SharePoint server error
getting usergroups for site "+site+" - axis fault = "+e.getFaultCode().getLocalPart()+", detail
= "+e.getFaultString(),e);
 
         throw new ManifoldCFException("Unknown SharePoint server error: "+e.getMessage());
       }



Mime
View raw message