After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 495529 - Search not working
Search not working
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.10.x
Other All
: Normal normal
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2007-11-10 09:57 UTC by Sara Khalatbari
Modified: 2007-11-28 20:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sara Khalatbari 2007-11-10 09:57:11 UTC
Please describe the problem:
Edit > Search

It doesn't find the .jpg

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Behdad Esfahbod 2007-11-10 10:28:51 UTC
Searching in Filesystem doesn't work while searching in specific directories work.  How does the Filesystem search work?  It sure can't be that fast.  Is it using locate or something?  That would explain...
Comment 2 Michael Chudobiak 2007-11-10 13:44:39 UTC
Search under "Filesystem" is totally broken in 2.10.7, it never finds anything.

There seems to be some additional weirdness that I can't quite pin down right now, when searching other locations.

- Mike
Comment 3 Michael Chudobiak 2007-11-10 20:11:44 UTC
Search was aborting on the first non-readable directory (e.g., bad permissions), making it useless for recursive searches starting at "/" (it would choke on "/root").

Fixed in svn rev 2056.

Sara, does that fix your problem? Do you know how to test svn code?

- Mike
Comment 4 Michael Chudobiak 2007-11-10 20:12:45 UTC
Typo: fixed in 2057, not 2056.
Comment 5 Sara Khalatbari 2007-11-13 18:50:36 UTC
(In reply to comment #3)
> Search was aborting on the first non-readable directory (e.g., bad
> permissions), making it useless for recursive searches starting at "/" (it
> would choke on "/root").
> 
> Fixed in svn rev 2056.
> 
> Sara, does that fix your problem? Do you know how to test svn code?
> 
> - Mike
> 

I tried testing the svn code but I couldn't. I didn't put that much time on it though. I will try to do it during the weekend and will let you know.

Sara

Comment 6 Sara Khalatbari 2007-11-18 22:25:27 UTC
It goes into a symlink loop.
So when you search within your home directory it gets stuck inside the loop & finds infinite copies & when you are seraching as root it gets stuck in the loop before finding the file and never finds it.
I think you should lstat() the directory before recursing into it to ensure that it is not a symlink.
Comment 7 Paolo Bacchilega 2007-11-20 19:37:12 UTC
the loop problem should be fixed now in the gthumb-2-10 branch.