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 422951 - Export to HTML plugin enters infinite loop
Export to HTML plugin enters infinite loop
Status: RESOLVED FIXED
Product: tomboy
Classification: Applications
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
: 503536 538174 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-03-26 10:54 UTC by Ruben Vermeersch
Modified: 2008-06-13 17:28 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Prevent notes from resolving more than twice to prevent infinite loop. (3.19 KB, patch)
2008-02-22 21:43 UTC, Boyd Timothy
committed Details | Review

Description Ruben Vermeersch 2007-03-26 10:54:59 UTC
When exporting a note with circular links, the export to HTML plugin enters an infinite loop.

How to reproduce:
 * Create a note A, link to note B
 * In this newly created note B, link to A
 * Export A to HTML
 * Crash!
Comment 1 Ruben Vermeersch 2007-03-26 11:03:31 UTC
Note that I have used both export-linked and export-linked-all.
Comment 2 Max Wiehle 2007-08-09 13:45:47 UTC
Can confirm this. Probably needs a list of already exported notes.
Comment 3 Enrico Minack 2007-08-09 13:50:55 UTC
confirmed for 0.7.1
Comment 4 Enrico Minack 2007-08-09 14:18:23 UTC
The ./Tomboy/Addins/ExportToHtml/ExportToHtml.xsl (called by ExportToHtmlNoteAddin.cs) transforms a note into html and, if requested, does this recursively for linked notes. It also manages a key (look-up table) called 'note-already-loaded' to avoid re-loading notes previously being processed. So from this point of view it seems to be considered in the xsl file. Maybe xml or the xsl transformer has problems with this recursitivity...
Comment 5 Farhad Shakiba 2007-09-30 04:35:09 UTC
Confirmed for 0.8.0 on Ubuntu Gutsy.
Comment 6 zerohalo 2007-10-16 03:18:42 UTC
I'm experiencing the same, using 0.8.0 on Ubuntu Feisty. Tomboy crashes, and creates a huge HTML file (32MB) with the same note (or couple of notes) stored repeatedly a number of times. The rest of the notes are ignored. 

THis is when I choose "Export Linked Notes" and "Include all other notes". This option has become vital to me since I've moved to a Mac, and find myself unable to read my many many tomboy notes (no Mac port, snif!). 
Comment 7 zerohalo 2007-11-13 03:51:42 UTC
Since 4 people report this problem, is it possible to move it off "unconfirmed" status? 
Comment 8 Boyd Timothy 2008-02-22 21:43:26 UTC
Created attachment 105792 [details] [review]
Prevent notes from resolving more than twice to prevent infinite loop.

Committed to SVN Trunk (r1880).
Comment 9 Boyd Timothy 2008-02-22 22:00:42 UTC
*** Bug 503536 has been marked as a duplicate of this bug. ***
Comment 10 Sandy Armstrong 2008-06-13 17:28:52 UTC
*** Bug 538174 has been marked as a duplicate of this bug. ***