Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-13924

[GSS](7.2.0) Apostrophe in an attribute with multiple EL parts breaks function lookup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 7.1.0.GA
    • EE, Undertow
    • Hide

      1. Deploy the attached two-file "application". Observe that accessing `.../jastow-bug/test.jsp` results in an internal server error.

      2. Edit `test.jsp` and remove the apostrophe from "${0} ' ${fn:length ([1, 2])}".

      3. Now accessing the page gives `0 2`, as expected.

      Show
      1. Deploy the attached two-file "application". Observe that accessing `.../jastow-bug/test.jsp` results in an internal server error. 2. Edit `test.jsp` and remove the apostrophe from "${0} ' ${fn:length ( [1, 2] )}". 3. Now accessing the page gives `0 2`, as expected.

      Certain EL pieces result in unexplained org.apache.jasper.JasperException "contains invalid expression(s)" (the exception does not explain what is invalid). After lots of tries, I have narrowed it down: 1) there must be several EL pieces in one string; 2) there must be an apostrophe in between.

      This looks very similar to bug WFLY-4455. It breaks several pages in our application, blocking upgrade to WildFly 10.

      Example is attached.

              Unassigned Unassigned
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: