Calendar sync error when an entry has an invalid GEO field



  • I have imported a calendar entry from booking.com, which features a GEO field (holding GPS coordinates). The value in this field causes a NumberFormatException in DAVx^5

    The entry from the ICS file:

    BEGIN:VEVENT
    DTSTAMP:20190112T110842Z
    URL:https://secure.booking.com/myreservations.de.html?aid=123456\;label=gen
     251aa-11111111I23fgXR1abc1234567TG4ARnIAQ_abcdefghijKIAgGoAgM\;sid=aaaaa
     a15c93fffffffffffffffffffffff\;auth_key=1111111111111111111&
    CREATED:20190112T110818Z
    UID:1111111111@booking.com
    SEQUENCE:2
    LAST-MODIFIED:20190112T110842Z
    DESCRIPTION:Ankunft: Sonntag\, 28. Juli 2019\, anreise zwischen 15:30 - 21:
     00\n\nAbreise: Samstag\, 3. August 2019\, abreise zwischen 10:00 - 10:30\n
     \nSie können Ihre Buchung hier ansehen\, ändern oder stornieren
    SUMMARY:Some Hotel
    LOCATION:Puchen 209\, Altaussee\, 8992\, Austria
    GEO:47.634239\;13.767147
    DTSTART;VALUE=DATE:20190728
    DTEND;VALUE=DATE:20190804
    TRANSP:OPAQUE
    CLASS:PRIVATE
    END:VEVENT
    

    Here is the Debug log . The value in the GEO field (47.634239\;13.767147) causes the exception

    java.lang.NumberFormatException: For input string: "47634239\"

  • developer

    Hello,

    Well, the GEO property in your file is invalid. It should read

    GEO:47.634239;13.767147
    

    Does it work when you fix the iCalendar?



  • I removed the GEO line, than it worked.


  • developer

    @mtausig Ok. Please contact the service which generated the .ics file to fix that.



Similar topics