After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 670217 - Doesn't show all calendar events
Doesn't show all calendar events
Status: RESOLVED FIXED
Product: evolution-ews
Classification: Other
Component: Calendar
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Evolution EWS maintainer(s)
Evolution EWS maintainer(s)
: 668425 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-02-16 13:42 UTC by july
Modified: 2012-04-02 10:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed ews patch (21.38 KB, patch)
2012-03-30 12:08 UTC, Milan Crha
committed Details | Review

Description july 2012-02-16 13:42:45 UTC
Cannot view entry in the exchange calendar
Cannot make entry too


something strange, which is suspicious:

if i start manually /usr/lib/evolution-data-server/evolution-calendar-factory with the EWS_DEBUG environment variable i am able to see vcard format entries..

also when starting it manually :

/usr/lib/evolution-data-server/evolution-calendar-factory -r
EDataFactory is now online.
Registering ECalBackendContactsEventsFactory ('contacts:VEVENT')
Registering ECalBackendEwsEventsFactory ('ews:VEVENT')
Registering ECalBackendEwsJournalFactory ('ews:VJOURNAL')
Registering ECalBackendEwsTodosFactory ('ews:VTODO')
Registering ECalBackendWeatherEventsFactory ('weather:VEVENT')
Registering ECalBackendCalDAVEventsFactory ('caldav:VEVENT')
Registering ECalBackendCalDAVJournalFactory ('caldav:VJOURNAL')
Registering ECalBackendCalDAVTodosFactory ('caldav:VTODO')
Registering ECalBackendFileEventsFactory ('local:VEVENT')
Registering ECalBackendFileJournalFactory ('local:VJOURNAL')
Registering ECalBackendFileTodosFactory ('local:VTODO')
Registering ECalBackendHttpEventsFactory ('webcal:VEVENT')
Registering ECalBackendHttpJournalFactory ('webcal:VJOURNAL')
Registering ECalBackendHttpTodosFactory ('webcal:VTODO')
Server is up and running...
Bus name 'org.gnome.evolution.dataserver.Calendar1' acquired.


i see org.gnome.evolution.dataserver.Calendar1


but, when trying to debug, why evolution doesn't see the calendar i saw:
calendar-gui-WARNING **: gnome-cal.c:1143: Could not create the view: No such interface `org.gnome.evolution.dataserver.Calendar' on object at path /org/gnome/evolution/dataserver/Calendar/28705/3 


How can i help :?) (ok it seems that the msg, for which update_query_async is called has msg->gcal just Calendar...
Comment 1 july 2012-02-17 07:28:48 UTC
Also when i try to add entry to the exchange calendar, after clicking save, nothing happens...

in the terminal the corresponding error is:

libecal-WARNING **: Cannot retrieve backend property: Unknown calendar property 'cache-dir'

probably the nexts:
GLib-GIO-CRITICAL **: g_file_new_for_path: assertion `path != NULL' failed

e-attachment-store.c-CRITICAL **: e_attachment_store_save_async: assertion `G_IS_FILE (destination)' failed

GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed


are just related to the first....
Comment 2 july 2012-02-17 11:59:32 UTC
creating calendar entries now seem to work after

git show 8039cdb740526ab977e151a82b7b9ce9f9fcb667
commit 8039cdb740526ab977e151a82b7b9ce9f9fcb667
Author: Punit Jain <jpunit@novell.com>
Date:   Fri Feb 17 16:20:23 2012 +0530

    Bug #668174 unable to create appointments and meetings

diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 67afd8e..48e3c7e 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -3553,7 +3553,7 @@ e_cal_backend_ews_get_backend_property    (ECalBackend *backend,
                prop_value = e_cal_component_get_as_string (comp);
                g_object_unref (comp);
        } else {
-               e_data_cal_respond_get_backend_property (cal, opid, e_data_cal_create_error_fmt (NotSupported, _("Unknown calendar property '%s'"), prop_name), 
+               E_CAL_BACKEND_CLASS (parent_class)->get_backend_property (backend, cal, opid, cancellable, prop_name);
                return;
        }


Thanks Punit Jain
Comment 3 Akhil Laddha 2012-02-21 07:16:49 UTC
are you not able to see old events ? this might be bug 668425
Comment 4 july 2012-02-21 12:31:26 UTC
10x

The bug 668425 seems related, but..

Not only can i view the old calendar items, also i am not able to view the new, if they are not filled via evolution
Comment 5 Punit Jain 2012-03-02 09:35:36 UTC
Could you please try to remove cache and enable and disable the account. Start again.
Btw It works well for me. I am able to see all events created or evolution or outlook.
Thanks!
Comment 6 july 2012-03-02 13:32:02 UTC
usually when i have troubles, first to try is to create new user account and to run evolution as this completely new user..

anyway just tried:
1. account disabled
2. evolution exited
3. killed all leftovers (for example /usr/lib/evolution-data-server/evolution-calendar-factory)
4. /.cache/evolution$ rm -rf ./*
5. evolution started
6. account enabled
stay in mail and wait for sync (e.g. refreshing to complete)
7. star, stop, refresh etc...

but no calendar entries ....

after purging cache in the ews calendar folder, folder with long pseudo random name   is created and in there is just keys.xml . NO calendar.ics (as in the google calendar, which has issues too, but it is not part of this bug)


i then tried to kill /usr/lib/evolution-data-server/evolution-calendar-factory

and when tried to view calendar in evolution i noticed:
calendar-gui-WARNING **: gnome-cal.c:1149: Could not create the view: No such interface `org.gnome.evolution.dataserver.Calendar


