You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2024/06/12 15:08:00 UTC
[jira] [Assigned] (FELIX-6711) Potential NPE in HttpServletRequest.getPart
[ https://issues.apache.org/jira/browse/FELIX-6711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler reassigned FELIX-6711:
---------------------------------------
Assignee: Carsten Ziegeler
> Potential NPE in HttpServletRequest.getPart
> -------------------------------------------
>
> Key: FELIX-6711
> URL: https://issues.apache.org/jira/browse/FELIX-6711
> Project: Felix
> Issue Type: Bug
> Components: HTTP Service
> Affects Versions: http.wrappers-1.1.2, http.wrappers-1.0.2, http.jetty12-1.0.8, http.jetty-5.1.18
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Priority: Major
>
> If getPart() is called on the request wrappers, it is not checked whether the actual part exists (is null) and the returned value is always wrapped.
> Resulting in an NPE like
> java.lang.NullPointerException: null
> at org.apache.felix.http.javaxwrappers.PartWrapper.getInputStream(PartWrapper.java:44) [org.apache.felix.http.jetty:5.1.14]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)