Uploaded image for project: 'LAMS Development'
  1. LAMS Development
  2. LDEV-2559

Renaming sequences in Author in Greek produces garbage characters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.4
    • Fix Version/s: 2.4, 2.3.5
    • Component/s: Author
    • Labels:
      None

      Description

        Activity

        Hide
        dronych Andrey Balan added a comment -
        I expect this to be a problem on Flash side.
        So before passing parameters to Java one should probably invoke some equivalent to Java's command URLEncoder.encode(sequenceName, "UTF-8");
        because otherwise we get spoiled sequenceName in Java.

        I can also report the same problem occurring on creating a new folders with UTF-8 characters
        Show
        dronych Andrey Balan added a comment - I expect this to be a problem on Flash side. So before passing parameters to Java one should probably invoke some equivalent to Java's command URLEncoder.encode(sequenceName, "UTF-8"); because otherwise we get spoiled sequenceName in Java. I can also report the same problem occurring on creating a new folders with UTF-8 characters
        Hide
        ernieg Ernie Ghiglione added a comment -
        From Mitch:

        " It's quiet clear, took couple mins find issue - rename function does service call (GET) via http, name is passed as url param therefore lossing the encoding.

        Solution is to use a POST call to a servlet sending the data as a WDDX xml packet and the name utf8 will be retained.

        Changes will need to be made to url called line 212 of Workspace.as and the service call line 1303 of WorkspaceManagementService.java made deprecated."
        Show
        ernieg Ernie Ghiglione added a comment - From Mitch: " It's quiet clear, took couple mins find issue - rename function does service call (GET) via http, name is passed as url param therefore lossing the encoding. Solution is to use a POST call to a servlet sending the data as a WDDX xml packet and the name utf8 will be retained. Changes will need to be made to url called line 212 of Workspace.as and the service call line 1303 of WorkspaceManagementService.java made deprecated."
        Hide
        ernieg Ernie Ghiglione added a comment -
        It was actually a lot simpler, just needed to escape the newname (urlencode it)
        Show
        ernieg Ernie Ghiglione added a comment - It was actually a lot simpler, just needed to escape the newname (urlencode it)
        Hide
        ernieg Ernie Ghiglione added a comment -
        Tested by Spyros... all good now
        Show
        ernieg Ernie Ghiglione added a comment - Tested by Spyros... all good now

          People

          • Assignee:
            ernieg Ernie Ghiglione
            Reporter:
            ernieg Ernie Ghiglione
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development