javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2546

ExternalContext.getResourcePaths() does not throw NPE when path is null.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.14, 2.2.0-m06
    • Component/s: context
    • Labels:
      None
    • Environment:

      N/A

      Description

      The Mojarra API documentation states that if we pass in null to getResourcePaths(String path) we should receive a NullPointerException.

      We do not at this time.

      According to the ServletContext.getResourcePaths(String path) the following is stated in the return section, this is teh method we call through to.

      Returns:
      a Set containing the directory listing, or null if there are no resources in the web application whose path begins with the supplied path.

        Activity

        Hide
        rogerk added a comment -

        Changes.

        Show
        rogerk added a comment - Changes.
        Hide
        rogerk added a comment -

        Committed to trunk:
        Sending jsf-ri/src/main/java/com/sun/faces/context/ExternalContextImpl.java
        Sending test/agnostic/context/regular/src/main/java/com/sun/faces/test/agnostic/context/regular/ExternalContextBean.java
        Adding test/agnostic/context/regular/src/main/webapp/issue2546.xhtml
        Sending test/agnostic/context/regular/src/test/java/com/sun/faces/test/agnostic/context/regular/ExternalContextIT.java
        Transmitting file data ....
        Committed revision 10875.

        Show
        rogerk added a comment - Committed to trunk: Sending jsf-ri/src/main/java/com/sun/faces/context/ExternalContextImpl.java Sending test/agnostic/context/regular/src/main/java/com/sun/faces/test/agnostic/context/regular/ExternalContextBean.java Adding test/agnostic/context/regular/src/main/webapp/issue2546.xhtml Sending test/agnostic/context/regular/src/test/java/com/sun/faces/test/agnostic/context/regular/ExternalContextIT.java Transmitting file data .... Committed revision 10875.
        Hide
        rogerk added a comment -

        Committed to MOJARRA_2_1X_ROLLING:
        Sending jsf-ri/src/main/java/com/sun/faces/context/ExternalContextImpl.java
        Sending test/agnostic/context/regular/src/main/java/com/sun/faces/test/agnostic/context/regular/ExternalContextBean.java
        Adding test/agnostic/context/regular/src/main/webapp/issue2546.xhtml
        Sending test/agnostic/context/regular/src/test/java/com/sun/faces/test/agnostic/context/regular/ExternalContextIT.java
        Transmitting file data ....
        Committed revision 10876.

        Show
        rogerk added a comment - Committed to MOJARRA_2_1X_ROLLING: Sending jsf-ri/src/main/java/com/sun/faces/context/ExternalContextImpl.java Sending test/agnostic/context/regular/src/main/java/com/sun/faces/test/agnostic/context/regular/ExternalContextBean.java Adding test/agnostic/context/regular/src/main/webapp/issue2546.xhtml Sending test/agnostic/context/regular/src/test/java/com/sun/faces/test/agnostic/context/regular/ExternalContextIT.java Transmitting file data .... Committed revision 10876.
        Hide
        rogerk added a comment -

        Committed.

        Show
        rogerk added a comment - Committed.

          People

          • Assignee:
            rogerk
            Reporter:
            dougd
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: