[
https://issues.apache.org/jira/browse/WW-4622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222082#comment-15222082
]
ASF GitHub Bot commented on WW-4622:
------------------------------------
GitHub user victorsosa opened a pull request:
https://github.com/apache/struts/pull/91
WW-4622 [struts2-tiles-plugin]
[StrutsWildcardServletTilesApplicationContext] getRealPath
[struts2-tiles-plugin] [2.3.28]
[StrutsWildcardServletTilesApplicationContext] getRealPath
protect the struts API by avoiding the NPE calling
ServletContext.getRealPath()
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/victorsosa/struts ww-4622
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/struts/pull/91.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #91
----
commit da8b13a87ef0d6af54a8cabbc62d54fbca67f683
Author: victor sosa <[email protected]>
Date: 2016-03-03T18:16:11Z
Merge pull request #8 from apache/master
update pull
commit a5d716393999110b3701563479a96e83136a8b97
Author: victor sosa <[email protected]>
Date: 2016-03-03T18:41:11Z
Merge pull request #9 from victorsosa/easymock_update
Easymock update
commit 6bb1ec67ad539d4bf6850f8314ef521e06b8295e
Author: victor sosa <[email protected]>
Date: 2016-03-04T22:07:16Z
Merge pull request #10 from apache/master
pull update
commit 379b75292e6d084dc881e71f0a826c45934d9df8
Author: victor sosa <[email protected]>
Date: 2016-03-27T18:43:40Z
Merge pull request #11 from apache/master
update pull
commit 66327a1c3277821ae59bba6f93a7aaa3a4c7b55a
Author: victorsosa <[email protected]>
Date: 2016-04-01T18:04:07Z
fix for WW-4622
StrutsWildcardServletTilesApplicationContext getRealPath NPE
----
> [struts2-tiles-plugin] [2.3.28]
> [StrutsWildcardServletTilesApplicationContext] getRealPath
> ------------------------------------------------------------------------------------------
>
> Key: WW-4622
> URL: https://issues.apache.org/jira/browse/WW-4622
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tiles
> Affects Versions: 2.3.28
> Reporter: Sebastien Leboucher
> Priority: Blocker
>
> Hi,
> Since version 2.3.28, the "struts2-tiles-plugin" API introduce a new listener
> (StrutsWildcardServletTilesApplicationContext).
> This listener make a call to ServletContext.getRealPath method.
> However this method can't be used with a tomcat "unpackWARs=false" deployment
> scheme (https://wiki.apache.org/tomcat/RemoveUnpackWARs).
> Cause when war file is not exploded, this method return always "null".
> So i get a NullPointerException during context loading !
> Could you restore a classpath context loading ? As in the previous version ?
> thanks
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)