Uploaded image for project: 'Greenfoot'
  1. Greenfoot
  2. GREENFOOT-660

Support double-byte characters in usernames in Export dialog

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.5.0
    • Component/s: Greenfoot UI
    • Sprint:
      3.1.1

      Description

      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': escaped absolute path not valid
         at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
         at org.apache.commons.httpclient.methods.GetMethod.<init>(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) 

        Attachments

          Activity

            People

            • Assignee:
              amjad Amjad Altadmri
              Reporter:
              amjad Amjad Altadmri
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: