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

RS if you archive a course twice in a second

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3.5
    • Component/s: Course
    • Labels:
      None

      Description

      The case is pretty unlikely but it happens once. The outputted file must be renamed with an _1 instead of producing a red screen.

      2015-09-09 09:35:40,637 [ajp-nio2-8021-exec-49] ERROR AssertException - OLAT::ERROR ^%^ N1-E2 ^%^ org.olat.core.logging 
      Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko ^%^ **RedScreen** File Weltern%C3%A4hrung_2015-09-09_09-35-40.xls already exists!
      
      <dispatchinfo>
      	<componentinfo>
      		<compname>ffo_main_confirm_delete</compname>
      		<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.components.form.flexible.impl.FormEvent</class&gt;
      			<command>done</command>
      			<tostring>com:done,org.olat.core.gui.components.form.flexible.impl.FormEvent@2f23a1</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.repository.ui.author.ConfirmDeleteController</controllername>
      		<controllername>org.olat.repository.ui.author.AuthorListController</controllername>
      		<controllername>org.olat.repository.ui.author.OverviewAuthoringController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      >>> stack of 1.cause::org.olat.core.logging.AssertException: File Weltern%C3%A4hrung_2015-09-09_09-35-40.xls already exists!
      -> at org.olat.core.util.ExportUtil.writeContentToFile(ExportUtil.java:57)
         at org.olat.course.CourseFactory.archiveCourse(CourseFactory.java:685)
         at org.olat.course.CourseFactory.archiveCourse(CourseFactory.java:666)
         at org.olat.repository.handlers.CourseHandler.readyToDelete(CourseHandler.java:521)
         at org.olat.repository.manager.RepositoryServiceImpl.delete(RepositoryServiceImpl.java:294)
         at org.olat.repository.ui.author.ConfirmDeleteController.doCompleteDelete(ConfirmDeleteController.java:147)
         at org.olat.repository.ui.author.ConfirmDeleteController.formInnerEvent(ConfirmDeleteController.java:125)
         at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:410)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)
         at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:238)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
      >>> stack of 2.cause::java.lang.Exception: assertionstackgenerator
      -> at org.olat.core.logging.AssertException.<init>(AssertException.java:53)
         at org.olat.core.util.ExportUtil.writeContentToFile(ExportUtil.java:57)
         at org.olat.course.CourseFactory.archiveCourse(CourseFactory.java:685)
         at org.olat.course.CourseFactory.archiveCourse(CourseFactory.java:666)
         at org.olat.repository.handlers.CourseHandler.readyToDelete(CourseHandler.java:521)
         at org.olat.repository.manager.RepositoryServiceImpl.delete(RepositoryServiceImpl.java:294)
         at org.olat.repository.ui.author.ConfirmDeleteController.doCompleteDelete(ConfirmDeleteController.java:147)
         at org.olat.repository.ui.author.ConfirmDeleteController.formInnerEvent(ConfirmDeleteController.java:125)
         at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:410)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)
         at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:238)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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