Description
This is an extension of #1703 - with more details.
We have recently been made aware of a problem creating notebooks for assignments where there's a space in the assignment name.
There are two clarifications here:
- This problem appears if there's a space anywhere in the path - so if one is doing something clever with course-codes in paths, a space in the course-code will trigger the problem
- This only happens when creating a
new notebook
in a folder arrived at via the formgrader UI - any other route does not create this issue- this means even just clicking on the name of the assignment from the bread-crumb links in the grey bar allows it to work.
- there is no problem uploading a notebook, to
rename
ing a notebook to copy it into the directory.... justnew notebook
Some investigation on links:
The link in the formgrader UI is <a target="_blank" href="<obfuscated path>/tree/./source/my space">my space</a>
, compared to <a href="<obfuscated path>/tree/source/my%20space">my space</a>
in the breadcrumb (which seems to have some form of event watch on it.)
- Removing the
target="_blank"
for the<a>
element in the formgrader UI makes no difference - replacing the space with
%20
in thehref
attribute makes no difference.
Tested environments
- notebook 6.2.0; nbgrader 0.7.0; docker image build summer 2021, running in a cloud
- notebook 6.4.11; nbgrader 0.7.1; docker image build December 2022, running in a cloud
- notebook 6.4.11; nbgrader 0.7.1; docker image build December 2022, running on my workstation
- notebook 6.4.12; nbgrader 0.8.1; python libraries in virtual-environment on workstation 8 Feb 2023
- in
lab
, this problem doesn't occur, because clicking on the assignment in the formgrader UI doesn't take me to thesource
folder
- in
Testing different browsers & Operating Systems
I have tested the following combinations:
linux | windows | Mac | |
---|---|---|---|
Firefox | 109.1 | 109.0 | 109.0.1 |
Chrome | 109.0 | 109.0 | |
Edge | 110.0 | 109.0 | |
Safari | 16.1 |
caveat The "workstation" tests were only Firefox on Linux.
Initial Questions
We have 1,000's of users and 100's of assignments with spaces in the name - and this problem has only just been reported:
- Is this a new problem
- Have none of our instructors actually created a new assignment the the
New Notebook
button in the formgrader UI? - Have all instructors just silently worked round the problem
Who else has had this problem (other than @major-project-1921)
Can anyone else repeat my virtual-environment test & confirm the issue?