You are viewing a plain text version of this content. The canonical link for it is here.
Posted to portalapps-dev@portals.apache.org by "Woonsan Ko (JIRA)" <ji...@apache.org> on 2014/01/16 17:02:38 UTC

[jira] [Created] (APA-54) WebContent - NPE when a reverse proxied URL is through RequestDispatcher#include()

Woonsan Ko created APA-54:
-----------------------------

             Summary: WebContent - NPE when a reverse proxied URL is through RequestDispatcher#include()
                 Key: APA-54
                 URL: https://issues.apache.org/jira/browse/APA-54
             Project: Portals Apps
          Issue Type: Bug
    Affects Versions: apa-webcontent-1.3
            Reporter: Woonsan Ko
            Assignee: Woonsan Ko
             Fix For: apa-webcontent-1.4


The reverse proxy feature [1] doesn't work when a url is included through RequestDispatcher#include().
For example, the following throws an NPE because request#getPathInfo() returns null.

<jsp:include page="/rproxy/portals/index.html" />

It should have checked request attributes like the following:
javax.servlet.include.request_uri
javax.servlet.include.context_path
javax.servlet.include.servlet_path
javax.servlet.include.path_info
javax.servlet.include.query_string

[1] http://portals.apache.org/applications/webcontent/rproxy.html



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)