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

Files in course element data folder in course can't be edited (red-screen)

    XMLWordPrintable

    Details

      Description

      How to reproduce on 5.2.4 / HEAD:

      • open a course that has a folder course element
      • open the course editor
      • open the course storage folder
      • in the course storage folder, navigate to the course element folder (_courseelementdata/Your Folder (nodeid)/)
      • Try to create a new file
      • Try to edit an existing file

      -> redscreen

      The problem is in the VFSManager.findWritableRootFolderForRecursion(VFSContainer rootDir, String relFilePath, int recursionLevel) method.

      Since the _courselementmetadata is a MergeSource container, it returns the getRootWriteContainer(). But it should actually find the next writable folder in the path of the file instead. It should search the tree upwards, not downwards. I think the correct rule would be to first search upwards and only if no writable root can be found it should search downwards.

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            srosse Stéphane Rossé
            Tester:
            Sergio Trentini
            Votes:
            0 Vote for this issue
            Watchers:
            0 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 - 2 hours
                2h