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

iCal import does not work #138

Open
ClemensRobbenhaar opened this issue Dec 10, 2024 · 0 comments
Open

iCal import does not work #138

ClemensRobbenhaar opened this issue Dec 10, 2024 · 0 comments
Assignees

Comments

@ClemensRobbenhaar
Copy link
Collaborator

When trying to import an ical file into a calendar, this produces an error message:

There was an error while importing the calendar data. Please try again or consult the logs!

Example iCal import:
local_test.ics.txt (added *.txt suffix to be able to upload the file)

Steps to reproduce:

  • from the main calendar page, go to any calendar (at least "Other Events" should be available)
  • on that calendar page, click the "import .ics file" button
  • in the dialog window that opens, upload the iCal file via ".ics file to be imported" and click "Begin import"

Instead of importing events the error message appears.

There is nothing in the normal logs, but the log.xml in the data/status/moccacalendar/import/<calendar%20name>/log.xml

       <detailMessage>Invalid TimeZone ID: []</detailMessage>
      <stackTrace>
        <trace>org.apache.commons.lang3.Validate.notBlank(Validate.java:782)</trace>
        <trace>wiki:xwiki//net.fortuna.ical4j.model.TimeZoneRegistryImpl.getTimeZone(TimeZoneRegistryImpl.java:180)</trace>
        <trace>wiki:xwiki//org.xwiki.fullcalendar.internal.CalendarReader.getTimeZone(CalendarReader.java:98)</trace>
        <trace>wiki:xwiki//org.xwiki.fullcalendar.internal.DefaultFullCalendarManager.getICalEventsFromFile(DefaultFullCalendarManager.java:132)</trace>
        <trace>wiki:xwiki//org.xwiki.contrib.moccacalendar.internal.importJob.ImportJob.runInternal(ImportJob.java:97)</trace>
        <trace>org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)</trace>
        <trace>org.xwiki.job.AbstractJob.run(AbstractJob.java:223)</trace>
        <trace>java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)</trace>
        <trace>java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)</trace>
        <trace>java.base/java.lang.Thread.run(Thread.java:829)</trace>
      </stackTrace>

This happens independently of being a time zone send in the wiki administation or keeping the "default timezone"
Calendar version is 2.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

4 participants