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 169038 - When a non-PPT file is renamed as PPT, beagled spews out lot of exceptions
When a non-PPT file is renamed as PPT, beagled spews out lot of exceptions
Status: VERIFIED FIXED
Product: beagle
Classification: Other
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: Veerapuram Varadhan
Veerapuram Varadhan
Depends on:
Blocks:
 
 
Reported: 2005-03-02 22:48 UTC by Veerapuram Varadhan
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Veerapuram Varadhan 2005-03-02 22:48:26 UTC
Please describe the problem:
When a non-PPT file is renamed as PPT, beagled spews out lot of exceptions. 
Don't be so verbose on exception.  Also return immediately when exception occurs
thus can avoid "Cannot convert to lucene document" exception.

Steps to reproduce:
1. run "beagled --fg --debug"
2. touch ~/sample.ppt
3. 


Actual results:
ERROR: Unable to convert file:///home/varadhan/samples/test-nothing.ppt
(type=File) to a lucene document
ERROR: GLib.GException: No OLE2 signature
in <0x000b1> Gsf.InfileMSOle:.ctor (Gsf.Input)
in [0x0002c] (at
/home/varadhan/cvs/beagle-cvs-02-Mar-2005/Filters/FilterPPT.cs:610)
Beagle.Filters.FilterPPT:DoOpen (System.IO.FileInfo)
in [0x0005b] (at
/home/varadhan/cvs/beagle-cvs-02-Mar-2005/beagled/Filter.cs:378)
Beagle.Daemon.Filter:Open (System.IO.FileInfo)
in [0x000d5] (at
/home/varadhan/cvs/beagle-cvs-02-Mar-2005/beagled/FilteredIndexable.cs:277)
Beagle.Daemon.FilteredIndexable:Build ()
in [0x00001] (at
/home/varadhan/cvs/beagle-cvs-02-Mar-2005/beagled/LuceneDriver.cs:589)
Beagle.Daemon.LuceneDriver:ToLuceneDocument (Beagle.Indexable)
in [0x00223] (at
/home/varadhan/cvs/beagle-cvs-02-Mar-2005/beagled/LuceneDriver.cs:342)
Beagle.Daemon.LuceneDriver:Flush ()


Expected results:
Beagle should display an appropriate error and shouldn't dump the whole stack trace

Does this happen every time?
Yes.

Other information:
Check other filters as well and fix it.
Comment 1 Veerapuram Varadhan 2005-03-02 22:53:55 UTC
Fixed in CVS, for PPT filter.  I will close this bug after verifying all the
filters.