[ https://issues.apache.org/jira/browse/FELIX-6727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler updated FELIX-6727: ------------------------------------ Description: When a bundle is installed via the REST API below NullPointerException might occur. The reason is that the detection of whether a response has already been written is based on status, error or content type - but the BundlesServlet only sets content length {code:java} 12.09.2024 09:11:44.086 *ERROR* [qtp1970453787-65] org.apache.felix.http Exception while processing request to /system/console/install java.lang.NullPointerException: Cannot read field "bundleRequested" because "reqInfo" is null at org.apache.felix.webconsole.internal.core.BundlesServlet.renderContent(BundlesServlet.java:523) at org.apache.felix.webconsole.internal.servlet.EnhancedPluginAdapter.renderContent(EnhancedPluginAdapter.java:158) at org.apache.felix.webconsole.internal.servlet.AbstractPluginAdapter.doGet(AbstractPluginAdapter.java:124) at org.apache.felix.webconsole.internal.servlet.EnhancedPluginAdapter.service(EnhancedPluginAdapter.java:152) {code} was: When a bundle is installed via the REST API below NullPointerException might occur. The reason is that the detection of whether a response has already been written is based on status, error or content type - but the BundlesServlet only sets content length {source} 12.09.2024 09:11:44.086 *ERROR* [qtp1970453787-65] org.apache.felix.http Exception while processing request to /system/console/install java.lang.NullPointerException: Cannot read field "bundleRequested" because "reqInfo" is null at org.apache.felix.webconsole.internal.core.BundlesServlet.renderContent(BundlesServlet.java:523) at org.apache.felix.webconsole.internal.servlet.EnhancedPluginAdapter.renderContent(EnhancedPluginAdapter.java:158) at org.apache.felix.webconsole.internal.servlet.AbstractPluginAdapter.doGet(AbstractPluginAdapter.java:124) at org.apache.felix.webconsole.internal.servlet.EnhancedPluginAdapter.service(EnhancedPluginAdapter.java:152) {source} > NullPointerException when using REST API to install a bundle > ------------------------------------------------------------ > > Key: FELIX-6727 > URL: https://issues.apache.org/jira/browse/FELIX-6727 > Project: Felix > Issue Type: Bug > Components: Web Console > Affects Versions: webconsole-5.0.6 > Reporter: Carsten Ziegeler > Assignee: Carsten Ziegeler > Priority: Major > Fix For: webconsole-5.0.8 > > > When a bundle is installed via the REST API below NullPointerException might > occur. The reason is that the detection of whether a response has already > been written is based on status, error or content type - but the > BundlesServlet only sets content length > {code:java} > 12.09.2024 09:11:44.086 *ERROR* [qtp1970453787-65] org.apache.felix.http > Exception while processing request to /system/console/install > java.lang.NullPointerException: Cannot read field "bundleRequested" because > "reqInfo" is null > at > org.apache.felix.webconsole.internal.core.BundlesServlet.renderContent(BundlesServlet.java:523) > at > org.apache.felix.webconsole.internal.servlet.EnhancedPluginAdapter.renderContent(EnhancedPluginAdapter.java:158) > at > org.apache.felix.webconsole.internal.servlet.AbstractPluginAdapter.doGet(AbstractPluginAdapter.java:124) > at > org.apache.felix.webconsole.internal.servlet.EnhancedPluginAdapter.service(EnhancedPluginAdapter.java:152) > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)