[jboss-jira] [JBoss JIRA] (AS7-5200) 128.3.5 Static Content
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Fri Apr 5 08:14:42 EDT 2013
[ https://issues.jboss.org/browse/AS7-5200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler reassigned AS7-5200:
-----------------------------------
Assignee: Tomaz Cerar (was: Thomas Diesler)
With [WebBundleContextProcessor|https://github.com/tdiesler/jboss-as/commit/94aee744c9dfec35d748df787f97ff69d64fd74d#diff-0]
{code}
// For confidentiality reasons, a Web Runtime must not return any static content for paths that start with
// WEB-INF, OSGI-INF, META-INF, OSGI-OPT
FilterMappingMetaData filterMetaData = new FilterMappingMetaData();
filterMetaData.setFilterName(WebBundleContextFilter.class.getName());
filterMetaData.setServletNames(Collections.singletonList("io.undertow.DefaultServlet"));
filterMetaData.setUrlPatterns(Arrays.asList("/OSGI-INF/*", "/OSGI-OPT/*"));
JBossWebMetaData jbossWebMetaData = warMetaData.getMergedJBossWebMetaData();
List<FilterMappingMetaData> filterMappings = jbossWebMetaData.getFilterMappings();
if (filterMappings == null) {
filterMappings = new ArrayList<FilterMappingMetaData>();
jbossWebMetaData.setFilterMappings(filterMappings);
}
filterMappings.add(filterMetaData);
{code}
seeing
{code}
Caused by: java.lang.NullPointerException
at io.undertow.servlet.handlers.FilterHandler.<init>(FilterHandler.java:56)
at io.undertow.servlet.core.DeploymentManagerImpl.setupServletChains(DeploymentManagerImpl.java:448)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:164)
{code}
> 128.3.5 Static Content
> ----------------------
>
> Key: AS7-5200
> URL: https://issues.jboss.org/browse/AS7-5200
> Project: Application Server 7
> Issue Type: Sub-task
> Components: OSGi
> Reporter: David Bosschaert
> Assignee: Tomaz Cerar
> Fix For: 8.0.0.Alpha1
>
>
> For confidentiality reasons, a Web Runtime must not return any static content for paths that start with one of the following prefixes:
> WEB-INF/
> OSGI-INF/
> META-INF/
> OSGI-OPT/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list