-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directory name escaping does not take name limits into account #190
Comments
Hey, thanks for the bug report! That's a valid point, and I'd like to solve this once-and-for-all. It's not clear what the right behavior is, though. Truncating parameter names risks introducing collisions. For that matter, if a user provides the same parameter twice, that would cause a collision. It would be nice to be able to handle that. This is complicated by the way that some of the report code ( Once that's in place, the |
FWIW so does replacing unsafe chars with
Indeed, that does sound like a better solution. Or maybe even don't crate folders altogether, instead having just one HTML file that reads JSON and changes UI dynamically, thus avoiding entire class of issues with filenames? |
True enough. All the more reason to fix it, then.
I've thought about it. I sort of like the current system - you can dump out the GNUPlot scripts and edit them by hand if you wish. It would be tricky to implement right now, for a number of reasons. Perhaps the custom test frameworks RFC will make that easier. |
Example:
Currently produces following errors when trying to create directories for inputs:
I believe it should truncate input to satisfy OS requirements. It's usually 255 chars on Unix and macOS, but probably better to use NAME_MAX constant, e.g. via this crate.
The text was updated successfully, but these errors were encountered: