Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6263

Apostrophe in an attribute with multiple EL parts breaks function lookup

XMLWordPrintable

    • 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.

              tomazcerar Tomaž Cerar (Inactive)
              doublep_ Paul Pogonyshev (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: