Application Server 3  4  5 and 6
  1. Application Server 3 4 5 and 6
  2. JBAS-6442

Response truncated in the presence of special character

    Details

    • Similar Issues:
      Show 9 results 

      Description

      When a servlet puts a session attribute containing a collection of strings, one of the strings contains a special character (for example: ...) and this string is displayed in a JSP, the resulting page is truncated before the special character.

      For example, in a servlet:

      ArrayList optionList = new ArrayList();
      ...
      optionList.add("Any string 1");
      optionList.add("Any string 2");
      optionList.add("Any string 3");
      optionList.add("Any string 4");
      optionList.add("A string with ... character");
      optionList.add("Any string 6");
      optionList.add("Any string 7");
      optionList.add("Any string 8");
      ...
      request.getSession(false).setAttribute("myList", optionList);

      In the JSP:

      <c:forEach var="currentOption" items="$

      {myList}

      ">
      $

      {currentOption}

      </c:forEach>

      The resulting page gets truncated before the 5th line.

      In JBoss 4.0.0 the page shows complete, with a ? sign in the place of the special character.

      1. SpecialCharacter.txt
        0.0 kB
        Juan Manuel Medina Apodaca
      1. screenshot-1.jpg
        387 kB

        Activity

        Hide
        Jean-Frederic Clere
        added a comment -

        Fixed by r1140.

        Show
        Jean-Frederic Clere
        added a comment - Fixed by r1140.
        Hide
        Dimitris Andreadis
        added a comment -

        When fixing stuff, please specify a fix version (the AS version that will include the fixed jbossweb)

        Show
        Dimitris Andreadis
        added a comment - When fixing stuff, please specify a fix version (the AS version that will include the fixed jbossweb)
        Hide
        Jean-Frederic Clere
        added a comment -

        JBOSSWEB_2_1_5_GA : 2.1.5
        2.1.5 doesn't seem to be in any AS :-/ (for the moment at least).

        Show
        Jean-Frederic Clere
        added a comment - JBOSSWEB_2_1_5_GA : 2.1.5 2.1.5 doesn't seem to be in any AS :-/ (for the moment at least).
        Hide
        Remy Maucherat
        added a comment -

        Needed a subsequent fix. 2.1.4 had a first fix, but 2.1.5 needed to correct the replacement character strategy.

        Show
        Remy Maucherat
        added a comment - Needed a subsequent fix. 2.1.4 had a first fix, but 2.1.5 needed to correct the replacement character strategy.
        Hide
        Bhanu Krishnamurthy
        added a comment -

        Where is this fix JBOSSWEB_2_1_5_ga: 2.1.5 at? I cant find it anywhere. We are using JBoss 4.2.0.GA and are experiencing the same truncation issue and would like to use the fix.

        Show
        Bhanu Krishnamurthy
        added a comment - Where is this fix JBOSSWEB_2_1_5_ga: 2.1.5 at? I cant find it anywhere. We are using JBoss 4.2.0.GA and are experiencing the same truncation issue and would like to use the fix.

          People

          • Assignee:
            Remy Maucherat
            Reporter:
            Juan Manuel Medina Apodaca
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: