Skip to content

course materials edit w/ subdirectories bug #12203

@bmcutler

Description

@bmcutler

Describe the bug

Report from an instructor:

Hi, for csciXXX, there is (was?) a labs folder in Course Materials 
that contained subfolders lab01, lab02, ..., lab08.

I (incorrecty) added a lab/lab09 folder, incorrect because it should've 
been labs/lab09, so plural on labs.  This resulted in a separate lab/lab09 
folder and subfolder.  Realizing this, I deleted the lab09 folder, which 
warned me it would delete the two files (lab09.pdf and lab09.asm) 
that I uploaded --- the deletion hung for awhile, never returned.  
Submitty (website) did not respond for a minute, then showed the lab 
folder gone and also the completely separate labs folder as gone, too!

When I checked the webpage, indeed, all of the lab subdirectories were gone.
Which suggests that the database entries for these files were deleted (I did not check).
But the subfolders & files for labs 1-8 were still in the file system where expected:

/var/local/submitty/courses/f25/csciXXX/uploads/course_materials/labs# ls
lab01 lab02 lab03 lab04 lab05 lab06 lab07 lab08

This suggests that the file system & the database for course materials is out of sync. This could lead to future problems.

Expected behavior
The database & the file structure for course materials should always match.

Did we test editing/renaming/deleting subdirectories?

To Reproduce
I have not attempted to reproduce.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions