GNOME Bugzilla – Bug 331468
Failure importing bookmarks exported from previous release
Last modified: 2006-03-03 11:05:23 UTC
Please describe the problem: I tried to export bookmarks in epiphany (RDF) format under my "stable" user (using Ubuntu 5.10), then importing them in my test HEAD GNOME installation under /opt (builded with jhbuild). The import action fails Steps to reproduce: 1. Export your bookmark with the previous stable release as RDF 2. Try to import them in the current development release 3. The import fails Actual results: Import failure error dialog "The bookmarks from “Segnalibri.rdf” could not be imported because the file is corrupted or of an unsupported type." Expected results: Import my bookmarks, please :-| Does this happen every time? Yes Other information: Just a doubt: what will happen when I'll upgrade my Ubuntu to 6.04? Will I lost my bookmarks?
When you run xmllint --noout ~/.gnome2/epiphany/bookmarks.rdf && echo valid does it output "valid" ?
Both environments (/usr and /opt/gnome2) say it's valid... Same for saved rdf file.
I guess we'd need to see the bookmarks.rdf file... if you want you could strip the real string, but the structure needs to be conserved; it should be easy to write a tiny script to do that.
Created attachment 59905 [details] My bookmarks exported as RTF Source: Epiphany 1.8.2 in Ubuntu 5.10 Contents: no p0rN sites :-> All addresses for p0rN stuff are in my mind :-)
Created attachment 59906 [details] My bookmarks exported as Mozilla Bookmarks Same as previous attachment, exported as Mozilla bookmarks in Epiphany 1.8.2 in Ubuntu. Epiphany HEAD fails to load this file too (same error message). Moreover, using the file type filter in file selection dialog for import bookmarks action and setting it to "Mozilla/Firefox bookmaks", this file is not showed in file list. A MIME type mismatch?
I can import the test file just fine.... What does the gnomevfs-info command report as mime type of the file for you? It should be text/rdf or application/rdf+xml.
gnomevfs-info says it's text/rdf. Nautilus file properties dialog says it's application/xml (???). I'll investigate about used mime info (maybe a wrong $XDG_* variable?)
Try running under gdb and set a breakpoint on ephy-bookmarks-import.c:79 and print the value of the "type" variable?
I tried to run gdb, but epiphany crash running in it. Do I miss something? betatester@redrum:~$ gdb /opt/gnome2/bin/epiphany <...> (gdb) break ephy-bookmarks-import.c:79 (gdb) run <...> Program received signal SIG33, Real-time event 33. [Switching to Thread -1257833552 (LWP 21969)] 0xffffe410 in __kernel_vsyscall ()
I tried to attach gdb to a running `epiphany --bookmarks` too. The window hangs up after all symbols are loaded, this the traceback. (gdb) thread apply all bt
+ Trace 66530
Thread 1 (Thread -1229846176 (LWP 23251))
Put this line in ~/.gdbinit file: handle SIG33 nostop noprint pass
(gdb) print type $1 = 0x83269c0 "application/xml" So it could be a misconfiguration of my system (or stuff under /opt/)...
Thanks for your debugging efforts, marking as NOTGNOME. Your problem is that the MIME type "text/rdf" is marked as a MIME type derived from "text/plain" instead of "application/xml". I've fixed that in shared-mime-info HEAD.
Created attachment 60517 [details] [review] Patch against your /usr/share/mime/packages/freedesktop.org.xml file You can apply the attached patch to fix the issue, or wait until your distributor ships with a more recent version.
Updated shared-mime-info from CVS. Now bookmarks are gracefully imported (don't you think is better provided a new shared-mime-info package before GNOME 2.14 release?) OK to close the bug?
> don't you think is better provided a new shared-mime-info package before GNOME 2.14 release? I agree. I'll contact the maintainers. > OK to close the bug? Yes.