6.0.0-git
2019-03-20

[#12574] Synched Notes are not shown
Summary Synched Notes are not shown
Queue Synchronization
Queue Version Git master
Type Bug
State No Feedback
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester mtspam (at) tesira (dot) de
Created 2013-08-14 (2044 days ago)
Due
Updated 2013-09-13 (2014 days ago)
Assigned 2013-08-14 (2044 days ago)
Resolved 2013-09-13 (2014 days ago)
Milestone
Patch No

History
2013-09-13 18:56:17 Michael Rubinsky State ⇒ No Feedback
 
2013-08-19 14:55:07 Michael Rubinsky Comment #13 Reply to this comment
The only client I have available that syncs notes is the Android app, 
Touchdown - and this works properly. So, unless you can provide a 
wiretrace between Exchange and the iOS device that shows a difference 
in what we send, there's not much I can do about it at this point.
2013-08-19 12:40:55 mtspam (at) tesira (dot) de Comment #12 Reply to this comment
I tried it and you are right, it does not fix the issue, although it 
fixes the seeing the notes in horde as html code nicely, so I would 
ask you to consider it leaving like that. In that way, at least the 
notes get properly synched TO horde and you can read them there 
properly (because the html around it is gone). iPAD doesnt have any 
options to format text anyway, so I dont understand what makes the 
client sent you a html document in the first place.

Still exchange works, although I get a feeling that these two actually 
swap html notes back and forth, because although there is also no 
formating options in Outlook 2010 I just noticed that the visual font 
changed from Arial (created on the ipad) to Times New Roman (after 
coming back edited in Outlook).
I added code to detect and perform basic filtering for text2Html and 
Html2text. I doubt that was the problem, but the correct data and 
datatype should be sent in the responses now.

FWIW, the specs allow for sending plaintext when html was requested 
if that is all that is available, so if this was the issue, it's a 
client feature/bug.
2013-08-17 01:56:28 Michael Rubinsky Comment #11 Reply to this comment
I added code to detect and perform basic filtering for text2Html and 
Html2text. I doubt that was the problem, but the correct data and 
datatype should be sent in the responses now.

FWIW, the specs allow for sending plaintext when html was requested if 
that is all that is available, so if this was the issue, it's a client 
feature/bug.
2013-08-17 01:54:45 Git Commit Comment #10 Reply to this comment
Changes have been made in Git (master):

commit 40cec33d0bcea715326c6183fb743ee1c53cff06
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Fri Aug 16 21:47:11 2013 -0400

     Attempt to convert text <-> html when syncing notes via EAS.

     Someone will need to test the html client -> server, as none of my
     test clients support HTML notes on the client.

     Related to, but I doubt it fixes Bug: 12574

  mnemo/lib/Api.php    |    8 +++++++-
  mnemo/lib/Driver.php |   27 +++++++++++++++++++--------
  2 files changed, 26 insertions(+), 9 deletions(-)

http://git.horde.org/horde-git/-/commit/40cec33d0bcea715326c6183fb743ee1c53cff06
2013-08-16 15:06:48 Michael Rubinsky Comment #9 Reply to this comment
Seeing now buttons for stuff like bold etc. I would assume that 
hordes notes system can only handle plain text atm?
Correct.
Which I dont mind if the system would just give the html notes back 
as html, maybe then ipad stops ignoring it?
This still doesn't explain why it works the first time, the data is the same.
2013-08-16 06:13:25 mtspam (at) tesira (dot) de Comment #8 Reply to this comment
Though I did just notice that the body type requested in the in the 
second sync is '2' (which is HTML IIRC - don't have the code or 
specs handy) but Horde is sending a body type of 1 (plaintext). Not 
sure if that's the cause of the problem or not, or why it works on 
the first sync and not the second if it is....
It might be the cause of the problem. What I noticed is that when I 
open up a note in horde (created on the ipad) it is html coded, as it 
starts out with <html>. Seeing now buttons for stuff like bold etc. I 
would assume that hordes notes system can only handle plain text atm? 
Which I dont mind if the system would just give the html notes back as 
html, maybe then ipad stops ignoring it?


2013-08-15 14:50:21 Michael Rubinsky Comment #7 Reply to this comment
Though I did just notice that the body type requested in the in the 
second sync is '2' (which is HTML IIRC - don't have the code or specs 
handy) but Horde is sending a body type of 1 (plaintext). Not sure if 
that's the cause of the problem or not, or why it works on the first 
sync and not the second if it is....
2013-08-15 14:48:28 Michael Rubinsky Comment #6 Reply to this comment
Still, Exchange 2010 seems to do something different, because if I 
do the same stuff there, I get back all my notes after reenabling. 
So there seems to be a way from the server end to make it work.
Then I would need to see a wireshark trace of what Exchange is sending 
that is different. From what I can see, the data we are sending is per 
the spec.
2013-08-15 14:38:02 mtspam (at) tesira (dot) de Comment #5 Reply to this comment
Still, Exchange 2010 seems to do something different, because if I do 
the same stuff there, I get back all my notes after reenabling. So 
there seems to be a way from the server end to make it work.

[Show Quoted Text - 157 lines]
2013-08-15 14:31:00 Michael Rubinsky Comment #4
Assigned to Michael Rubinsky
Reply to this comment
Looks like everything should be working. If your client is not 
displaying the notes after re-enabling the collection, the client is 
broken:

2013-08-15T06:31:44+00:00 DEBUG: [17429] I  <Synchronize>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I   <Folders>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I    <Folder>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I     <SyncKey>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I       0
2013-08-15T06:31:44+00:00 DEBUG: [17429] I     </SyncKey>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I     <FolderId>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I       @Notes@
2013-08-15T06:31:44+00:00 DEBUG: [17429] I     </FolderId>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I     <Options>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I      <AirSyncBase:BodyPreference>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I       <AirSyncBase:Type>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I         2
2013-08-15T06:31:44+00:00 DEBUG: [17429] I       </AirSyncBase:Type>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I       <AirSyncBase:TruncationSize>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I         32768
2013-08-15T06:31:44+00:00 DEBUG: [17429] I       </AirSyncBase:TruncationSize>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I      </AirSyncBase:BodyPreference>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I     </Options>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I    </Folder>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I   </Folders>
2013-08-15T06:31:44+00:00 DEBUG: [17429] I  </Synchronize>


2013-08-15T06:31:44+00:00 DEBUG: [17429] O  <Synchronize>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O   <Status>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O    1
2013-08-15T06:31:44+00:00 DEBUG: [17429] O   </Status>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O   <Folders>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O    <Folder>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O     <SyncKey>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O       
{520c75d0-d508-40e8-bcc1-4415d5efc6b2}1
2013-08-15T06:31:44+00:00 DEBUG: [17429] O     </SyncKey>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O     <FolderId>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O      @Notes@
2013-08-15T06:31:44+00:00 DEBUG: [17429] O     </FolderId>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O     <Status>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O      1
2013-08-15T06:31:44+00:00 DEBUG: [17429] O     </Status>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O    </Folder>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O   </Folders>
2013-08-15T06:31:44+00:00 DEBUG: [17429] O  </Synchronize>


2013-08-15T06:31:44+00:00 DEBUG: [2708] I  <Synchronize>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I   <Folders>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I    <Folder>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I     <SyncKey>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I       
{520c75d0-d508-40e8-bcc1-4415d5efc6b2}1
2013-08-15T06:31:44+00:00 DEBUG: [2708] I     </SyncKey>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I     <FolderId>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I       @Notes@
2013-08-15T06:31:44+00:00 DEBUG: [2708] I     </FolderId>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I     <GetChanges />
2013-08-15T06:31:44+00:00 DEBUG: [2708] I     <WindowSize>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I       25
2013-08-15T06:31:44+00:00 DEBUG: [2708] I     </WindowSize>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I     <Options>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I      <AirSyncBase:BodyPreference>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I       <AirSyncBase:Type>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I         2
2013-08-15T06:31:44+00:00 DEBUG: [2708] I       </AirSyncBase:Type>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I       <AirSyncBase:TruncationSize>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I         32768
2013-08-15T06:31:44+00:00 DEBUG: [2708] I       </AirSyncBase:TruncationSize>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I      </AirSyncBase:BodyPreference>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I     </Options>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I    </Folder>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I   </Folders>
2013-08-15T06:31:44+00:00 DEBUG: [2708] I  </Synchronize>


2013-08-15T06:31:44+00:00 DEBUG: [2708] O  <Synchronize>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O   <Status>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O    1
2013-08-15T06:31:44+00:00 DEBUG: [2708] O   </Status>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O   <Folders>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O    <Folder>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O     <SyncKey>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       
{520c75d0-d508-40e8-bcc1-4415d5efc6b2}2
2013-08-15T06:31:44+00:00 DEBUG: [2708] O     </SyncKey>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O     <FolderId>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O      @Notes@
2013-08-15T06:31:44+00:00 DEBUG: [2708] O     </FolderId>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O     <Status>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O      1
2013-08-15T06:31:44+00:00 DEBUG: [2708] O     </Status>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O     <Commands>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O      <Add>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       <ServerEntryId>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         
520c753e-c46c-4fa8-bc96-0a94d5efc6b2
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       </ServerEntryId>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       <Data>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        <AirSyncBase:Body>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         <AirSyncBase:Type>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O          1
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         </AirSyncBase:Type>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        </AirSyncBase:Body>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        <Notes:LastModifiedDate>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         20130815T062918Z
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        </Notes:LastModifiedDate>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        <Notes:Subject>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         test 01
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        </Notes:Subject>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       </Data>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O      </Add>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O      <Add>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       <ServerEntryId>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         
520c75bb-d030-459e-809b-0a94d5efc6b2
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       </ServerEntryId>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       <Data>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        <AirSyncBase:Body>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         <AirSyncBase:Type>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O          1
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         </AirSyncBase:Type>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        </AirSyncBase:Body>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        <Notes:LastModifiedDate>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         20130815T063123Z
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        </Notes:LastModifiedDate>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        <Notes:Subject>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         test2 from ipad
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        </Notes:Subject>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       </Data>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O      </Add>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O      <Add>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       <ServerEntryId>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         
520c75b2-d0c8-4486-9aad-4415d5efc6b2
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       </ServerEntryId>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       <Data>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        <AirSyncBase:Body>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         <AirSyncBase:Type>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O          1
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         </AirSyncBase:Type>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        </AirSyncBase:Body>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        <Notes:LastModifiedDate>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         20130815T063114Z
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        </Notes:LastModifiedDate>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        <Notes:Subject>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O         test from ipad
2013-08-15T06:31:44+00:00 DEBUG: [2708] O        </Notes:Subject>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O       </Data>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O      </Add>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O     </Commands>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O    </Folder>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O   </Folders>
2013-08-15T06:31:44+00:00 DEBUG: [2708] O  </Synchronize>
2013-08-15 06:38:19 mtspam (at) tesira (dot) de Comment #3
New Attachment: ASlog.txt Download
Reply to this comment
This sounds like the client is not sending a synckey of 0 when the 
notes collection is re-enabled. Would need to see the sync log.
Here you go. Made a fresh user, created some notes on both ends. 
Disabled and reenabled.
2013-08-14 14:54:50 Michael Rubinsky State ⇒ Feedback
Priority ⇒ 1. Low
Version ⇒ Git master
 
2013-08-14 14:53:59 Michael Rubinsky Comment #2 Reply to this comment
This sounds like the client is not sending a synckey of 0 when the 
notes collection is re-enabled. Would need to see the sync log.
2013-08-14 14:28:26 mtspam (at) tesira (dot) de Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ Synched Notes are not shown
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
Reply to this comment
iOS 7 (beta) has can now synch Notes as well. This works as expected 
with Exchange, but Horde shows the following:

You can enable and use it fine, new notes get synched to horde and 
show up in the mnemo_memos database and even on the webinterface of 
horde.
Now if you dissable Notes synching on the iPad the local copies get 
deleted as intented, but after reenabling the synch on the iPad the 
entries in the horde database do NOT get synched back to the device.
Entering a new one on the ipad works fine though, but you only see the 
new one, not the old ones.
If I create a new note on the horde web UI it doesnt get synched to 
the iPAD as well., so atm it seems like synching of notes is a one way 
street from the ActiveSynch device back to Horde only.

I also tried version 2.6.1 by direct pear update, but the behaviour is 
the same.



Saved Queries