Tomboy note XML broken by U1 online editor, sync failure

Bug #677865 reported by Sergey
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Servers
Fix Released
High
Roman Yepishev
tomboy (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: tomboy

my ~/.config/tomboy/tomboy.log

20.11.2010 21:55:33 [INFO]: Initializing Mono.Addins
20.11.2010 21:55:55 [ERROR]: Synchronization failed with the following exception: Expected =, but found > [62] Line 12, position 60.
  at Mono.Xml2.XmlTextReader.ExpectAfterWhitespace (Char c) [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadAttributes (Boolean isXmlDecl) [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadStartTag () [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at Tomboy.Sync.NoteUpdate..ctor (System.String xmlContent, System.String title, System.String uuid, Int32 latestRevision) [0x00000] in <filename unknown>:0
  at Tomboy.WebSync.WebSyncServer.GetNoteUpdatesSince (Int32 revision) [0x00000] in <filename unknown>:0
  at Tomboy.Sync.SyncManager.SynchronizationThread () [0x00000] in <filename unknown>:0

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: tomboy 1.4.0-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Sat Nov 20 22:01:26 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate i386 (20100928)
ProcEnviron:
 LANG=ru_RU.utf8
 SHELL=/bin/bash
SourcePackage: tomboy

Revision history for this message
Sergey (phan2m) wrote :
summary: - tomboy application fail to sync with my old notes from 10.04.
+ tomboy application fails to sync with my old notes from 10.04.
Revision history for this message
Sergey (phan2m) wrote : Re: tomboy application fails to sync with my old notes from 10.04.

I saw in my notes that one of them has breaking format like <text:large>TEXT TEXT</text:large><format><highlight>texttextext</highlight><format> I removed that tags and sync was done.

Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote :

Any chance you edited that note in U1's online editor? This is looking more and more like a U1 bug, not a Tomboy bug.

Revision history for this message
Sergey (phan2m) wrote :

Yeah, that's right. I edited note from ubuntu one's web UI. But Tomboy couldn't sync with all of my notes with error.log that was attached to my post. So it's Tomboy's bug too.

Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote :

Tomboy not synchronizing broken notes is a feature.

U1 breaking your notes is a bug.

Reassigning this to ubuntuone-servers.

summary: - tomboy application fails to sync with my old notes from 10.04.
+ Tomboy note XML broken by U1 online editor, sync failure
Changed in tomboy (Ubuntu):
status: New → Invalid
Changed in ubuntuone-servers:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Ubuntu One Desktop+ team (ubuntuone-desktop+)
tags: added: tomboy u1-maverick
removed: ubuntu-une
tags: added: notes webui
Revision history for this message
Roman Yepishev (rye) wrote :

Hello,

At the moment it looks like all the bugs that could have caused complete failure of the sync process have been fixed so I am setting this to Fix Released.

If you are experiencing issues with tomboy sync (but not 404 NOT FOUND response from the server, that's bug 575937[0]) please try the following script that should provide you with the information regarding what note is causing the synchronization to fail.

Editing and re-saving the offending notes in the web interface should restore your tomboy sync, however if the note in the web interface appears completely blank please do not re-save it since that will overwrite your previous note content.

Please contact <email address hidden> if you are not able to restore the notes in this way and we will find the ways that can be done on a case-by-case basis.

Here's how to use the script in the terminal:

cd /tmp
wget
http://people.canonical.com/~roman.yepishev/us/tomboy-sync-validator.py
python tomboy-sync-validator.py

It should print something like this:

API ref is at https://one.ubuntu.com/notes/api/1.0/user/, querying...
Notes are at https://one.ubuntu.com/notes/api/1.0/op/, querying...
Current sync GUID: 0
Latest sync revision: 2
Found 5 notes
[1/5] "Start Here": OK
[2/5] "Ubuntu One": OK
[3/5] "Hello again!": OK
[4/5] "Using Links in Tomboy": OK
[5/5] "New Note 1": OK

However if there is an error it will print something like
[1/5] "Start Here": ERROR
        23d57ffb-a492-4ba1-adf4-72f0eb23b254: last-change-date-is-broken (000)

https://one.ubuntu.com/notes/view/23d57ffb-a492-4ba1-adf4-72f0eb23b254

[0] Can't synchronize Tomboy Notes: Server returned 404 NOT FOUND
    https://bugs.launchpad.net/ubuntu/+source/tomboy/+bug/575937

Changed in ubuntuone-servers:
status: Confirmed → Fix Released
assignee: Ubuntu One Desktop+ team (ubuntuone-desktop+) → Roman Yepishev (rye)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.