webscript api/solr/metadata

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
jordisolisc
Member II

webscript api/solr/metadata

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
jonash
Member II

Re: webscript api/solr/metadata

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>