Submissions by students from different course
A bunch of Dutch students show up in the submission overview of my lecture. I don’t mind, but there seems to be a bug.
It does not appear that the students have access to the submissions. At any rate they have not been enrolled into the other course. However, submissions under their account are created.
Probably a leak in some query.
Submitted by Eelco Visser on 10 June 2013 at 20:07
Issue Log
e.g. http://department.st.ewi.tudelft.nl/weblab/assignment/621/info in instructor mode
Querying the db, I found that there are single
StudentInCourse
instances which have multipleAssignmentSubmission
instances for differentCourseEdition
instances. If I understand the data model correctly, aStudentInCourse
instance should relate to an enrolment of a single course edition. Apparently there are some instances ofStudentInCourse
shared amongAssignmentSubmission
s crossing multiple course editions.Can
Assignment
instances from a specific course be reused by another course or something similar?
Also, there are cases where an
AssignmentSubmission
has aparent
(type ofAssignmentCollectionSubmission
) with different courses in thecourse
properties ofparent.submissions
(Type ofSet<AssignmentSubmission>
),
This issue was probably caused by URL-hacking, which could be as simple as adding up the assignment key by one.
Validation now guarantees that no submission is created when the course of the student is not the same as the course of the assignment. Furthermore, the admin-page now has a debug part in which faulty submissions can be deleted.
Reopen, because they are still created due to https://yellowgrass.org/issue/WebDSL/698
makeSubmission
now returnsnull
whenstudent.course
is different fromassignment.course
. Request will then result in a 404.
Log in to post comments