Modpacks that have / in their names become inaccessible #500
Labels
Area: Backend
Related to the Python code that runs inside gunicorn
Area: Frontend
Related to HTML, JS, CSS, or other browser things
Priority: Low
Scope: Medium
Moderately complex changes requiring non-trivial time and effort to develop and review
Type: Bug
Description (What went wrong?):
I created a Modpack for KSP2 called "New/Updated Parts Mods". When I tried saving changes after editing it it showed me the 404 screen that shows this modpack doesn't exist. I can't edit or even rename or delete it now, when I try I get a 404.
Reproduction Steps (What did you do?):
Create a modpack that has a / character in its name. Try to edit or view it afterwards.
There might be more characters that break it.
Expected Behavior (What do you think should have happened instead?):
The normal creation of a modpack, along with it being possible to access it.
Environment (OS/Browser/Plugins/etc):
Windows 10, Firefox.
Extra Information (Screenshots/Error Messages/Javascript Console Output):
I think this fails because the / is messing with the URL, so substituting / for %2F or an underscore or something when constructing URLs should fix this.
Also there might be other characters that cause this, not just "/".
My inaccessible modpack is linked here, for reference.
https://spacedock.info/pack/489/New/Updated%20Parts%20Mods
The text was updated successfully, but these errors were encountered: