kjots "loses" my information although the book has data

Bug #1262311 reported by Matthew Carpenter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kdepim (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have been attempting to use KJots for a few years. Each time I try it, I'll use it for a while, and things will look good. Books are correct (in Kolab and Locally), pages are correct, information is correct (with an occasional render bug).

Every so often (it's probably happened 3 or 4 times in the last few years), the data disappears.
I look in the .book file and the data is all there. KJots just refuses to show it.
I am not certain, but it's possible this is happening at a KDE/Ubuntu upgrade. I use it sporadically.

All I know is that the XML is there, and KJots ignores it.

One such .book file starts out like this:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE KJots>
<KJots>
 <KJotsBook>
  <Title>tool1</Title>
  <ID>34</ID>
  <Open>1</Open>
  <KJotsPage>
   <Title>project stuff</Title>
   <ID>33</ID>
   <Text><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:7pt; font-weight:400; font-style:normal;">
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>]]></Text>
  </KJotsPage>
...
</KJots>

The XML looks valid. What gives? Is there some internal caching that goes on? I currently can create new books and pages, but the old information doesn't show up.

$ lsb_release -rd
Description: Ubuntu 12.10
Release: 12.10
$ apt-cache policy kjots
kjots:
  Installed: 4:4.9.5-0ubuntu0.1
  Candidate: 4:4.9.5-0ubuntu0.1
  Version table:
 *** 4:4.9.5-0ubuntu0.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ quantal-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     4:4.9.2-0ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

Looking at entries that show up and that don't (on the Kolab server), the following appear to be the biggest differences:

Doesn't work:
 <product-id>KNotes 1.7.2, Kolab resource</product-id>
Works:
 <product-id>KNotes Libkolab-0.2.1, Kolab resource</product-id>

and it looks like the older ones don't have a urlencoded BODY.
Example: doesn't work:
 <body>$1040 - first hours and computer
+2.5hrs - 6/6
+1hr - 6/11</body>

Example: works:
 <body>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'Ubuntu'; font-size:7pt; font-weight:400; font-style:normal;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Daily, before 5pm:&lt;/p>
&lt;ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;">&lt;li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">School Room&lt;/li>
... blah blah...
</body>

Did I miss a migration routine? This leads me to believe that the break comes between versions. Are we not caring about backwards compatability??

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

Another tidbit to consider:

I connected to my groupware account on the IMAP server using Thunderbird (since I don't know how to tell Kontact *not* to hide the Kolab folders anymore). I then copied one entry (page) from one folder into the folder of another book. The entry showed up fine in the new folder. I am *very* confused.

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

Ok, "fine" is a little premature.

---
If the BODY of the entry doesn't have the newer urlencoding (is that RTF?), it shows up fine (but the page, as it shows up in KJots/Kontact, doesn't have the "document" icon next to it).

$1040 - first hours and computer
+2.5hrs - 6/6
+1hr - 6/11

-----
If the BODY of the entry *does* have the newer urlencoding (is that RTF?), it doesn't interpret it, it just shows up in all it's ugliness.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:7pt; font-weight:400; font-style:normal;">
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">BarCodes:</p>

Obviously I've lost stuff from multiple versions.

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

Could it be the User-Agent: Libkolab-0.2.1 that is necessary?!?
I can't imagine that newer versions would be ignoring the older user agents, would they? That would be ludicrous.

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

Sorry, the same behavior exists on Kubuntu 13.10.

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

I wrote a tool in python using libxml2 which parses the older file formats and generates new books. That helps me in the local books. not so much in the kolab books. This is a mess. Thankfully, I made backups of my Kolab notes as local books so I should have most of my information.

Hopefully now I can use KJots a little bit longer, give it one more try.

PLEASE! If the developers are trying to kill KJots (breaking storage compatibility with the previous version without a migration path will do that), PLEASE let me know so I can use something else before the next upgrade. I'm a bit duller than most and keep trying to keep Kontact-centric PIM as a goal for my actual work.

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.