Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-8536

Use of File.toURL causes failures using JSP taglibs when path contains a space

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • TBD EAP 5
    • EAP_EWP 5.1.2
    • Web
    • None
    • Hide

      1) Install JBoss EAP 5.1.2 to a location with a space in the path
      2) Deploy a web application with any jar in WEB-INF/lib/, and a index.jsp which contains a taglib import, e.g.
      <%@ taglib uri="http://z.com/z" prefix="z"%>
      3) Go to the page for the JSP

      Show
      1) Install JBoss EAP 5.1.2 to a location with a space in the path 2) Deploy a web application with any jar in WEB-INF/lib/, and a index.jsp which contains a taglib import, e.g. <%@ taglib uri="http://z.com/z" prefix="z"%> 3) Go to the page for the JSP
    • NEW

      org.apache.catalina.core.ApplicationContext.getResource() uses File.toURL(), which is deprecated in favour of File.toURI().toURL() because it does not escape characters correctly. With the FileURLConnection changes in EAP 5.1.2, this causes failures in the JSP taglib handling code if JBoss is installed into a path containing a space.

      This worked in EAP 5.1.1 and earlier because the JBPAPP-8068 change in 5.1.2 altered URL handling.

              rmaucher Remy Maucherat
              rhn-support-jlivings James Livingston (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: