Forums / Extensions / eZ Find / Permissions issue in search results

Permissions issue in search results

Author Message

Jordan Hirsch

Friday 11 April 2008 11:56:44 am

I am working on an eZ Publish 4.0.0 installation (SVN revision: 19785) with eZ Find 1.0.0beta2 installed. My content is getting indexed just fine, and in the admin interface, I can see all my search results as expected. However, when I am viewing my public siteaccess as the Anonymous user, any search items residing within the Media Library are not returned in the search results. I have checked, double-checked, and re-checked the permissions for the Media Library, and they appear to be correct. In fact, the Anonymous user can browse directly to the items in question via the public siteaccess and view them with no problem. But they never come back in search results unless I login as the Administrator user first.

I can see that the right filtering logic is being applied in the query, i.e.:

( ( m_section_id:1 )) OR ( ( m_section_id:3 )) )

which is checking for the 2 sections this user is allowed to see, Standard and Media.

I've checked that the classes I'm trying to search (in this case, File) are included in the class array passed to the search function, and that the attributes in question (title, file) are included in the search query. I've also tried running my search with limitation set to an empty array to remove all permissions checking, with no effect.

I would <b>greatly</b> appreciate any light someone could shed on this for me. Thank you!

Me: http://jordan.teamhirsch.com
My blog: http://wiredformusic.blogspot.com
My other company: http://thinkimprov.com
eZ Certification: http://auth.ez.no/certification/verify/402488
eZ Award: http://ez.no/company/news/ez_awards_2007_prize_winners

Jordan Hirsch

Wednesday 16 April 2008 11:40:04 am

I found it! Turns out the problem was in my permissions setup. When I had 2 policies set, one for content/read (Standard section), and one for content/read (Media section), this did not work. When I removed the content/read (Media section) policy and edited the other one to contain both Standard and Media, it started working.

That sounds like a bug to me, but at least I figured it out.,

Me: http://jordan.teamhirsch.com
My blog: http://wiredformusic.blogspot.com
My other company: http://thinkimprov.com
eZ Certification: http://auth.ez.no/certification/verify/402488
eZ Award: http://ez.no/company/news/ez_awards_2007_prize_winners

Kristof Coomans

Thursday 17 April 2008 1:04:09 am

Hi Jordan

If not done yet, can you report this please in the issue tracker of eZ Find? http://issues.ez.no/ProjectSelect.php?Id=8

Thanks!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org