manifoldcf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Goldenberg <dgoldenb...@kmwllc.com>
Subject Getting a 401 Unauthorized on a SharePoint 2010 crawl request, with MCPermissions.asmx installed
Date Mon, 02 Sep 2013 21:18:17 GMT
I get the attached stack trace on a GetListCollection request as below.

I have configured a 4.0 SP repository connection. The username is
<domain>\<user> and it's got a valid password; I am able to login to the SP
instance with those (admin) credentials.

I've verified that I have the MCPermissionsService installed.

I noticed that one time I was able to seemingly go past this error after
switching from Basic auth to NTLM. However, then I started getting a
different error -- No service named ListsSoap is available.

If I uninstall the MC service and try to use the 2.0 or 3.0 type of
connection, I'm getting errors also.

Any help or insights or troubleshooting tips would be appreciated.  The
http client DEBUG dump is also included below as the second part of the
attached info. Thanks.

============================================================================


 faultString: The request failed with HTTP status 401:
Unauthorized.
faultActor:
http://ec2-23-20-55-72.compute-1.amazonaws.com/_vti_bin/MCPermissions.asmx
faultNode:
faultDetail:
{}Error:<ErrorNumber>1000</ErrorNumber><ErrorMessage>The request failed
with HTTP status 401:
Unauthorized.</ErrorMessage><ErrorSource>System.Web.Services</ErrorSource>
The request failed with HTTP status 401:
Unauthorized.
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)                                               at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)                                       at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)             at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)                                   at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)                                                   at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)                                                   at
org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)                                                            at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)                                                    at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)                                             at
org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown
Source)                                                           at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at
org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at
org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at
org.apache.axis.client.Call.invoke(Call.java:2767)
at
org.apache.axis.client.Call.invoke(Call.java:2443)
at
org.apache.axis.client.Call.invoke(Call.java:2366)
at
org.apache.axis.client.Call.invoke(Call.java:1812)
at
com.microsoft.sharepoint.webpartpages.PermissionsSoapStub.getPermissionCollection(PermissionsSoapStub.java:200)
at
org.apache.manifoldcf.crawler.connectors.sharepoint.SPSProxyHelper.checkConnection(SPSProxyHelper.java:1466)
at
org.apache.manifoldcf.crawler.connectors.sharepoint.SharePointRepository.check(SharePointRepository.java:377)
at
org.apache.jsp.viewconnection_jsp._jspService(viewconnection_jsp.java:268)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:288)
at
org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115)
at
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:709)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:680)
at
org.apache.jsp.execute_jsp._jspService(execute_jsp.java:328)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at
org.eclipse.jetty.server.Server.handle(Server.java:349)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)
at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)



======================================================================================


[2013-09-02 16:58:07,986]-[Thread-609]-[DEBUG]
org.apache.http.impl.client.DefaultHttpClient - Attempt 1 to execute request

[2013-09-02 16:58:07,986]-[Thread-609]-[DEBUG]
org.apache.http.impl.conn.DefaultClientConnection - Sending request: POST
/_vti_bin/MCPermissions.asmx HTTP/1.1

[2013-09-02 16:58:07,987]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"POST /_vti_bin/MCPermissions.asmx HTTP/1.1[\r][\n]"

[2013-09-02 16:58:07,987]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"Content-Type: text/xml; charset=utf-8[\r][\n]"

[2013-09-02 16:58:07,987]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"Accept: */*[\r][\n]"

[2013-09-02 16:58:07,988]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"SOAPAction: "
http://microsoft.com/sharepoint/webpartpages/GetPermissionCollection
"[\r][\n]"

[2013-09-02 16:58:07,988]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"User-Agent: Axis/1.4[\r][\n]"

[2013-09-02 16:58:07,988]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"Content-Length: 420[\r][\n]"

[2013-09-02 16:58:07,988]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"Host: ec2-23-20-55-72.compute-1.amazonaws.com[\r][\n]"

[2013-09-02 16:58:07,989]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"Connection: Keep-Alive[\r][\n]"

[2013-09-02 16:58:07,989]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"Cookie:
WSS_KeepSessionAuthenticated={5ecf7334-276b-471a-ae98-8591c7280476}[\r][\n]"

[2013-09-02 16:58:07,989]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"Cookie2: $Version=1[\r][\n]"

[2013-09-02 16:58:07,989]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"[\r][\n]"

[2013-09-02 16:58:07,989]-[Thread-609]-[DEBUG] org.apache.http.headers - >>
POST /_vti_bin/MCPermissions.asmx HTTP/1.1

[2013-09-02 16:58:07,990]-[Thread-609]-[DEBUG] org.apache.http.headers - >>
Content-Type: text/xml; charset=utf-8

[2013-09-02 16:58:07,990]-[Thread-609]-[DEBUG] org.apache.http.headers - >>
Accept: */*

[2013-09-02 16:58:07,990]-[Thread-609]-[DEBUG] org.apache.http.headers - >>
SOAPAction: "
http://microsoft.com/sharepoint/webpartpages/GetPermissionCollection"

[2013-09-02 16:58:07,990]-[Thread-609]-[DEBUG] org.apache.http.headers - >>
User-Agent: Axis/1.4

[2013-09-02 16:58:07,991]-[Thread-609]-[DEBUG] org.apache.http.headers - >>
Content-Length: 420

[2013-09-02 16:58:07,991]-[Thread-609]-[DEBUG] org.apache.http.headers - >>
Host: ec2-23-20-55-72.compute-1.amazonaws.com

[2013-09-02 16:58:07,991]-[Thread-609]-[DEBUG] org.apache.http.headers - >>
Connection: Keep-Alive

[2013-09-02 16:58:07,991]-[Thread-609]-[DEBUG] org.apache.http.headers - >>
Cookie: WSS_KeepSessionAuthenticated={5ecf7334-276b-471a-ae98-8591c7280476}

[2013-09-02 16:58:07,992]-[Thread-609]-[DEBUG] org.apache.http.headers - >>
Cookie2: $Version=1

[2013-09-02 16:58:07,992]-[Thread-609]-[DEBUG] org.apache.axis.SOAPPart -
Enter: SOAPPart::saveChanges

[2013-09-02 16:58:07,993]-[Thread-609]-[DEBUG] org.apache.http.wire - >>
"<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><GetPermissionCollection
xmlns="http://microsoft.com/sharepoint/webpartpages/
"><objectName>/</objectName><objectType>Web</objectType></GetPermissionCollection></soapenv:Body></soapenv:Envelope>"

[2013-09-02 16:58:08,023]-[Thread-609]-[DEBUG] org.apache.http.wire - <<
"HTTP/1.1 401 Unauthorized[\r][\n]"

[2013-09-02 16:58:08,023]-[Thread-609]-[DEBUG] org.apache.http.wire - <<
"Server: Microsoft-IIS/7.5[\r][\n]"

[2013-09-02 16:58:08,023]-[Thread-609]-[DEBUG] org.apache.http.wire - <<
"SPRequestGuid: 65ed9f96-b358-4a17-9d65-b58f55d19b17[\r][\n]"

[2013-09-02 16:58:08,024]-[Thread-609]-[DEBUG] org.apache.http.wire - <<
"WWW-Authenticate: NTLM[\r][\n]"

[2013-09-02 16:58:08,024]-[Thread-609]-[DEBUG] org.apache.http.wire - <<
"X-Powered-By: ASP.NET[\r][\n]"

[2013-09-02 16:58:08,024]-[Thread-609]-[DEBUG] org.apache.http.wire - <<
"MicrosoftSharePointTeamServices: 14.0.0.4762[\r][\n]"

[2013-09-02 16:58:08,024]-[Thread-609]-[DEBUG] org.apache.http.wire - <<
"Date: Mon, 02 Sep 2013 20:58:04 GMT[\r][\n]"

[2013-09-02 16:58:08,025]-[Thread-609]-[DEBUG] org.apache.http.wire - <<
"Content-Length: 0[\r][\n]"

[2013-09-02 16:58:08,025]-[Thread-609]-[DEBUG] org.apache.http.wire - <<
"[\r][\n]"

[2013-09-02 16:58:08,026]-[Thread-609]-[DEBUG]
org.apache.http.impl.conn.DefaultClientConnection - Receiving response:
HTTP/1.1 401 Unauthorized

[2013-09-02 16:58:08,026]-[Thread-609]-[DEBUG] org.apache.http.headers - <<
HTTP/1.1 401 Unauthorized

[2013-09-02 16:58:08,026]-[Thread-609]-[DEBUG] org.apache.http.headers - <<
Server: Microsoft-IIS/7.5

[2013-09-02 16:58:08,026]-[Thread-609]-[DEBUG] org.apache.http.headers - <<
SPRequestGuid: 65ed9f96-b358-4a17-9d65-b58f55d19b17

[2013-09-02 16:58:08,027]-[Thread-609]-[DEBUG] org.apache.http.headers - <<
WWW-Authenticate: NTLM

[2013-09-02 16:58:08,027]-[Thread-609]-[DEBUG] org.apache.http.headers - <<
X-Powered-By: ASP.NET

[2013-09-02 16:58:08,027]-[Thread-609]-[DEBUG] org.apache.http.headers - <<
MicrosoftSharePointTeamServices: 14.0.0.4762

[2013-09-02 16:58:08,028]-[Thread-609]-[DEBUG] org.apache.http.headers - <<
Date: Mon, 02 Sep 2013 20:58:04 GMT

[2013-09-02 16:58:08,028]-[Thread-609]-[DEBUG] org.apache.http.headers - <<
Content-Length: 0

[2013-09-02 16:58:08,028]-[Thread-609]-[DEBUG]
org.apache.http.impl.client.DefaultHttpClient - Connection can be kept
alive indefinitely

[2013-09-02 16:58:08,029]-[Thread-609]-[DEBUG]
org.apache.http.impl.client.DefaultHttpClient - Authentication required

[2013-09-02 16:58:08,029]-[Thread-609]-[DEBUG]
org.apache.http.impl.client.DefaultHttpClient -
ec2-23-20-55-72.compute-1.amazonaws.com:80 requested authentication

[2013-09-02 16:58:08,029]-[Thread-609]-[DEBUG]
org.apache.http.impl.client.TargetAuthenticationStrategy - Authentication
schemes in the order of preference: [negotiate, Kerberos, NTLM, Digest,
Basic]

[2013-09-02 16:58:08,030]-[Thread-609]-[DEBUG]
org.apache.http.impl.client.TargetAuthenticationStrategy - Challenge for
negotiate authentication scheme not available

[2013-09-02 16:58:08,030]-[Thread-609]-[DEBUG]
org.apache.http.impl.client.TargetAuthenticationStrategy - Challenge for
Kerberos authentication scheme not available

[2013-09-02 16:58:08,030]-[Thread-609]-[DEBUG]
org.apache.http.impl.client.TargetAuthenticationStrategy - Challenge for
Digest authentication scheme not available

[2013-09-02 16:58:08,031]-[Thread-609]-[DEBUG]
org.apache.http.impl.client.TargetAuthenticationStrategy - Challenge for
Basic authentication scheme not available

[2013-09-02 16:58:08,032]-[Thread-609]-[DEBUG]
org.apache.http.impl.client.DefaultHttpClient - Selected authentication
options: [NTLM]

[2013-09-02 16:58:08,032]-[Thread-609]-[DEBUG] org.apache.axis.SOAPPart -
Enter: SOAPPart::saveChanges

[2013-09-02 16:58:08,033]-[Thread-609]-[DEBUG] org.apache.axis.SOAPPart -
Enter: SOAPPart::saveChanges

[2013-09-02 16:58:08,033]-[Thread-609]-[DEBUG] org.apache.axis.SOAPPart -
Enter: SOAPPart::saveChanges

[2013-09-02 16:58:08,033]-[Thread-609]-[DEBUG] org.apache.axis.SOAPPart -
Enter: SOAPPart::saveChanges

[2013-09-02 16:58:08,033]-[Thread-609]-[DEBUG] org.apache.axis.SOAPPart -
Enter: SOAPPart::saveChanges

[2013-09-02 16:58:08,033]-[Thread-609]-[DEBUG] org.apache.axis.SOAPPart -
Enter: SOAPPart::saveChanges

[2013-09-02 16:58:08,034]-[Thread-609]-[DEBUG]
org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected:
best-match

[2013-09-02 16:58:08,034]-[Thread-609]-[DEBUG]
org.apache.http.client.protocol.RequestAddCookies - Cookie [version:
0][name: WSS_KeepSessionAuthenticated][value:
{5ecf7334-276b-471a-ae98-8591c7280476}][domain:
ec2-23-20-55-72.compute-1.amazonaws.com][path: /][expiry: null] match [
ec2-23-20-55-72.compute-1.amazonaws.com:80/_vti_bin/MCPermissions.asmx]

[2013-09-02 16:58:08,035]-[Thread-609]-[DEBUG]
org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in
the context

[2013-09-02 16:58:08,035]-[Thread-609]-[DEBUG]
org.apache.http.client.protocol.RequestTargetAuthentication - Target auth
state: CHALLENGED

[2013-09-02 16:58:08,035]-[Thread-609]-[DEBUG]
org.apache.http.client.protocol.RequestTargetAuthentication - Generating
response to an authentication challenge using ntlm scheme

[2013-09-02 16:58:08,036]-[Thread-609]-[DEBUG]
org.apache.http.client.protocol.RequestProxyAuthentication - Proxy auth
state: UNCHALLENGED

Mime
View raw message