Cannot accept invitations from a google account (special chars like @google.com in event UID get encoded twice)
Categories
(Calendar :: E-mail based Scheduling (iTIP/iMIP), defect)
Tracking
(Not tracked)
People
(Reporter: konrad.hammerer, Unassigned, Mentored)
References
Details
Attachments
(1 file)
|
582 bytes,
patch
|
Details | Diff | Splinter Review |
Updated•6 years ago
|
Comment 1•6 years ago
|
||
When clicking on "Accept", Thunderbird/Lightning properly sends a PUT request. Then, it calls a REPORT query (to verify that the creation was sucessful?).
But some event UID might contain special characters. In this case, those characters should be encoded. The bug is here: special characters are encoded twice. This results in an incorrect REPORT query
For example, the following UID:
0qde444fc40n1to5j1j6tsee2l@google.com
should be encoded into:
0qde444fc40n1to5j1j6tsee2l%40google.com
But the actual UID to be searched in the REPORT query is:
0qde444fc40n1to5j1j6tsee2l%2540google.com
Note that the "percent" symbol was encoded into %25.
After digging for long, I managed to fix this, by modifying the getItemLocationPath function in calDavCalendar.js:574:
574c574
< return this.mItemInfoCache[aItem.id].locationPath;
---
> return this.ensureDecodedPath(this.mItemInfoCache[aItem.id].locationPath);
It's good to hear to you were able to finally find the root cause for this issue. Let me know in which version the fix will be available...
Thanks
Konrad
Comment 3•6 years ago
|
||
Sorry, but I don't know how to push my change to master development branches. (I don't even know where they are...)
Can someone review this change and commit it to source?
Comment 4•5 years ago
|
||
Comment 5•5 years ago
•
|
||
(In reply to Ruliane from comment #3)
Sorry, but I don't know how to push my change to master development branches. (I don't even know where they are...)
Can someone review this change and commit it to source?
Hi Ruliane, we are very sorry for not having noticed your question from 3 weeks back. It's easy to overlook things between tons of bugmail. The best way of ensuring someone's attention is using needinfo checkbox below comment input: [ ] Request information from... and then you pick a person by their name or nick, e.g. :martinschroeder who updated this bug between comment 0 and comment 1, or Philipp aka :fallen whom you correctly chose as a reviewer.
Next step: Let's make your patch apply (see my next comments).
Comment 6•5 years ago
|
||
Comment on attachment 9189682 [details] [diff] [review]
1439215.patch
Let's make sure that this patch has a correct header and applies to Trunk before getting reviews, to avoid extra hassles for the reviewer.
Comment 7•5 years ago
|
||
Assigning to Ruliane who provided her first patch attachment 9189682 [details] [diff] [review] in comment 4.
Comment 8•5 years ago
•
|
||
(In reply to Ruliane from comment #3)
Sorry, but I don't know how to push my change to master development branches. (I don't even know where they are...)
Thank you very much for digging into the code in order to fix this problem! You rock!
If you want, the next step is to make your patch apply to the master development branch aka "Trunk".
- Find more information here (including how to build TB if you so wish): https://www.thunderbird.net/en-US/get-involved/#development
- Master dev branch lives here: https://hg.mozilla.org/comm-central
- Search (almost) current trunk code here: https://searchfox.org/comm-central/search?q=CalDavCalendar.jsm (file was renamed)
- For simple local testing, use the "Thunderbird Daily" release channel [1]. In TB Daily program folder, rename omni.ja to omni.zip and unpack into same folder, edit flat source files, restart Daily to test your changes (works for all .js(m) and .xhtml files).
- A simple way on Windows to create patches without building:
- install TortoiseHg: https://tortoisehg.bitbucket.io/
File > Clone Repository> Source: https://hg.mozilla.org/comm-central, Target (your choice, e.g.): C:\mozhg\comm-central > Clone
hg clone --verbose https://hg.mozilla.org/comm-central "C:\mozhg\comm-central"View > Commit, then fromCommit | vbutton dropdown, chooseCreate new patch(usingView > Show patch queueis convenient)- Apply changes to source of your cloned repository,
qrefresh | v, clickOptionsbutton nearCommit | vbutton to "Set username" to yourself (Display Name <email>). Ideally, 8 lines of patch context.
[1]http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central/
Comment 9•5 years ago
•
|
||
Comment 10•5 years ago
|
||
(In reply to Thomas D. (:thomas8) from comment #9)
Let me know if there are any questions, and if you're willing to try and
update your patch according to the example provided above.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•4 years ago
|
Updated•3 years ago
|
Description
•