Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-2280

Error uploading a calendar with the wrong format

    XMLWordPrintable

    Details

      Description

      It only need a better catch of the errors.

      2016-10-15 13:31:46,266 [ajp-nio2-8021-exec-12] ERROR OLATRuntimeException - OLAT::ERROR ^%^ N1-E12 ^%^ org.olat.core.logging
      
       https://lms.xyz.de/auth/HomeSite/1226375168/calendar/0 
       
      Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
      
      **RedScreen** Error parsing calendar file.
      
      <dispatchinfo>
      	<componentinfo>
      		<compname>ffo_main_null</compname>
      		<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.control.Event</class&gt;
      			<command>validation ok</command>
      			<tostring>com:validation ok,org.olat.core.gui.control.Event@d62b3f02</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.commons.calendar.ui.ImportCalendarFileController</controllername>
      		<controllername>org.olat.commons.calendar.ui.CalendarPersonalConfigurationController</controllername>
      		<controllername>org.olat.commons.calendar.ui.WeeklyCalendarController</controllername>
      		<controllername>org.olat.home.HomeMainController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      >>> stack of 1.cause::org.olat.core.logging.OLATRuntimeException: Error parsing calendar file.
      -> at org.olat.commons.calendar.manager.ICalFileCalendarManager.readCalendar(ICalFileCalendarManager.java:271)
         at org.olat.commons.calendar.manager.ImportCalendarManager.importCalendar(ImportCalendarManager.java:112)
         at org.olat.commons.calendar.ui.ImportCalendarFileController.formOK(ImportCalendarFileController.java:124)
         at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:380)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)
         at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
         at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:238)
         at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.fireValidation(FormWrapperContainer.java:122)
         at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:479)
         at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:451)
      >>> stack of 2.cause::net.fortuna.ical4j.data.ParserException: Error at line 1:Expected [BEGIN], read [PK]
      -> at net.fortuna.ical4j.data.CalendarParserImpl.assertToken(CalendarParserImpl.java:477)
         at net.fortuna.ical4j.data.CalendarParserImpl.assertToken(CalendarParserImpl.java:452)
         at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:114)
         at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:210)
         at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:191)
         at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:179)
         at org.olat.commons.calendar.manager.ICalFileCalendarManager.readCalendar(ICalFileCalendarManager.java:267)
         at org.olat.commons.calendar.manager.ImportCalendarManager.importCalendar(ImportCalendarManager.java:112)
         at org.olat.commons.calendar.ui.ImportCalendarFileController.formOK(ImportCalendarFileController.java:124)
         at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:380)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              srosse Stéphane Rossé
              Tester:
              Sabrina Scheiwiler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m