Mailing List Archive

DAViCal does not REPORT events with UID containing special characters
Hi list,

I run into an issue with DAViCal + Thunderbird, which is probably the
same as issue 37 on GitLab [1].


In a normal scenario, when I receive an invitation in Thunderbird I can
click "Accept", Thunderbird pushes the event to DAViCal then, *if
successful*, sends an a answer back to the organizer.

The Apache log says:
"PUT /caldav.php/ruliane/cal/6oqm4php74agoogle.com.ics HTTP/1.1" 201
davical: DBG: REPORT:method handler
davical: DBG: REPORT:Reporting on href
"/ruliane/cal/6oqm4php74agoogle.com.ics"
davical: LOG: REPORT: Query: DBGQ: Took: 0,004242 to find 1 rows.
davical: DBG: REPORT:Building XML Response for item
'/ruliane/cal/6oqm4php74agoogle.com.ics'
"REPORT /caldav.php/ruliane/cal/ HTTP/1.1" 207

Note that the REPORT finds the row added by the PUT request.


However, some UID might contains some special characters. Here is what
happens:
"PUT /caldav.php/ruliane/cal/6oqm4php74%40google.com.ics HTTP/1.1" 201
davical: DBG: REPORT:method handler
davical: DBG: REPORT:Reporting on href
"/ruliane/cal/6oqm4php74%40google.com.ics"
davical: DBG: REPORT:Reporting on href
"/ruliane/cal/6oqm4php74%40google.com.ics"
davical: LOG: REPORT: Query: DBGQ: Took: 0,004086 to find 0 rows.
"REPORT /caldav.php/ruliane/cal/ HTTP/1.1" 207

In that scenario, the PUT request successes but the REPORT request
returns no result. Consequently, Thunderbird does not send out any
answer to the organizer, and the event does not appears in my calendar
until next refresh.


This bug is very annoying since Google uses an arobase in event UID
(which is the recommended way to generate UIDs).

Any idea to solve this problem?

Regards,
Julien

[1] https://gitlab.com/davical-project/davical/-/issues/37


_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general
Re: DAViCal does not REPORT events with UID containing special characters [ In reply to ]
Hi,

I finally discovered that the issue is in Thunderbird/Lightning, not
DAViCal.

An bug was opened 3 years ago [1], I just added a fix.

Regards,
Julien

Le 25/05/2020 à 11:13, Julien Métairie via Davical-general a écrit :
> Hi list,
>
> I run into an issue with DAViCal + Thunderbird, which is probably the
> same as issue 37 on GitLab [1].
>
>
> In a normal scenario, when I receive an invitation in Thunderbird I can
> click "Accept", Thunderbird pushes the event to DAViCal then, *if
> successful*, sends an a answer back to the organizer.
>
> The Apache log says:
> "PUT /caldav.php/ruliane/cal/6oqm4php74agoogle.com.ics HTTP/1.1" 201
> davical: DBG: REPORT:method handler
> davical: DBG: REPORT:Reporting on href
> "/ruliane/cal/6oqm4php74agoogle.com.ics"
> davical: LOG: REPORT: Query: DBGQ: Took: 0,004242 to find 1 rows.
> davical: DBG: REPORT:Building XML Response for item
> '/ruliane/cal/6oqm4php74agoogle.com.ics'
> "REPORT /caldav.php/ruliane/cal/ HTTP/1.1" 207
>
> Note that the REPORT finds the row added by the PUT request.
>
>
> However, some UID might contains some special characters. Here is what
> happens:
> "PUT /caldav.php/ruliane/cal/6oqm4php74%40google.com.ics HTTP/1.1" 201
> davical: DBG: REPORT:method handler
> davical: DBG: REPORT:Reporting on href
> "/ruliane/cal/6oqm4php74%40google.com.ics"
> davical: DBG: REPORT:Reporting on href
> "/ruliane/cal/6oqm4php74%40google.com.ics"
> davical: LOG: REPORT: Query: DBGQ: Took: 0,004086 to find 0 rows.
> "REPORT /caldav.php/ruliane/cal/ HTTP/1.1" 207
>
> In that scenario, the PUT request successes but the REPORT request
> returns no result. Consequently, Thunderbird does not send out any
> answer to the organizer, and the event does not appears in my calendar
> until next refresh.
>
>
> This bug is very annoying since Google uses an arobase in event UID
> (which is the recommended way to generate UIDs).
>
> Any idea to solve this problem?
>
> Regards,
> Julien
>
> [1] https://gitlab.com/davical-project/davical/-/issues/37
>
>
> _______________________________________________
> Davical-general mailing list
> Davical-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/davical-general


_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general
Re: DAViCal does not REPORT events with UID containing special characters [ In reply to ]
On Sun, 2020-11-01 at 08:57 +0100, Julien Métairie via Davical-general
wrote:
> Hi,
>
> I finally discovered that the issue is in Thunderbird
> /Lightning, not
> DAViCal.
>
> An bug was opened 3 years ago [1], I just added a fix.

Nice find! Unfortunately your footnote is missing. :(

--
Andrew Ruthven, Wellington, New Zealand
andrew@etc.gen.nz |
Catalyst Cloud: | This space intentionally left blank
https://catalystcloud.nz |



_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general
Re: DAViCal does not REPORT events with UID containing special characters [ In reply to ]
Hi,

My bad, I probably forgot to paste the link. Here it is:
https://bugzilla.mozilla.org/show_bug.cgi?id=1439215

If someone here know how to push my change, feel free to do it. ;)

Regards,
Julien

Le 24/11/2020 à 12:26, Andrew Ruthven a écrit :
> On Sun, 2020-11-01 at 08:57 +0100, Julien Métairie via Davical-general
> wrote:
>> Hi,
>>
>> I finally discovered that the issue is in Thunderbird
>> /Lightning, not
>> DAViCal.
>>
>> An bug was opened 3 years ago [1], I just added a fix.
>
> Nice find! Unfortunately your footnote is missing. :(
>


_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general
Re: DAViCal does not REPORT events with UID containing special characters [ In reply to ]
Hey Julien,

On Tue, 2020-11-24 at 12:42 +0100, Julien Métairie via Davical-general
wrote:
> Hi,
>
> My bad, I probably forgot to paste the link. Here it is:
> https://bugzilla.mozilla.org/show_bug.cgi?id=1439215

Nice. Such a silly bug, and a simply fix.

> If someone here know how to push my change, feel free to do it. ;)

You need to set the review tag and nominate someone, the process for
Mozilla is here: https://wiki.mozilla.org/Bugzilla:Review

Cheers,
Andrew


--
Andrew Ruthven, Wellington, New Zealand
andrew@etc.gen.nz              |
Catalyst Cloud:  | This space intentionally left blank
https://catalystcloud.nz |



_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general