Ticket #557 (closed defect: fixed)
Todo: Schemas validity error : Element 'Priority'
| Reported by: | Graham Cobb | Owned by: | cstender |
|---|---|---|---|
| Priority: | normal | Milestone: | Plugin Format: vformat 0.40 |
| Component: | Format Plugin: vformat | Version: | 0.32 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I have ported the GPE plugin to trunk. While testing with todos (which I do not use personally) I get the following error reported on the console (but not in any trace file):
element Priority: Schemas validity error : Element 'Priority': This element is not expected. Expected is ( DateStarted ).
I do not know what is logging the error although I am sure it is not the GPE code. I am guessing it is in the vformat plugin. It occurs just before:
Received a entry gpe-todo-1 from member 2 (gpe-sync). Changetype ADDED
The entry in question is a vtodo20 item:
BEGIN:VCALENDAR PRODID:-//GNOME//NONSGML MIME Directory Library 0.4.2//EN VERSION:2.0 BEGIN:VTODO PRIORITY:5 SUMMARY:Test todo UID:1189005797.14165@nokia.home.cobb.me.uk DTSTAMP:20070905T152916Z END:VTODO END:VCALENDAR
I believe this is valid. It does get correctly copied to the file-sync file despite the error message.
Change History
comment:2 Changed 4 years ago by Graham Cobb
I do not know what xml dumps you are talking about. gpe-sync only uses vformat objects -- it never handles any xml format data.
I can reproduce the problem just using file-sync. If I set up a group with two file-sync members, configure them both with <objtype>todo</objtype> <objformat>vtodo20</objformat> and try to sync a file containing:
BEGIN:VCALENDAR PRODID:-//GNOME//NONSGML MIME Directory Library 0.4.2//EN VERSION:2.0 BEGIN:VTODO PRIORITY:5 STATUS:COMPLETED SUMMARY:Test 1 COMPLETED:20070905T213818Z UID:1189024777.14358@nokia.home.cobb.me.uk DTSTAMP:20070905T213818Z END:VTODO END:VCALENDAR
I see the same error.
comment:3 Changed 4 years ago by cstender
- Status changed from new to closed
- Resolution set to fixed
Oh - I thought you are using xmlformat-todo instead of vtodo20. The error you get is a xml validation warning. This happen when vformat converts your vtodo20 into xmlformat-todo and run a validation check. This is fixed now. Thanks.

Do you sent xml dumps in alphabetical order? If not this will throw errors like this. Can you please attach a xmldump from gpe-sync?
Thanks