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
mod download issue #1373
Comments
I have the same issue. I think the issue is that " |
https://cdn.discordapp.com/attachments/202928463076786176/607247319678713897/unknown.png |
It seems this is the critical part in the code: downlords-faf-client/src/main/java/com/faforever/client/mod/InstallModTask.java Lines 52 to 63 in b289e1d
I don't have much Java experience -- but I do have some with other languages, and maybe all we need here is to use I gave it a try in a repl, and as expected, the spaces are encoded, but not to "
Okay, so I'm onto a bit more hacky solution to do search and replace of white-spaces. This might do the trick:
This way everything is encoded, and we give special consideration to whitespace to be Maybe I can try to send in a pull request based on this. |
Started a PR here: #1381 |
Since Guava is already used, you could use I think the real underlying problem is that Whereever the URL object gets created from string (maybe some preconfigured converter), there is the actual bug. |
This is a cross-cutting issue im pretty sure. Most likely, all classes inside |
Properly encode URLs for all jackson objects Fixes #1373
when trying to download the common mod tools mod i (and another user who reported the bug) receive the following error
downloading the mod works when doing so via the http://content.faforever.com/mods/Common Mod Tools.v0001.zip or via the legacy client
i assume the client
The text was updated successfully, but these errors were encountered: