[GREENFOOT-660] Support double-byte characters in usernames in Export dialog
We allow double-byte characters in the gallery, but when trying to export from Greenfoot, it will not work. This is because these characters are not escaped in the constructed link.
Steps to reproduce:
- Go to the Export dialog.
- Try to insert a username with such characters, for example, 일리아스
it will fire the next Exception:
Exception in thread "Thread-10" java.lang.IllegalArgumentException: Invalid uri '[http://localhost:3000/user/일리아스/check_scenario/ants-3':|http://localhost:3000/user/%EC%9D%BC%EB%A6%AC%EC%95%84%EC%8A%A4/check_scenario/ants-3':] escaped absolute path not valid at org.apache.commons.httpclient.HttpMethodBase.(HttpMethodBase.java:222) at org.apache.commons.httpclient.methods.GetMethod.(GetMethod.java:89) at greenfoot.export.mygame.MyGameClient.checkExistingScenario(MyGameClient.java:302) at greenfoot.export.mygame.ExistingScenarioChecker.checkExistence(ExistingScenarioChecker.java:152) at greenfoot.export.mygame.ExistingScenarioChecker.access$300(ExistingScenarioChecker.java:35) at greenfoot.export.mygame.ExistingScenarioChecker$ScenarioWorker.construct(ExistingScenarioChecker.java:58) at bluej.utility.SwingWorker$1.run(SwingWorker.java:137) at java.lang.Thread.run(Thread.java:745)
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.5.0