ICEfaces
  1. ICEfaces
  2. ICE-7108

FileEntry component breaks view rendering due to incorrect encoding handling

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0, 2.0.0-EE-Beta1, 2.0.1, 2.0.2
    • Fix Version/s: None
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Icefaces 2.0.2
      Glassfish 3.0.1 with jsf implementation 2.1.1-b04
      jdk 1.6.0_26
      Windows 32 bit

      Description

      When using FileEntry component within a page with encoding that doesn't match platform default character encoding (eg. using utf-8 on windows server with cp1251 as default), ALL the view containing FileEntry is broken.
      The reason is:
      file: FileEntryPhaseListener;
      line: search for "Streams.asString("
      Fix:
      replace
      Streams.asString(item.openStream());
      with
      Streams.asString(item.openStream(), request.getCharacterEncoding());

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Vadim ---
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: