Search tool not working correctly

Please report bugs here!

Moderator: Thorsten

Post Reply
xavier
Posts: 7
Joined: Fri Sep 25, 2009 3:59 pm

Search tool not working correctly

Post by xavier »

Hello,

I am using phpmyfaq. I have more than 500 articles but when I make a search, only the 2 first results are available.
only_2_results.PNG
If I click to the next page of the search, I have the error page (http://faq.mycompagny.net/index.php?&ac ... hcategory=%) :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

If I remove the last parameter of the URL http://faq.mycompagny.net/index.php?&ac ... to&seite=2
A page is available but no result :
phpmyfaq_page2.png

I don't know if we have one ore more bug, but I can not use the search functionnality.
I use goup and user right to limit access to articles. The user used to do the search has all the rights on all the articles.

More details about my config :
phpMyFAQ Version
phpMyFAQ 2.5.2
Server Software
Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch
PHP Version
PHP 5.2.6-1+lenny3
permission
medium
language
french

Thank you for your advice
Regards,

Xavier
You do not have the required permissions to view the files attached to this post.
Last edited by xavier on Tue Sep 29, 2009 8:47 am, edited 1 time in total.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search tool not working correctly

Post by Thorsten »

Hi,

strange. Can you send me your database backup by e-mail?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
xavier
Posts: 7
Joined: Fri Sep 25, 2009 3:59 pm

Re: Search tool not working correctly

Post by xavier »

Hello Thorsten,

I send you the database by mail.
To reproduce the bug, you have to connect with a user which has all right (like xavier user) and search by example 'fast'.
Have a nice day

Xavier
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search tool not working correctly

Post by Thorsten »

Hi Xavier,

thank you very much. I will test it this evening!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search tool not working correctly

Post by Thorsten »

Hi,

I could fix the warnings... the over problem still exists because the group permissions are "higher" than the user permissions. I think you try the opposite, is that correct?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
xavier
Posts: 7
Joined: Fri Sep 25, 2009 3:59 pm

Re: Search tool not working correctly

Post by xavier »

Hi,

Thank you for your support. You're too fast ;-)

I still have my problem to access article with my right policy.
I update my database, now there is only
- 3 users : xavier, admin, limited_access
- 8 groups (with limited rights)
Admin and xavier belong to all the groups.
Admin and xavier have all rights.
limited_access belongs to only 2 groups

All the articles except have a restricted access to one group.
All the articles except one (ID #1007) have a restricted access to admin user.
ID #1007 is available to all users

In this configuration, I hope that:
- xavier and admin can access to all articles
- limited_access can access to articles which belong to its 2 groups

In this case, only the ID #1007is available to user xavier when I make a search.
In this case, none article is available to limited_access user when I make a search.

If a tape the full URL of an other article, I can access to it:
http://myserver/admin/index.php?action= ... =3&lang=fr

So my trouble is that when I make a search with a full power user, he can not see article which belong to a dedicated user but which belong as well to one of its group.
Is it normal? If yes, what is the solution in my situation?

I will transmit my updated database by mail.
Thank you.

Xavier
xavier
Posts: 7
Joined: Fri Sep 25, 2009 3:59 pm

Re: Search tool not working correctly

Post by xavier »

Hi Thorsten ,

And when I make a search, the second page of the result doesn't work, strange....

Xavier
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search tool not working correctly

Post by Thorsten »

Hi Xavier,

I'll check your issues at the weekend. I hope you can wait until I've got some free days...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
xavier
Posts: 7
Joined: Fri Sep 25, 2009 3:59 pm

Re: Search tool not working correctly

Post by xavier »

I can wait, don't worry.
Thank you
bye

Xavier
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search tool not working correctly

Post by Thorsten »

Hi,

I tested it now again and I think it's working correct with your latest dump...

phpMyFAQ 2.5.3 will be released in the next days.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
xavier
Posts: 7
Joined: Fri Sep 25, 2009 3:59 pm

Re: Search tool not working correctly

Post by xavier »

OK Thorsten,
Thank you very much.
Have a nice day.

Xavier
Post Reply