Bug 75 - Assignment attachments storage path may cause overwriting
Summary: Assignment attachments storage path may cause overwriting
Status: CONFIRMED
Alias: None
Product: Lab Report Repository (nor houzi)
Classification: Unclassified
Component: Design error (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Assignee: Hui Lan
URL:
Depends on:
Blocks:
 
Reported: 2020-09-04 22:00 CST by Hui Lan
Modified: 2020-09-04 22:00 CST (History)
1 user (show)

See Also:


Attachments

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

Note You need to log in before you can comment on or make changes to this bug.