Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4971

s:include tag fails with truncated content in certain circumstances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.36, 2.5.18
    • 2.5.20, 6.0.0
    • Core Tags
    • None
    • Windows 10, Java 7/8 (but issue isn't environment specific)

    Description

      Hello Apache Struts Team.

      There is an issue with the Struts include tag (s:include) when processing includes on a page that isn't using UTF-8 encoding (e.g. ISO-8859-1 or Windows-1252 page encoding).

      In some circumstances the s:include tag results in truncated content from the child page (i.e. the parent page including the child page via s:include experiences incomplete rendering of the included content).  This happens when the included page contains certain characters (e.g. 'ç') in a non-UTF8 encoding (whether directly or from a resource bundle).

      There are no warnings produced in the logs (even in debug mode), so the issue can only be detected visually when things fail.

      Changing all the content to UTF-8 is a workaround, but that is not feasible in all circumstances.  Given the preceding and the lack of warnings I'm initially submitting it as a major priority.

      I will attempt to submit a bugfix for consideration shortly.

      Attachments

        1. WW4791_Reproducer.war
          5.85 MB
          James Chaplin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              JCjA492kH6347Vb10Ja53 James Chaplin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: