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

RS: cannot create a directory

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12.1.3
    • Component/s: Framework
    • Labels:
      None

      Description

      The implementation check serial 2 things:

      • is the directory already there
      • is the directory created successfully

      Optimize:

      • if the directory is there, don't try to create it
      • if the directory is not there, create it. If the method returns false, check if the directory was not created by someone else.
      2017-10-19 09:33:28,240 [ajp-nio2-8049-exec-341] ERROR AssertException - OLAT::ERROR ^%^ N49-E260 ^%^ org.olat.core.logging
      https://xyz.frentix.com/auth/BusinessGroup/328171552 
      Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38
      **RedScreen** Cannot create directory of LocalFolderImpl with reason (exists= ): false && created= false) path: /fx/appfs/hsafhnw/bcroot/cts/folders/BusinessGroup/328171552
      
      <dispatchinfo>
      	<componentinfo>
      		<compname>bgTree</compname>
      		<compclass>org.olat.core.gui.components.tree.MenuTree</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.components.tree.TreeEvent</class&gt;
      			<command>ctncl</command>
      			<tostring>TreeEvent:{cmd:ctncl, nodeid:bgmr49022251252folder}</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.group.ui.run.BusinessGroupMainRunController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
       
      >>> stack of 1.cause::org.olat.core.logging.AssertException: Cannot create directory of LocalFolderImpl with reason (exists= ): false && created= false) path: /fx/appfs/xyz/bcroot/cts/folders/BusinessGroup/328171552
      -> at org.olat.core.util.vfs.LocalFolderImpl.<init>(LocalFolderImpl.java:81)
         at org.olat.core.commons.modules.bc.vfs.OlatRootFolderImpl.<init>(OlatRootFolderImpl.java:50)
         at org.olat.collaboration.CollaborationTools.getSecuredFolder(CollaborationTools.java:430)
         at org.olat.collaboration.CollaborationTools.createFolderController(CollaborationTools.java:398)
         at org.olat.group.ui.run.BusinessGroupMainRunController.doFolder(BusinessGroupMainRunController.java:767)
         at org.olat.group.ui.run.BusinessGroupMainRunController.handleTreeActions(BusinessGroupMainRunController.java:666)
         at org.olat.group.ui.run.BusinessGroupMainRunController.event(BusinessGroupMainRunController.java:430)
         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)
      >>> stack of 2.cause::java.lang.Exception: assertionstackgenerator
      -> at org.olat.core.logging.AssertException.<init>(AssertException.java:53)
         at org.olat.core.util.vfs.LocalFolderImpl.<init>(LocalFolderImpl.java:81)
         at org.olat.core.commons.modules.bc.vfs.OlatRootFolderImpl.<init>(OlatRootFolderImpl.java:50)
         at org.olat.collaboration.CollaborationTools.getSecuredFolder(CollaborationTools.java:430)
         at org.olat.collaboration.CollaborationTools.createFolderController(CollaborationTools.java:398)
         at org.olat.group.ui.run.BusinessGroupMainRunController.doFolder(BusinessGroupMainRunController.java:767)
         at org.olat.group.ui.run.BusinessGroupMainRunController.handleTreeActions(BusinessGroupMainRunController.java:666)
         at org.olat.group.ui.run.BusinessGroupMainRunController.event(BusinessGroupMainRunController.java:430)
         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)
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            srosse Stéphane Rossé
            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 - 35 minutes
                35m