Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2701

Codebehind unknown handler can't find results in JAR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.2
    • 2.1.3
    • Plugin - CodeBehind
    • None

    Description

      The CodeBehindUnknownHandler searches for results using servletContext.getResource(path) and then ClassLoaderUtils.getResource(path, getClass()).
      The path always has a leading slash as this is mandatory to find resources in the servlet context but the leading slash needs to be removed to load resources from jars.
      The existing unit tests do not include the leading slash when searching the classpath so the small bug had slipped through.

      Attachments

        Activity

          People

            jeromy Jeromy Evans
            jeromy Jeromy Evans
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: