Bug 75

Summary: Assignment attachments storage path may cause overwriting
Product: Lab Report Repository (nor houzi) Reporter: Hui Lan <lanhui>
Component: Design errorAssignee: Hui Lan <lanhui>
Status: CONFIRMED ---    
Severity: enhancement CC: mohamednor
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   

Description Hui Lan 2020-09-04 22:00:46 CST
FOLDER STRUCTURE CAN CAUSE FILE OVERWRTITING

StudentNumber-AnswerSheet.txt is stored in a folder called ExamAnswerSubmission-Makeup, as is evident from the following URL:

http://118.25.96.118/nor/Lab_Report_Assignments//ExamAnswerSubmission-Makeup/StudentNumber-AnswerSheet.txt

One potential problem is that if two courses use the same assignment name "ExamAnswerSubmission-Makeup", then two courses will share the same folder.
Even worse, if two courses use the same attachment file name, then one will be overwritten by another, whoever comes earlier. 

By the same reasoning, we also need to double check that a student's submission won't be overwritten by another student's submission.


-Hui