Hi Mao,
I have Alfresco 4.2.f. I installed the amp and when I look at the
webscripts index I see it (posted below) as
/alfresco/service/auth/resolve/{username}.
Then I went into Manifold and created a repository conn of type Alfresco
Webscripts. I take the default settings and add my user/pswd. When I save
MCF throws an exception and the stack trace was in my previous email.
The error from the MCF log is: " <tr><td>The Web Script <a
href="%2Falfresco%2Fservice%2Fapi%2Fnode%2Fauth%2Fresolve%
2Fadmin">/alfresco/service/api/node/auth/resolve/admin</a> has responded
with a status of 404 - Not Found.</td></tr>[\n]"" which Karl noticed
includes 'node' in the url path. That is inconsistent with the path from
the webscripts index.
Is that enough info? Feel free to email me personally at
[email protected].
thanks!
Deanna
Authority ResolveGET /alfresco/service/auth/resolve/{username}
<http://localhost:8080/alfresco/service/auth/resolve/%7Busername%7D>---Renders
out all authorities related with the given user(name)---Authentication:user
Transaction:requiredFormat Style:argumentDefault Format:jsonId:
com/github/maoo/indexer/webscripts/authresolve.get
<http://localhost:8080/alfresco/service/script/com/github/maoo/indexer/webscripts/authresolve.get>
Descriptor:
classpath:alfresco/extension/templates/webscripts/com/github/maoo/indexer/webscripts/authresolve.get.desc.xml
<http://localhost:8080/alfresco/service/description/com/github/maoo/indexer/webscripts/authresolve.get>
On Thu, May 14, 2015 at 3:29 AM, Maurizio Pillitu <[email protected]>
wrote:
> Good morning all,
>
> yesterday I've updated
> https://issues.apache.org/jira/browse/CONNECTORS-1200 with some steps to
> build/run alfresco-indexer locally; I've also created
> https://github.com/maoo/alfresco-indexer/issues/3 which IMO identifies
> the Authority endpoint issue; problem is, I cannot reproduce such issue
> locally, as I don't know which manifold action/configuration causes it.
>
> @Deanna, could you help me on the mentioned issue to understand how to
> reproduce it? Today I have some time to help out.
>
> Thanks,
> mao
>
>
> On Wed, May 13, 2015 at 5:43 PM Karl Wright <[email protected]> wrote:
>
>> Yes, maoo tests the webscript connector with 5.0.a. If you are stuck on
>> 4.2.f, you are probably stuck with either CMIS or the older alfresco
>> connector that does not support document security.
>>
>> Karl
>>
>>
>> On Wed, May 13, 2015 at 11:40 AM, Karl Wright <[email protected]> wrote:
>>
>>> Hi Deanna,
>>>
>>> The alfresco webscript connector is written for Alfresco 5.x, I believe,
>>> which may well explain many of the differences seen.
>>>
>>> I'll verify that and if that's the case, you may simply need to upgrade.
>>>
>>> Karl
>>>
>>>
>>> On Wed, May 13, 2015 at 11:20 AM, Delapasse, Deanna <
>>> [email protected]> wrote:
>>>
>>>> Karl,
>>>>
>>>> Our Alfresco is very "out-of-the-box" however, I believe the connector
>>>> was written for an older version. I can continue quizzing Mao outside of
>>>> this forum if you prefer (just let me know).
>>>>
>>>> Update: I did correct the url in the alfresco-client-lib that is
>>>> required by the connector. Unfortunately it's response is a JSON array,
>>>> but the code seems to expect a single json object. Just to reiterate
>>>> these urls are NOT native Alfresco, but the MCF connector requires this
>>>> additional java project that customizes ALfresco and supplies some client
>>>> code that the connector utilizes. I guess that is on the fringe of this
>>>> email group and why most people would prefer to use CMIS, BUT...the CMIS
>>>> connector is very limited and has no real authority connector while the
>>>> Alfresco connector seems much more powerful. I'm willing to give up at
>>>> this point unless Mao has any other ideas for me.
>>>>
>>>> Appreciate the great reponses!
>>>> Deanna
>>>>
>>>> http://localhost:8080/alfresco/service/auth/resolve/admin response:
>>>> [
>>>> {
>>>> "username" : "admin",
>>>> "authorities" : [
>>>> "GROUP_ALFRESCO_ADMINISTRATORS" ,
>>>> "GROUP_EMAIL_CONTRIBUTORS" ,
>>>> "GROUP_EVERYONE" ,
>>>> "GROUP_site_swsdp" ,
>>>> "GROUP_site_swsdp_SiteManager" ,
>>>> "ROLE_ADMINISTRATOR"
>>>> ]
>>>> }
>>>> ]
>>>>
>>>>
>>>> From the ManifoldCF stacktrace:
>>>> Caused by: java.lang.ClassCastException: Cannot cast
>>>> com.google.gson.JsonArray to com.google.gson.JsonObject
>>>> at java.lang.Class.cast(Class.java:3133)
>>>> at com.google.gson.Gson.fromJson(Gson.java:743)
>>>> at
>>>> com.github.maoo.indexer.client.WebScriptsAlfrescoClient.userFromHttpEntity(WebScriptsAlfrescoClient.java:288)
>>>> at
>>>> com.github.maoo.indexer.client.WebScriptsAlfrescoClient.fetchUserAuthorities(WebScriptsAlfrescoClient.java:347)
>>>> at
>>>> org.apache.manifoldcf.crawler.connectors.alfrescowebscript.AlfrescoConnector.check(AlfrescoConnector.java:124)
>>>> at
>>>> org.apache.jsp.viewconnection_jsp._jspService(viewconnection_jsp.java:285)
>>>>
>>>>
>>>>
>>>> On Tue, May 12, 2015 at 9:04 AM, Karl Wright <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi Deanna,
>>>>>
>>>>> It seems likely that the configuration of your Alfresco server differs
>>>>> from the standard installation in some key way, given the URI difference.
>>>>> The alfresco webscript connector If you know what way that is, please let
>>>>> us know. If not, I'll leave it up to Maurizio to figure it out. ;-)
>>>>>
>>>>> Karl
>>>>>
>>>>> On Tue, May 12, 2015 at 9:54 AM, Delapasse, Deanna <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hi Karl,
>>>>>>
>>>>>> Yes!!! You are totally correct.
>>>>>>
>>>>>> When I go to Alfresco's list of web scripts I see:
>>>>>> Authority ResolveGET /alfresco/service/auth/resolve/{username}
>>>>>> <http://localhost:8080/alfresco/service/auth/resolve/%7Busername%7D>
>>>>>>
>>>>>> Which is the one I invoked manually to test. BUT...Inside the
>>>>>> indexer-client code I see: authoritiesUrl = String.format("%s://%s%s/
>>>>>> *api*/node/auth/resolve/", protocol, hostname, endpoint);
>>>>>>
>>>>>> I have been building the amp from the source code. I tried it as an
>>>>>> experiment and since the build# advanced Alfresco won't let me revert
>>>>>> back
>>>>>> to the production amp.
>>>>>>
>>>>>> Thanks! Your eyesight is clearly better than mine. Let's see what
>>>>>> Mao recommends. I can try to modify that line, rebuild the client library
>>>>>> and see if it helps.
>>>>>>
>>>>>> Deanna
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, May 12, 2015 at 8:15 AM, Karl Wright <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Deanna,
>>>>>>>
>>>>>>> Here's what the ManifoldCF log says it is trying to do:
>>>>>>>
>>>>>>> >>>>>>
>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) - http-outgoing-0
>>>>>>> >> "GET /alfresco/service/api/node/auth/resolve/admin
>>>>>>> HTTP/1.1[\r][\n]"
>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) - http-outgoing-0
>>>>>>> >> "Accept: application/json[\r][\n]"
>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) - http-outgoing-0
>>>>>>> >> "Authorization: Basic YWRtaW46YWRtaW4=[\r][\n]"
>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) - http-outgoing-0
>>>>>>> >> "Host: localhost:8080[\r][\n]"
>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) - http-outgoing-0
>>>>>>> >> "Connection: Keep-Alive[\r][\n]"
>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) - http-outgoing-0
>>>>>>> >> "User-Agent: Apache-HttpClient/4.3.5 (java 1.5)[\r][\n]"
>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) - http-outgoing-0
>>>>>>> >> "Accept-Encoding: gzip,deflate[\r][\n]"
>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) - http-outgoing-0
>>>>>>> >> "[\r][\n]"
>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) - http-outgoing-0
>>>>>>> << "HTTP/1.1 404 Not Found[\r][\n]"
>>>>>>> <<<<<<
>>>>>>>
>>>>>>> The URL it's not finding is:
>>>>>>> /alfresco/service/api/node/auth/resolve/admin
>>>>>>> . It gets a 404 error, as you no doubt noted. You said you tried the
>>>>>>> following with the browser:
>>>>>>>
>>>>>>> >>>>>>
>>>>>>> ****** I tried manually invoking:
>>>>>>> http://localhost:8080/alfresco/service/auth/resolve/admin. It
>>>>>>> asked for login/pswd and then returned:
>>>>>>> <<<<<<
>>>>>>>
>>>>>>> Note the difference in URI. The first has "api/node" in it. The
>>>>>>> second does not. Can you go to the first URI and see what it does? If
>>>>>>> it
>>>>>>> comes back with "404" then I think we know what the issue is -- although
>>>>>>> I'm still unsure as to the proper way to fix it.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Karl
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, May 12, 2015 at 5:56 AM, Karl Wright <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I created CONNECTORS-1200 for the error handling issue in the
>>>>>>>> check() method.
>>>>>>>> Karl
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, May 12, 2015 at 4:32 AM, Karl Wright <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi Maurizio,
>>>>>>>>>
>>>>>>>>> The Jasper exception is due to the connection check throwing a
>>>>>>>>> RuntimeException or Error of some kind.
>>>>>>>>>
>>>>>>>>> Karl
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Mon, May 11, 2015 at 10:22 PM, Delapasse, Deanna <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>> Mao, Sorry for the delay! Today just did NOT go as planned
>>>>>>>>>> :-(. Happy to supply anything else that might help. The gist is
>>>>>>>>>> that I am
>>>>>>>>>> able to invoke the
>>>>>>>>>> http://localhost:8080/alfresco/service/auth/resolve/admin
>>>>>>>>>> manually (it has me login and then returns credentials), but seems
>>>>>>>>>> like
>>>>>>>>>> Manifold is unable to reach Alfresco successfully.
>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------- status
>>>>>>>>>> --------------------------------------------------------------------------------------
>>>>>>>>>> Installed & verified amp is installed.
>>>>>>>>>> http://localhost:8080/alfresco/service
>>>>>>>>>> <http://localhost:8090/alfresco/service> IS returning the maoo
>>>>>>>>>> namespace methods! (response pasted at end of email.)
>>>>>>>>>>
>>>>>>>>>> I create the repo connection. Selected Connection type:
>>>>>>>>>> "Alfresco Webscript" and no authority group. On the server page I
>>>>>>>>>> left the
>>>>>>>>>> defaults:
>>>>>>>>>> http
>>>>>>>>>> localhost
>>>>>>>>>> 8080
>>>>>>>>>> /alfresco/service
>>>>>>>>>> workspace
>>>>>>>>>> SpacesStore <=== I tried leaving this and also adding
>>>>>>>>>> SpacesStore/nodeID but didn't help.
>>>>>>>>>> and then user/password
>>>>>>>>>>
>>>>>>>>>> But as soon as I clicked save I see these errors in the command
>>>>>>>>>> window:
>>>>>>>>>>
>>>>>>>>>> Starting crawler...
>>>>>>>>>> ============
>>>>>>>>>> http
>>>>>>>>>> localhost
>>>>>>>>>> 8080
>>>>>>>>>> /alfresco/service
>>>>>>>>>> workspace
>>>>>>>>>> SpacesStore
>>>>>>>>>> admin
>>>>>>>>>> XXXXX
>>>>>>>>>> ============
>>>>>>>>>> [qtp52962163-616] WARN org.eclipse.jetty.servlet.ServletHandler -
>>>>>>>>>> org.apache.jasper.JasperException: An exception occurred
>>>>>>>>>> processing JSP page /ex
>>>>>>>>>> ecute.jsp at line 169
>>>>>>>>>> 166:
>>>>>>>>>> connManager.save(connection);
>>>>>>>>>> 167:
>>>>>>>>>> variableContext.setParameter("connname",connectionName);
>>>>>>>>>> 168: %>
>>>>>>>>>> 169: <jsp:forward
>>>>>>>>>> page="viewconnection.jsp"/>
>>>>>>>>>> 170: <%
>>>>>>>>>> 171: }
>>>>>>>>>> 172: }
>>>>>>>>>>
>>>>>>>>>> Stacktrace:
>>>>>>>>>> at
>>>>>>>>>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)
>>>>>>>>>> at
>>>>>>>>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
>>>>>>>>>> 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:790)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:769)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
>>>>>>>>>> at org.eclipse.jetty.server.Server.handle(Server.java:497)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:610)
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:539)
>>>>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>>>> Caused by: org.apache.jasper.JasperException: An exception
>>>>>>>>>> occurred processing JSP page /viewconnection.jsp at line 121
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ==============manifoldCF log
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,603 (qtp380224087-322) - Opening
>>>>>>>>>> connection {}->http://localhost:8080
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,605 (qtp380224087-322) - Connecting to
>>>>>>>>>> localhost/127.0.0.1:8080
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,607 (qtp380224087-322) - Connection
>>>>>>>>>> established 127.0.0.1:60824<->127.0.0.1:8080
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,607 (qtp380224087-322) - Executing
>>>>>>>>>> request GET /alfresco/service/api/node/auth/resolve/admin HTTP/1.1
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,607 (qtp380224087-322) - Proxy auth
>>>>>>>>>> state: UNCHALLENGED
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> GET /alfresco/service/api/node/auth/resolve/admin
>>>>>>>>>> HTTP/1.1
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> Accept: application/json
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> Authorization: Basic YWRtaW46YWRtaW4=
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> Host: localhost:8080
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> Connection: Keep-Alive
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> User-Agent: Apache-HttpClient/4.3.5 (java 1.5)
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> Accept-Encoding: gzip,deflate
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> "GET /alfresco/service/api/node/auth/resolve/admin
>>>>>>>>>> HTTP/1.1[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> "Accept: application/json[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> "Authorization: Basic YWRtaW46YWRtaW4=[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> "Host: localhost:8080[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.3.5 (java
>>>>>>>>>> 1.5)[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,608 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 >> "[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "HTTP/1.1 404 Not Found[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "Server: Apache-Coyote/1.1[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "Cache-Control: no-cache[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "Expires: Thu, 01 Jan 1970 00:00:00 GMT[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "Pragma: no-cache[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "Content-Type: text/html;charset=UTF-8[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "Transfer-Encoding: chunked[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "Date: Tue, 12 May 2015 02:04:22 GMT[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "630[\r][\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
>>>>>>>>>> Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
>>>>>>>>>> ">[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << "<html xmlns="http://www.w3.org/1999/xhtml
>>>>>>>>>> ">[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <head>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <title>Web Script Status 404 - Not
>>>>>>>>>> Found</title>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <link rel="stylesheet"
>>>>>>>>>> href="/alfresco/css/webscripts.css" type="text/css" />[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,661 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " </head>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <body>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <div>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <table>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <tr>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <td><img
>>>>>>>>>> src="/alfresco/images/logo/AlfrescoLogo32.png" alt="Alfresco"
>>>>>>>>>> /></td>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <td><span class="title">Web Script
>>>>>>>>>> Status 404 - Not Found</span></td>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " </tr>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " </table>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <br/>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <table>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <tr><td>The Web Script <a
>>>>>>>>>> href="%2Falfresco%2Fservice%2Fapi%2Fnode%2Fauth%2Fresolve%2Fadmin">/alfresco/service/api/node/auth/resolve/admin</a>
>>>>>>>>>> has responded with a status of 404 - Not Found.</td></tr>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " </table>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <br/>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <table>[\n]"
>>>>>>>>>> DEBUG 2015-05-11 21:04:22,662 (qtp380224087-322) -
>>>>>>>>>> http-outgoing-0 << " <tr><td><b>404
>>>>>>>>>> Description:</b></td><td>
>>>>>>>>>> Requested resource is not available.</td></tr>[\n]"
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ****** I tried manually invoking:
>>>>>>>>>> http://localhost:8080/alfresco/service/auth/resolve/admin. It
>>>>>>>>>> asked for login/pswd and then returned:
>>>>>>>>>> [
>>>>>>>>>> {
>>>>>>>>>> "username" : "admin",
>>>>>>>>>> "authorities" : [
>>>>>>>>>> "GROUP_ALFRESCO_ADMINISTRATORS"
>>>>>>>>>> ,
>>>>>>>>>> "GROUP_EMAIL_CONTRIBUTORS"
>>>>>>>>>> ,
>>>>>>>>>> "GROUP_EVERYONE"
>>>>>>>>>> ,
>>>>>>>>>> "GROUP_site_swsdp"
>>>>>>>>>> ,
>>>>>>>>>> "GROUP_site_swsdp_SiteManager"
>>>>>>>>>> ,
>>>>>>>>>> "ROLE_ADMINISTRATOR"
>>>>>>>>>>
>>>>>>>>>> ]
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> ]
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ************ text from the http://localhost:8080/alfresco/service
>>>>>>>>>> request
>>>>>>>>>> Clear dependency cachesPOST
>>>>>>>>>> /alfresco/service/caches/dependency/clear
>>>>>>>>>> <http://localhost:8080/alfresco/service/caches/dependency/clear>
>>>>>>>>>> ---Clears all the caches from the various configured dependency
>>>>>>>>>> handlers.---Authentication:adminTransaction:requiredFormat Style:
>>>>>>>>>> anyDefault Format:htmlLifecycle:internal
>>>>>>>>>> Id:caching/clearDependencies.post
>>>>>>>>>> <http://localhost:8080/alfresco/service/script/caching/clearDependencies.post>
>>>>>>>>>> Descriptor:
>>>>>>>>>> classpath:webscripts/caching/clearDependencies.post.desc.xml
>>>>>>>>>> <http://localhost:8080/alfresco/service/description/caching/clearDependencies.post>
>>>>>>>>>> Package: /com/github/maoo/indexer/webscripts
>>>>>>>>>> <http://localhost:8080/alfresco/service/index/package/com/github/maoo/indexer/webscripts>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Node ActionsGET
>>>>>>>>>> /alfresco/service/node/actions/{storeProtocol}/{storeId}/{uuid}
>>>>>>>>>> <http://localhost:8080/alfresco/service/node/actions/%7BstoreProtocol%7D/%7BstoreId%7D/%7Buuid%7D>
>>>>>>>>>> ---Node Actions---Authentication:userTransaction:requiredFormat
>>>>>>>>>> Style:argumentDefault Format:json
>>>>>>>>>> Id:com/github/maoo/indexer/webscripts/actions.get
>>>>>>>>>> <http://localhost:8080/alfresco/service/script/com/github/maoo/indexer/webscripts/actions.get>
>>>>>>>>>> Descriptor:
>>>>>>>>>> classpath:alfresco/extension/templates/webscripts/com/github/maoo/indexer/webscripts/actions.get.desc.xml
>>>>>>>>>> <http://localhost:8080/alfresco/service/description/com/github/maoo/indexer/webscripts/actions.get>
>>>>>>>>>> Authority ResolveGET /alfresco/service/auth/resolve/{username}
>>>>>>>>>> <http://localhost:8080/alfresco/service/auth/resolve/%7Busername%7D>
>>>>>>>>>> ---Renders out all authorities related with the given user(name)
>>>>>>>>>> ---Authentication:userTransaction:requiredFormat
>>>>>>>>>> Style:argumentDefault
>>>>>>>>>> Format:json
>>>>>>>>>> Id:com/github/maoo/indexer/webscripts/authresolve.get
>>>>>>>>>> <http://localhost:8080/alfresco/service/script/com/github/maoo/indexer/webscripts/authresolve.get>
>>>>>>>>>> Descriptor:
>>>>>>>>>> classpath:alfresco/extension/templates/webscripts/com/github/maoo/indexer/webscripts/authresolve.get.desc.xml
>>>>>>>>>> <http://localhost:8080/alfresco/service/description/com/github/maoo/indexer/webscripts/authresolve.get>
>>>>>>>>>> Node ChangesGET
>>>>>>>>>> /alfresco/service/node/changes/{storeProtocol}/{storeId}?lastTxnId={lastTxnId?}&lastAclChangesetId=${lastAclChangesetId}&indexingFilters=${indexingFilters?}&maxTxns=${maxTxns?}&maxAclChangesets=${maxAclChangesets?}
>>>>>>>>>> <http://localhost:8080/alfresco/service/node/changes/%7BstoreProtocol%7D/%7BstoreId%7D?lastTxnId=%7BlastTxnId?%7D&lastAclChangesetId=$%7BlastAclChangesetId%7D&indexingFilters=$%7BindexingFilters?%7D&maxTxns=$%7BmaxTxns?%7D&maxAclChangesets=$%7BmaxAclChangesets?%7D>
>>>>>>>>>> ---Node Changes---Authentication:userTransaction:requiredFormat
>>>>>>>>>> Style:argumentDefault Format:json
>>>>>>>>>> Id:com/github/maoo/indexer/webscripts/changes.get
>>>>>>>>>> <http://localhost:8080/alfresco/service/script/com/github/maoo/indexer/webscripts/changes.get>
>>>>>>>>>> Descriptor:
>>>>>>>>>> classpath:alfresco/extension/templates/webscripts/com/github/maoo/indexer/webscripts/changes.get.desc.xml
>>>>>>>>>> <http://localhost:8080/alfresco/service/description/com/github/maoo/indexer/webscripts/changes.get>
>>>>>>>>>> Node DetailsGET
>>>>>>>>>> /alfresco/service/node/details/{storeProtocol}/{storeId}/{uuid}
>>>>>>>>>> <http://localhost:8080/alfresco/service/node/details/%7BstoreProtocol%7D/%7BstoreId%7D/%7Buuid%7D>
>>>>>>>>>> ---Node Details, including list of authorities with READ access
>>>>>>>>>> on the node---Authentication:userTransaction:requiredFormat
>>>>>>>>>> Style:argumentDefault Format:json
>>>>>>>>>> Id:com/github/maoo/indexer/webscripts/details.get
>>>>>>>>>> <http://localhost:8080/alfresco/service/script/com/github/maoo/indexer/webscripts/details.get>
>>>>>>>>>> Descriptor:
>>>>>>>>>> classpath:alfresco/extension/templates/webscripts/com/github/maoo/indexer/webscripts/details.get.desc.xml
>>>>>>>>>> <http://localhost:8080/alfresco/service/description/com/github/maoo/indexer/webscripts/details.get>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Mon, May 11, 2015 at 9:16 AM, Maurizio Pillitu <
>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi Deanna,
>>>>>>>>>>> sorry for the late reply.
>>>>>>>>>>>
>>>>>>>>>>> The source code of the AMP can be found at
>>>>>>>>>>> https://github.com/maoo/alfresco-indexer ; my first advise
>>>>>>>>>>> would be to check if the new webscripts are accessible on Alfresco;
>>>>>>>>>>> you can
>>>>>>>>>>> access via http://localhost:8090/alfresco/service and "browse
>>>>>>>>>>> all webscripts".
>>>>>>>>>>>
>>>>>>>>>>> If you find the Alfresco Indexer webscripts, you can try to
>>>>>>>>>>> invoke them (for example,
>>>>>>>>>>> http://localhost:8090/alfresco/service/node/changes/workspace/SpacesStore
>>>>>>>>>>> )
>>>>>>>>>>>
>>>>>>>>>>> If this works, it means Alfresco Indexer is responding
>>>>>>>>>>> correctly, therefore the issue lies on the Manifold side; as soon
>>>>>>>>>>> as you
>>>>>>>>>>> validate the mentioned steps, we can move forward with the
>>>>>>>>>>> debugging.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> mao
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Mon, May 11, 2015 at 3:43 PM Karl Wright <[email protected]>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Deanna,
>>>>>>>>>>>>
>>>>>>>>>>>> I have contacted the author of the plugin, who works for
>>>>>>>>>>>> Alfresco. In ManifoldCF we distribute only the AMP binary, so
>>>>>>>>>>>> Maurizio
>>>>>>>>>>>> would be the right guy to answer any source questions.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Karl
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Mon, May 11, 2015 at 9:27 AM, Delapasse, Deanna <
>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> The Alfresco Webscripts connector requires an AMP installed
>>>>>>>>>>>>> into the Alfresco server to provide the webscripts the connector
>>>>>>>>>>>>> calls.
>>>>>>>>>>>>> The connector's author pointed me to his GitHub source code, but
>>>>>>>>>>>>> it isn't
>>>>>>>>>>>>> working for me as-is (installs ok, but the included webscripts
>>>>>>>>>>>>> aren't
>>>>>>>>>>>>> accessible). Are the AMP sources available from MCF? And do you
>>>>>>>>>>>>> know the
>>>>>>>>>>>>> last Alfresco version that anyone used it with? Possibly I will
>>>>>>>>>>>>> need to
>>>>>>>>>>>>> tweak it to work with my Alfresco 4.2.f.
>>>>>>>>>>>>>
>>>>>>>>>>>>> thanks!
>>>>>>>>>>>>> Deanna
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, May 6, 2015 at 11:19 AM, Karl Wright <
>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Here's the key finding:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> "Ok, the problem is because you only get to write the
>>>>>>>>>>>>>> seeding query. The
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> query that fetches individual documents is hardwired. I believe
>>>>>>>>>>>>>> it is set
>>>>>>>>>>>>>> in opencmis in fact."
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> So basically, for the CMIS connector, you aren't writing the
>>>>>>>>>>>>>> query that finds the document data and metadata; you are writing
>>>>>>>>>>>>>> the query that finds the set of documents to index. And the
>>>>>>>>>>>>>> query you *need* to modify is in fact baked into some jar in
>>>>>>>>>>>>>> Apache Chemistry, which greatly limits the CMIS connector's
>>>>>>>>>>>>>> utility for indexing metadata.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Is there any way you can use one of the two the native Alfresco
>>>>>>>>>>>>>> connectors we supply?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Karl
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Wed, May 6, 2015 at 12:10 PM, Karl Wright <
>>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi Deanna,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I vaguely recall that Apache Chemistry (which the CMIS
>>>>>>>>>>>>>>> connector relies on) running against Alfresco has some
>>>>>>>>>>>>>>> limitations where
>>>>>>>>>>>>>>> metadata is concerned. I'm pretty sure there was an email
>>>>>>>>>>>>>>> exchange posted
>>>>>>>>>>>>>>> somewhere, so you might be able to dig it up here:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> http://www.mail-archive.com/[email protected]/index.html
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I'll look around and see.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The other potential problem is your ElasticSearch
>>>>>>>>>>>>>>> configuration. I don't know a lot about this myself. I think
>>>>>>>>>>>>>>> it makes
>>>>>>>>>>>>>>> sense to try to figure out on which end the problem lies; if
>>>>>>>>>>>>>>> you can see in
>>>>>>>>>>>>>>> some log what actually gets posted to ElasticSearch for each
>>>>>>>>>>>>>>> document, that
>>>>>>>>>>>>>>> would help.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Karl
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Wed, May 6, 2015 at 11:42 AM, Delapasse, Deanna <
>>>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I'm trying to use ManifoldCF to crawl my Alfresco repo (via
>>>>>>>>>>>>>>>> the CMIS connector) and push the results into ElasticSearch.
>>>>>>>>>>>>>>>> My users want
>>>>>>>>>>>>>>>> to search metadata (including custom) and content. I followed
>>>>>>>>>>>>>>>> some
>>>>>>>>>>>>>>>> tutorials and got it running quickly BUT...regardless of my
>>>>>>>>>>>>>>>> ElasticSearch
>>>>>>>>>>>>>>>> mapping the only CMIS metadata entity I can find in my indexed
>>>>>>>>>>>>>>>> results is
>>>>>>>>>>>>>>>> cmis:objectId.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I have tried using various cmis queries (with 'select *
>>>>>>>>>>>>>>>> ...' and with 'select cmis:name, cmis:lastModifiedBy, ...'. I
>>>>>>>>>>>>>>>> have
>>>>>>>>>>>>>>>> verified my queries and they definitely return metadata, but
>>>>>>>>>>>>>>>> the data
>>>>>>>>>>>>>>>> doesn't appear in ElasticSearch. I tried a simple attachment
>>>>>>>>>>>>>>>> mapping and
>>>>>>>>>>>>>>>> also a mapping where I specifically list some of the cmis
>>>>>>>>>>>>>>>> properties.
>>>>>>>>>>>>>>>> Regardless of mapping, my indexes look like this:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>> "_index":"test",
>>>>>>>>>>>>>>>> "_type":"file",
>>>>>>>>>>>>>>>> "_id":"
>>>>>>>>>>>>>>>> http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/content/10.0.txt?id=2555a540-a5b3-4c27-90f6-c89b6742bd4f%3B1.0
>>>>>>>>>>>>>>>> ",
>>>>>>>>>>>>>>>> "_version":2,
>>>>>>>>>>>>>>>> "_score":1,
>>>>>>>>>>>>>>>> "_source":{
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> "cmis:objectId":"2555a540-a5b3-4c27-90f6-c89b6742bd4f;1.0",
>>>>>>>>>>>>>>>> "allow_token_document":"__nosecurity__",
>>>>>>>>>>>>>>>> "deny_token_document":"__nosecurity__",
>>>>>>>>>>>>>>>> "allow_token_share":"__nosecurity__",
>>>>>>>>>>>>>>>> "deny_token_share":"__nosecurity__",
>>>>>>>>>>>>>>>> "allow_token_parent":"__nosecurity__",
>>>>>>>>>>>>>>>> "deny_token_parent":"__nosecurity__",
>>>>>>>>>>>>>>>> "file":{
>>>>>>>>>>>>>>>> "_content_type":"text/plain",
>>>>>>>>>>>>>>>> "_name":"10.0.txt",
>>>>>>>>>>>>>>>> "_content":"DQpJIGFtIGFuIEFsZnJlc2NvIGZpbGUuDQo="
>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> The ES results are good and I can search perfectly by
>>>>>>>>>>>>>>>> content & cmis:objectId. I have enabled debugging and no
>>>>>>>>>>>>>>>> errors appear in
>>>>>>>>>>>>>>>> the log. *What do I have to DO to get cmis:name,
>>>>>>>>>>>>>>>> cmis:lastModifiedBy and other properties to appear?*
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thanks in advance! This product is very simple to use and
>>>>>>>>>>>>>>>> has potential to be a HUGE help to us!!!
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Deanna
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>