Coder Social home page Coder Social logo

Comments (25)

konradrenner avatar konradrenner commented on June 11, 2024

is it reproduceable?

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

Yes, reproducible.
I noticed the following main differences in the XML:

Note by Roundcube: note version="3.0dev1"
Note by app: note version="3.0"

Note by Roundcube: in description's head section: meta name="qrichtext" content="1" /
Note by app: in description's head section: meta name="kolabnotes-richtext" content="1" /

obviously also the prodid differs:
Roundcube-libkolab-1.1 Libkolabxml-1.1
kolabnotes-android

I have not checked any IMAP related flags.

The "mail body" of Roundcube-created notes has no line breaks (all text in a single line) when viewing from Thunderbird while there are 4 lines in notes created by the app. Maybe a problem with special characters?

from kolabnotes-android.

konradrenner avatar konradrenner commented on June 11, 2024

maybe special characters, can you send me the kolab.xml file? do you have the problem with any note you create with the app?

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

This happens also when editing an existing note. Steps:

  1. create a note in Roundcube
  2. note shows up in Roundcube and (after sync) in the app
  3. edit the note with the app
  4. after sync the note is invisible in Roundcube, but visible via IMAP (i.e. Thunderbird)

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

I played around a bit with the HeaderTools Lite Addon for Thunderbird which allows viewing and complete editing of stored IMAP objects.

When copying the content of a visible note into the defective one and only changing the subject back to the defective note's subject, the defective note shows up in Roundcube.
Since there are a lot of differences in the header, multipart encoding and things like line breaks in the stored Kolab XML, I didn't manage to track the issue down to a certain header field or whatever, but a systematic walkthrough should give a result.
At least we can say it's apparently not an issue of some obscure IMAP flags.

from kolabnotes-android.

konradrenner avatar konradrenner commented on June 11, 2024

In the subject, there must be the uid of the note. Is the UID of a defect note, in the subject and in the XML file the same or different?

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

Mail subject and uid in the XML are identical on a defective note.
During playing around, when an edited defective note was visible in Roundcube, that note consisted of the full content and header data of a correct note, but it's subject was the one from the defective note.
So in the case when it showed up, the UIDs actually were not identifical between subject and XML.

from kolabnotes-android.

konradrenner avatar konradrenner commented on June 11, 2024

please test the fourth preview, i have made some changes in the sync algorithmus. I cannot reproduce this problem :-(

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

No change for me with the fourth preview.
New notes from the app are still visible in Thunderbird, but not in Roundcube

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

Btw. when I look into Roundcube's Settings -> Folders it say 15 messages in the notes folder. 15 messages is also what I see from Thunderbird. Still I only see 9 notes...

from kolabnotes-android.

konradrenner avatar konradrenner commented on June 11, 2024

This is so strange. I had not the time yet to set up a kolab server on my own. I use my KolabNow account for testing. Maybe notes are handled a little bit different in the Kolab version of KolabNow and on Kolab 3.3. Can you please ask a Kolab mailinglist, if there is a difference?

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

I'm just digging deep into Kolab's PHP code to track down where the 15 notes become 9.
If I get lost, I'll follow your advice ;-)

from kolabnotes-android.

konradrenner avatar konradrenner commented on June 11, 2024

Thank you very much, I must say, I have no idea what the problem could be... If you need information, how my sync library sets information, just contact me or look in the kolabnotes-java source ;-)

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

I kind of found it.
There's a cache table for each Kolab object within the Roundcube MySQL database.
The table "kolab_cache_note" holds only the 9 messages I see in Roundcube...

Now got to find out why the cache is not updated when IMAP storage is changed externally.
This is either a major bug in the Kolab main distribution or a configuration issue.

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

I filed an issue agains the Roundcubemail Kolab plugins in Kolab's Bugzilla:
https://issues.kolab.org/show_bug.cgi?id=5109

The problem even persists when I turn off Kolab caching in Roundcube's configuration.
Since I don't want to fiddle around with caching code on my production server, I'll leave that to the Kolab devs.
That is, if there is no option the app can force Kolab including Roundcube into a cache sync. But I don't see one atm.

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

@konradrenner Can you provide some info into the Kolab Bugzilla issue? That issue has been changed to NEEDINFO state.
Though you can't reproduce the issue, it might be a good idea to communicate directly with the guys over there, like in "syncing the data needs syncing the developers" ;-)

from kolabnotes-android.

konradrenner avatar konradrenner commented on June 11, 2024

@lhitc I don't have an account for the Kolab Bugzilla. Maybe you can ask in the issue, if there is a difference between KolabNow and your Kolab version in the notes handling? Can you turn on debug logs on your kolab server and then sync the app with the server, maybe there is some output?

from kolabnotes-android.

greve avatar greve commented on June 11, 2024

Works for me on Kolab Now, btw.

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

@greve Yes, the issue is definitely related to the kolab_notes plugin for Roundcube. Unfortunately, Roundcube is the default frontend of the distribution ...

from kolabnotes-android.

greve avatar greve commented on June 11, 2024

I know. But what I am saying is that when I use my Kolab Now account, and create a note on my Android, then sync against the server, I see the note in the Kolab Notes Web Application on Kolab Now.

from kolabnotes-android.

konradrenner avatar konradrenner commented on June 11, 2024

@lhitc have you added the question if there is an difference between Kolab Now Web UI and "standard Roundcube"?

from kolabnotes-android.

konradrenner avatar konradrenner commented on June 11, 2024

@lhitc I think this problem is handled in the issue you created, is it ok for you to close the issue here on GitHub?

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

@konradrenner If you mean the Kolab bugtracker issue https://issues.kolab.org/show_bug.cgi?id=5109 : we're not getting further over there.
They seem to expect some debug information but I have no idea how to provide it.

Basically it's Roundcube's cache that is not updating, but I don't know whether there is any API call to force that which might be added to the app (or whether there is a simple configuration issue in my installation).
I would be glad if you could talk to them directly...

from kolabnotes-android.

konradrenner avatar konradrenner commented on June 11, 2024

I have added a comment in the Kolab bugzilla issue. I think this issue should be handled there.

from kolabnotes-android.

lhitc avatar lhitc commented on June 11, 2024

The Kolab devs have now identified it as a bug in libkolab, so definitely no issue here.

from kolabnotes-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.