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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: EAP_EWP 5.1.2
    • Fix Version/s: TBD EAP 5
    • Component/s: Web
    • Labels:
      None
    • Steps to Reproduce:
      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
    • Docs QE Status:
      NEW

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rmaucher Remy Maucherat
                  Reporter:
                  jameslivingston James Livingston
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: