file name ending in / => insanity
Status: Beta
Brought to you by:
worden
David Earn somehow got a file name ending in a slash into a project description, and was absolutely unable to find his way back out. Unfortunately it happened while trying to introduce a new student to WW.
This seems to confuse WW to a really surprising extent. Check http://yushan.mcmaster.ca/theobio/projects/index.php/R_exercises.
Anonymous
Not actually sure if the "/" is the problem, or perhaps the fact that he somehow has files with no page associated. Although I made my example by copying the PD, it is a reasonable reflection of the one observed in the wild.
The error message "Invalid page title ‘Image:’" clearly makes no sense, and should be fixed.
The project description element in question is <source-file filename="Exercise11_1.R/">, for the record. It's fine to have a source-file element without a page attribute: it should use the default location system to find the source file. Apparently it's the default-location code that's breaking and trying to look in an invalid place. That's a bug.</source-file>
The other bug is that source filenames with final slashes should not be allowed. We have no support for source files that are directories, and even if we did, we would want to normalize their names and leave out the final slash. So WW should refuse to accept that filename. This would probably make the default-location bug go away as well.