RunestoneComponents
RunestoneComponents copied to clipboard
Course names with special characters in them cannot be deleted
Error reported in course thinkcspy on page /runestone/default/removecourse/HTML&CSS by user [email protected] [email protected] Please describe what you were doing that led up to this error:
---------------- Traceback --------------
Traceback (most recent call last):
File "/home/bmiller/Runestone/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/home/bmiller/Runestone/web2py/applications/runestone/controllers/default.py", line 394, in
99% sure that this is because of the & in the course name. Course names should be encoded before calling the remove course controller. This should be fixed in the template for the remove controller where each possible course is set up as a separate form with the action linked to include an un-escaped course name.
I figured you cannot add a course with an "&" on in from the browser anymore, meaning that you will never have the need to delete it. However, instructors can still add such a course from the terminal using "rsmanage addcourse", which then brings the problem back. If we can find a way to prevent adding a course with special characters from the terminal, that would fix the problem completely.