manifoldcf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Bieles <paulbie...@hotmail.com>
Subject RE: No results from solr with mcf plugin
Date Fri, 06 Mar 2015 10:58:56 GMT
Hi Frank,
 
Not sure its the same problem, but we had something similar and it drove us mad!.
 
We hadn't included all of the access tokens when indexing data. Ensure you have the following
in your schema:
 
allow_token_parent
allow_token_document
allow_token_share
deny_token_parent
deny_token_document
deny_token_share
 
Paul
 
> Date: Fri, 6 Mar 2015 11:32:24 +0100
> From: frank.brendel@eurolog.com
> To: user@manifoldcf.apache.org
> Subject: No results from solr with mcf plugin
> 
> Hi,
> 
> I've successfully installed ManifoldCF 2.0.2 and Solr 5.0.0.
> 
> Everything works fine but when I activate the manifoldCFSecurity plugin 
> I get no results from Solr.
> 
> 
> Without ManifoldCFSecurity plugin the Solr log shows me two hits when I 
> query 'Handbuch'.
> 
> 2015-03-06 09:33:19.248; org.apache.solr.core.SolrCore; [elcore] 
> webapp=/solr path=/select 
> params={q=Handbuch&indent=true&wt=json&debugQuery=true&_=1425634399268}

> hits=2 status=0 QTime=5
> 
> 
> But with activated manifoldCFSecurity plugin I get no hits.
> 
> INFO  - 2015-03-06 09:51:08.012; org.apache.solr.core.SolrCore; [elcore] 
> webapp=/solr path=/select 
> params={q=Handbuch&AuthenticatedUserName=user@domain&indent=true&wt=json&debugQuery=true&_=1425635468033}

> hits=0 status=0 QTime=7
> INFO  - 2015-03-06 09:51:15.277; 
> org.apache.solr.mcf.ManifoldCFSearchComponent; Trying to match docs for 
> user '[:user@domain]'
> INFO  - 2015-03-06 09:51:15.281; 
> org.apache.solr.mcf.ManifoldCFSearchComponent; Saw authority response 
> AUTHORIZED:ELAuthSPConn
> 
> 
> The response from the authorization service is
> 
> # curl 
> 'http://localhost:8345/mcf-authority-service/UserACLs?username=user@domain'
> AUTHORIZED:ELAuthSPConn
> TOKEN:ELAuthGroup:Ui%3A0%23.w%7Cdomain%5Cuser
> TOKEN:ELAuthGroup:GBesitzer+von+Abteilungen
> TOKEN:ELAuthGroup:GBesitzer+von+Kunden
> TOKEN:ELAuthGroup:GBesitzer+von+Produkte
> TOKEN:ELAuthGroup:GMitglieder+von+Abteilungen
> 
> 
> I also tried to query the allow_token_document directly (without 
> ManifoldCF plugin) and got exactly the single entry that user@domain is 
> allowed to see:
> 
> INFO  - 2015-03-06 09:56:39.909; org.apache.solr.core.SolrCore; [elcore] 
> webapp=/solr path=/select 
> params={q=allow_token_document:"ELAuthGroup:Ui%253A0%2523.w%257Cdomain%255Cuser"&indent=true&wt=json&_=1425635799838}

> hits=1 status=0 QTime=45
> 
> 
> I've tried it with the Query Parser and the Search Component plugin with 
> no success.
> 
> 
> 
> Kind regards
> Frank
> 
 		 	   		  
Mime
View raw message