cancel
Showing results for 
Search instead for 
Did you mean: 

webscript api/solr/metadata

jordisolisc
Champ in-the-making
Champ in-the-making
Hello,

I don't know how to invoke the webscript api/solr/metadata

Steps(with RESTClient firefox plugin):
- MethodSmiley TongueOST
- url: http://localhost:8080/alfresco/service/api/solr/metadata
- Body: {"nodeIds":"workspace://SpacesStore/123b2e6e-8107-4e1d-aaea-d5c27c3fcec1"}
- Header: Content-Type:application/json, and a basic authentication with admin/admin

But I get a 403 Error, how can I invoke it?


Thanks
1 REPLY 1

jonash
Champ in-the-making
Champ in-the-making
Hi,

The Solr web scripts are protected by SSL client certificate authentication (see the web.xml excerpt below). The Solr indexing server uses a SSL certificate to securely index all the data in Alfresco over an encrypted connection.

Normally, calling these web scripts yourself should not be necessary. If you want to do it anyway you will have to use the repoclient certificate, you can find this in the Solr keystore.


   <security-constraint>
      <web-resource-collection>
         <web-resource-name>SOLR</web-resource-name>
         <url-pattern>/service/api/solr/*</url-pattern>
      </web-resource-collection>

      <auth-constraint>
         <role-name>repoclient</role-name>
      </auth-constraint>

      <user-data-constraint>
         <transport-guarantee>CONFIDENTIAL</transport-guarantee>
      </user-data-constraint>
   </security-constraint>