Tomdroid does not send the "create-data" field in JSON when web syncing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Tomdroid |
Fix Released
|
High
|
NoahY | ||
Beta |
Fix Released
|
High
|
NoahY |
Bug Description
When pushing changed notes to the websync server, tomboy serializes the Notes into JSON. However, as far as I can see in the sourcecode, the "create-data" element that is required by the syncing REST API (see https:/
I think the affected line is here: http://
(aournd line 374):
else { // changed note
Jnote.
Jnote.
Jnote.
Jnote.
}
The should be a lie similiar to setting "last-change-date", maybe sth like this (untested!):
Jnote.
Additionally, from what I can see, the also required field "last-metadata-
200010 [DEBUG] Rainy.WebServic
JSON Data received:
{
latest-
note-changes:
[
{
title: hgg,
note-content: ,
note-
guid: bf362e5c-
create-date: "0001-01-
last-
last-
last-
tags: []
}
],
test: 0
}
So, the fields are present (and I don't know why that is, I cant finde the source where it is set) but not initialized. This will cause tomboy to through an exception when syncing.
Changed in tomdroid: | |
milestone: | none → 0.7.3 |
Changed in tomdroid: | |
status: | Fix Committed → Fix Released |
Watch out, I made a typo. The missing field is "create-date"