Hi,
Sure,here are the different steps:

 

1. Compiled alfresco-indexer (with alfresco-version 5.2.f in pom) with skipTest option
2. Deployed amp to Alfresco (Is there any way to validate that the service is up and running?)
3. Started last version of MCF in single process mode and created a webscript repository connection with the following configuration:

 
Protocol:

http
Host name:

host
Port:

8080
Context:

/alfresco/service



Store protocol:

workspace
Store ID:

SpacesStore



User name:

user
Password:

********

 

 

4. Saved the config and got the exception… Is there any way to be sure that my configuration is correct?

 

Thank you,

 

Aurélien

 

De : Luis Cabaceira [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 24 octobre 2017 15:18
À : [EMAIL PROTECTED]
Objet : Re: Alfresco webscript connection problem

 

Please enumerate the steps you are doing to test this so I can repeat them here and let you know.

Luis Cabaceira

Alfresco
On 24 Oct 2017, at 12:52, Aurélien MAZOYER <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:

Hi,
I downloaded MCF 2.8.1 and tested it but I am still struggling with the following exception:

ERROR 2017-10-24T13:37:16,835 (qtp765242091-443) - Json response is missing username.

com.github.maoo.indexer.client.AlfrescoParseException: Json response is missing username.

        at com.github.maoo.indexer.client.WebScriptsAlfrescoClient.getUsername(WebScriptsAlfrescoClient.java:305) ~[alfresco-indexer-client-0.8.1.jar:?]

        at com.github.maoo.indexer.client.WebScriptsAlfrescoClient.getUser(WebScriptsAlfrescoClient.java:298) ~[alfresco-indexer-client-0.8.1.jar:?]

        at com.github.maoo.indexer.client.WebScriptsAlfrescoClient.userFromHttpEntity(WebScriptsAlfrescoClient.java:289) ~[alfresco-indexer-client-0.8.1.jar:?]

        at com.github.maoo.indexer.client.WebScriptsAlfrescoClient.fetchUserAuthorities(WebScriptsAlfrescoClient.java:352) ~[alfresco-indexer-client-0.8.1.jar:?]

        at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.AlfrescoConnector.check(AlfrescoConnector.java:133) [mcf-alfresco-webscript-connector.jar:?]

 

I cannot understand the error message as I provided a username in the alfresco webscript repo connection configuration.

Any idea of what I can investigate ?

 

Thank you,

 

Aurélien

 

De : Luis Cabaceira [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 20 octobre 2017 12:25
À : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Objet : Re: Alfresco webscript connection problem

 

Hi, i've used 2.8.1 OOTB with the Amps installed in Alfresco as per the documentation.

 

On 20 October 2017 at 10:56, Aurélien MAZOYER <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:

Hi,

 

@Luis : Can you tell me if you used Manifold 2.8.1 out of the box for your test or if you used a custom alfresco-indexer lib for your test?

 

Thank you,
Aurélien

 

De : Aurélien MAZOYER [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ]
Envoyé : vendredi 6 octobre 2017 14:03
À : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Objet : RE: Alfresco webscript connection problem

 

Yes, here is the configuration I used :

 
Protocol:

http
Host name:

host
Port:

8080
Context:

/alfresco/service



Store protocol:

workspace
Store ID:

SpacesStore



User name:

user
Password:

********

Did you use Manifold 2.8.1 out of the box for your test or did you use a custom alfresco-indexer lib?

Regards,

Aurélien

 

 

 

De : Luis Cabaceira [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 6 octobre 2017 13:49
À : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Objet : Re: Alfresco webscript connection problem

 

Have you filled in the username and password for Alfresco ? From the stacktrace you are showing its apparently missing the username. I've just tested this with Alfresco 5.2 and Manifold 2.8.1 and it works ok for me.

 

On 6 October 2017 at 09:00, Aurélien MAZOYER <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:

Hi,

 

Thank you for your advice. I am now able to compile the project with the following command:

mvn clean install -Dmaven.test.skip=true

and the following pom.xml

    <properties>

        <alfresco.version>5.2.f</alfresco.version>

        <!--<alfresco.enterprise.version>5.0.2</alfresco.enterprise.version>-->

        <h2-support.version>5.0</h2-support.version>

    </properties>

I copied the fresh compiled alfresco-indexer-client.jar to the connector-lib folder of manifoldcf (version 2.7.1) and deployed the amp on Alfresco.

 

I tried to configure a repository connection in mcf with the following configuration:

 
Protocol:

http
Host name:

host
Port:

8080
Context:

/alfresco/service



Store protocol:

workspace
Store ID:

SpacesStore



User name:

user
Password:

********

 

 

and I get the exception:

 

ERROR 2017-10-05 18:06:11,518 (qtp1297502382-371) - Json response is missing username.

com.github.maoo.indexer.client.AlfrescoParseException: Json response is missing username.

        at com.github.maoo.indexer.client.WebScriptsAlfrescoClient.getUsername(WebScriptsAlfrescoClient.java:315)

        at com.github.maoo.indexer.client.WebScriptsAlfrescoClient.getUser(WebScriptsAlfrescoClient.java:308)

        at com.github.maoo.indexer.client.WebScriptsAlfrescoClient.userFromHttpEntity(WebScriptsAlfrescoClient.java:299)

        at com.github.maoo.indexer.client.WebScriptsAlfrescoClient.fetchUserAuthorities(WebScriptsAlfrescoClient.java:362)

        at org.apache.manifoldcf.crawler.connectors.alfrescowebscript.AlfrescoConnector.check(AlfrescoConnector.java:133)

        at org.apache.jsp.viewconnection_jsp._jspService(viewconnection_jsp.java:249)

        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

        at j
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB