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

FCKEditor connector not being able to handle utf-8 filenames for uploads

    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: General
    • Labels:
      None

      Description

      Spyros Papadakis reports on the LAMS Community:

      "If you upload an image with utf8 characters on its name you can see it but when you try to use it you can not." (see picture)

      This happens with the FCKEditor connector when trying to upload pictures that contain UTF-8 character (Greek, Russian, etc). I believe this might be because the FCKEditor connector isn't encoding the file info appropriately.

        Activity

        Hide
        ernieg Ernie Ghiglione added a comment -
        Tested and closed for 2.3.4 and 2.4.

        This will be fine for new installations but for existing installations changes would have to be done manually by the system administrator. We will include this in the Release Notes.
        Show
        ernieg Ernie Ghiglione added a comment - Tested and closed for 2.3.4 and 2.4. This will be fine for new installations but for existing installations changes would have to be done manually by the system administrator. We will include this in the Release Notes.
        Hide
        ernieg Ernie Ghiglione added a comment -
        From:Andrey

        "yep, I can confirm the problem exists for all other applications deployed under the jboss

        and it seems i might have found the solution to that:
        we need to add the URIEncoding="UTF-8" attribute to the connector configuration.
        change ${JBOSS_HOME}/server/(default)/deploy/jbossweb-tomcat55.sar/server.xml:
        <Connector port="8080" URIEncoding="UTF-8"...
        (as it's advised here http://docs.jboss.org/seam/2.0.3.CR1/reference/en-US/html/i18n.html)

        and it works ok after doing this.

        another question is how to implement this in Lams.
        don't know if we could modify server.xml during lams deployment,
        but we could at least tell people to change that file if they're going to use UTF-8 filenames
        "
        Show
        ernieg Ernie Ghiglione added a comment - From:Andrey "yep, I can confirm the problem exists for all other applications deployed under the jboss and it seems i might have found the solution to that: we need to add the URIEncoding="UTF-8" attribute to the connector configuration. change ${JBOSS_HOME}/server/(default)/deploy/jbossweb-tomcat55.sar/server.xml: <Connector port="8080" URIEncoding="UTF-8"... (as it's advised here http://docs.jboss.org/seam/2.0.3.CR1/reference/en-US/html/i18n.html) and it works ok after doing this. another question is how to implement this in Lams. don't know if we could modify server.xml during lams deployment, but we could at least tell people to change that file if they're going to use UTF-8 filenames "
        Hide
        ernieg Ernie Ghiglione added a comment -
        is that because we filter calls to the "secure" folder?
        Show
        ernieg Ernie Ghiglione added a comment - is that because we filter calls to the "secure" folder?
        Hide
        dronych Andrey Balan added a comment -
        yep, i'm able to upload and add image with greek filename to fckeditor.
        Although I get the error once I try to access it later at /lams//www/secure/ff8081812c297cb1012c2a0662c4001b/Image/......
        Show
        dronych Andrey Balan added a comment - yep, i'm able to upload and add image with greek filename to fckeditor. Although I get the error once I try to access it later at /lams//www/secure/ff8081812c297cb1012c2a0662c4001b/Image/......
        Hide
        ernieg Ernie Ghiglione added a comment -
        Andrey, I can't seem to make this work. I also compile this in Windows and I get the same result as with Unix. (see my last comment).

        Are you able to upload a picture with greek characters and then add them to the fckeditor as image?
        Show
        ernieg Ernie Ghiglione added a comment - Andrey, I can't seem to make this work. I also compile this in Windows and I get the same result as with Unix. (see my last comment). Are you able to upload a picture with greek characters and then add them to the fckeditor as image?

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development