then tried to launch /usr/lib/evolution-data-server/evolution-calendar-factory manually

/usr/lib/evolution-data-server/evolution-calendar-factory -r
EDataFactory is now online.
Registering ECalBackendContactsEventsFactory ('contacts:VEVENT')
Registering ECalBackendEwsEventsFactory ('ews:VEVENT')
Registering ECalBackendEwsJournalFactory ('ews:VJOURNAL')
Registering ECalBackendEwsTodosFactory ('ews:VTODO')
Registering ECalBackendWeatherEventsFactory ('weather:VEVENT')
Registering ECalBackendCalDAVEventsFactory ('caldav:VEVENT')
Registering ECalBackendCalDAVJournalFactory ('caldav:VJOURNAL')
Registering ECalBackendCalDAVTodosFactory ('caldav:VTODO')
Registering ECalBackendFileEventsFactory ('local:VEVENT')
Registering ECalBackendFileJournalFactory ('local:VJOURNAL')
Registering ECalBackendFileTodosFactory ('local:VTODO')
Registering ECalBackendHttpEventsFactory ('webcal:VEVENT')
Registering ECalBackendHttpJournalFactory ('webcal:VJOURNAL')
Registering ECalBackendHttpTodosFactory ('webcal:VTODO')
Server is up and running...
Bus name 'org.gnome.evolution.dataserver.Calendar1' acquired.



still when trying to view calendar in evolution:

calendar-gui-WARNING **: gnome-cal.c:1149: Could not create the view: No such interface `org.gnome.evolution.dataserver.Calendar'



then tried, to restart evolution (leaving calendar-factory running)
still no calendar, but /usr/lib/evolution-data-server/evolution-calendar-factory produced following:

** WARNING **: Unable to get items The property has an invalid value. 


** WARNING **: Unable to get items The property has an invalid value. 



still no calendar.ics in the ews calendar folder
Comment 7 Milan Crha 2012-03-30 12:08:10 UTC
Created attachment 210948 [details] [review]
proposed ews patch

for evolution-ews;

Could you try with this patch, please? For me the reason was that some items from get_items request were returning error, and the ews code stopped on first of them, even the next item was successfully sent from the server.

After a little chat with David Woodhouse we decided to do it in this way (we didn't discuss actual implementation, only what it should roughly be). I guess the above mentioned bug is about the same, or very similar issue. Also note that there is checked for two errors, but I saw more of them, like:
    <m:GetItemResponseMessage ResponseClass="Error">
       <m:MessageText>The property has an invalid value.</m:MessageText>
       <m:ResponseCode>ErrorCalendarInvalidPropertyValue</m:ResponseCode>
       <m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
       <m:MessageXml>
         <t:FieldURI FieldURI="calendar:UID"/>
       </m:MessageXml>
       <m:Items/>
     </m:GetItemResponseMessage>
and
     <m:GetItemResponseMessage ResponseClass="Error">
       <m:MessageText>The recurrence format was invalid.</m:MessageText>
       <m:ResponseCode>ErrorInvalidOperation</m:ResponseCode>
       <m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
       <m:Items/>
     </m:GetItemResponseMessage>
still, the surrounding items were fetched successfully.
Comment 8 july 2012-03-31 11:09:15 UTC
The proposed patch helps:)

I am now able to create (via evolution) calendar items. Also i am able to see newly created via owa ....

However, i think there is bug with encoding. If i use Cyrillic, then:
1. Create in evolution calendar entry (with cyrillic chars) 
2. Save it. Everything seems ok in evolution
3. In owa every cyrillic chars is converted to 2 question-marks "??"
4. Also if i refresh the calendar in evolution, the cyrillic chars are converted to "?" too...
5. If i create in owa entry with cyrillic chars, and refresh in evolution it appears ok.
Comment 9 Milan Crha 2012-04-02 09:27:43 UTC
(In reply to comment #8)
> The proposed patch helps:)
> 
> I am now able to create (via evolution) calendar items. Also i am able to see
> newly created via owa ....

Thanks for testing this. I'll commit the patch to sources.

> However, i think there is bug with encoding. If i use Cyrillic, then:
> 1. Create in evolution calendar entry (with cyrillic chars) 
> 2. Save it. Everything seems ok in evolution
> 3. In owa every cyrillic chars is converted to 2 question-marks "??"
> 4. Also if i refresh the calendar in evolution, the cyrillic chars are
> converted to "?" too...
> 5. If i create in owa entry with cyrillic chars, and refresh in evolution it
> appears ok.

Could you open a new bug report for the above issue, please? I'll be better to deal with it separately. Thanks in advance.
Comment 10 Milan Crha 2012-04-02 10:54:41 UTC
Created commit d768776 in ews master (3.5.1+)
Created commit 3a784bd in ews gnome-3-4 (3.4.1+)
Comment 11 july 2012-04-02 10:57:00 UTC
10x, i will post here the new bug url:
https://bugzilla.gnome.org/show_bug.cgi?id=673349

as usual if i can help somehow, just let me know (compiling with enabled debuging, then gdb, strace etc... will be doable by me)
Comment 12 Milan Crha 2012-04-02 10:57:52 UTC
*** Bug 668425 has been marked as a duplicate of this bug. ***