Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-20976

"share/proxy/alfresco-api/-default-/public/alfresco/versions/1/nodes" API does not detect the correct encode when Text contains special characters.

    Details

    • Type: Service Pack Request
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 5.2.4, 6.1
    • Fix Version/s: 6.1.N
    • Component/s: ACS REST API
    • Labels:
    • Environment:
      IE, Chrome, Firefox.
    • Bug Priority:
      Category 3
    • ACT Numbers:

      00997041

      Description

      "share/proxy/alfresco-api/default/public/alfresco/versions/1/nodes" API does not detect the correct encode when it contains special characters.

      Steps to reproduce

      1. Log in to Alfresco Share
      2. Create a file with special character “€‰” in the content, which is windows-1250 encode.
      3. Go to the nodeBrowser to make sure it is uploaded as UTF8. Please see the attached screenshot named “UTF8.png” for further assistance.
      Instead, you can use the attached file named “€‰.txt”, which I created by the above steps.
      4. Check the UUID of the created/uploaded file and run this query. In this example, the UUID is 343f76e4-ed2e-4de7-9c71-2458fdfd0aa1
      5. Run this query *Note: Please replace the UUID with yours.
      http://localhost:8080/share/proxy/alfresco-api/-default-/public/alfresco/versions/1/nodes/343f76e4-ed2e-4de7-9c71-2458fdfd0aa1/content?attachment=false
      6. View the source of the opened page.

      Observed Behaviour:
      “Text Encoding” of the page shows windows-1252 as the attached screenshot named “windows-1250.png.”

      Expected Behaviour:
      “Text Encoding” of the page should show as UTF8.

      Additional Information:
      The encode shows correctly as UTF8 when we open it with “View in Browser” as the attached screenshot named “View_in_browser.png” shows. Thus the problem is only with the query used in step 5.

        Attachments

        1. €‰.txt
          0.0 kB
        2. UTF8.png
          UTF8.png
          132 kB
        3. View_in_browser.png
          View_in_browser.png
          59 kB
        4. windows-1250_with_IE.png
          windows-1250_with_IE.png
          44 kB
        5. windows-1250.png
          windows-1250.png
          53 kB

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  kkono Kazuyuki Kono
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Structure Helper Panel