etesync / etesync-web

An EteSync web client
https://www.etesync.com
GNU Affero General Public License v3.0
245 stars 29 forks source link

Bug: Importing .ics file caused calendar to break #182

Open maddievee22 opened 3 years ago

maddievee22 commented 3 years ago

On the main calendar screen, after importing a .ics an error shows instead of a calendar.

Something went wrong!

Could not extract integer from "--"

strictParseInt@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:9978
ICAL.Time.fromDateTimeString@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:57385
decorate@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:14586
_decorate@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:34033
_hydrateValue@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:33928
getValues@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:35125
_extractDates@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:83978
_init@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:84764
fromData@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:82457
n@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:82119
iterator@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:87663
value/<@https://pim.etesync.com/static/js/main.22f3c6ae.chunk.js:1:196117
value@https://pim.etesync.com/static/js/main.22f3c6ae.chunk.js:1:196055
Fa@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1522292
Ra@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1522085
gs@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1557996
uc@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1549213
sc@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1549136
$s@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1546145
Ji/<@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1497530
t.unstable_runWithPriority@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1573111
Yi@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1497239
Ji@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1497477
Gi@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1497410
Ws@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1542927
pa@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1514647
e/<@https://pim.etesync.com/static/js/main.22f3c6ae.chunk.js:1:212689
u@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1577986
c/o._invoke</<@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1577740
v/</<@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:1578345
r@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:8712
s@https://pim.etesync.com/static/js/2.40ad58e3.chunk.js:2:8916

The .ics file (Names of events redacted) is attached. Events.zip

tasn commented 3 years ago

Thanks for the report! It seems to be a bug with one of the libraries we use, which is also used in Mozilla Thunderbird! This is the relevant issue there: https://github.com/mozilla-comm/ical.js/issues/458

As for a workaround for now, I'd recommend you delete the events from another client (e.g. Android). Are you able to do that? I hope upstream fixes it quickly.

I'm also pushing a small fix that will hopefully at least not make the crash fatal.

GarlicHiker commented 11 months ago

Today, I run into the same issue. It's quite sad, that the bug is still not fixed after about 3 years :disappointed: