Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event entries with UTF-8 BOM elements in Text are not loaded, shown and after export cannot be imported #6043

Closed
fuco809 opened this issue Jun 4, 2024 · 2 comments · Fixed by nextcloud/calendar-js#735
Labels
1. to develop Accepted and waiting to be taken care of bug calendar-js Bugs in calendar-js

Comments

@fuco809
Copy link

fuco809 commented Jun 4, 2024

Steps to reproduce

  1. example file attached - which where exported from a nextcloud calendar
  2. import calendar to new calendar fails (1 of 2)
  3. calendar not loads. (when selected month is oct 2024)
    test-utf8-bom-event.ics.txt

Expected behavior

online created events should automatically strip UTF8 BOM Codes oder other unliked char elements

Actual behaviour

bomsceeni

elements like "NBSP" or "xEF xBF xBE" are not removed and makes some troubles (not showing events, export/import errors).

Calendar app version

4.7.4

CalDAV-clients used

No response

Browser

No response

Client operating system

No response

Server operating system

No response

Web server

Apache

Database engine version

MariaDB

PHP engine version

PHP 8.2

Nextcloud version

27.1.9

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

No response

Nextcloud configuration

No response

Web server error log

No response

Log file

No response

Browser log

No response

Additional info

No response

@fuco809 fuco809 added the bug label Jun 4, 2024
@tcitworld
Copy link
Member

This could be fixed with a dedicated repair step in the calendar-js libary : https://github.com/nextcloud/calendar-js/tree/main/src/parsers/repairsteps/icalendar

@tcitworld tcitworld added 1. to develop Accepted and waiting to be taken care of calendar-js Bugs in calendar-js labels Jun 4, 2024
@sanskar-soni-9
Copy link

Hi, I was digging into it and found that its not BOM but Unicode Special Non-characters i.e. U+FFFE & U+FFFF. As if it was BOM then U+FEFF should also break and cause errors but it worked well when I tested it.

Raising PR in calendar-js repo 🙂

Unicode.org | Wikipedia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug calendar-js Bugs in calendar-js
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants