This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-dev.git


The following commit(s) were added to refs/heads/master by this push:
     new 16d6f9bdea FELIX-6727 : NullPointerException when using REST API to 
install a bundle
16d6f9bdea is described below

commit 16d6f9bdeacaf8568f350613c13ccb64c7ef0490
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Thu Sep 12 09:14:56 2024 +0200

    FELIX-6727 : NullPointerException when using REST API to install a bundle
---
 .../java/org/apache/felix/webconsole/internal/core/BundlesServlet.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
 
b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
index 190efc75c7..fde9fcffb0 100644
--- 
a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
+++ 
b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
@@ -372,6 +372,7 @@ public class BundlesServlet extends 
AbstractOsgiManagerPlugin implements Invento
             if (req.getRequestURI().endsWith( "/install" )) {
                 // just send 200/OK, no content
                 resp.setContentLength( 0 );
+                resp.setStatus(200);
             } else {
                 // redirect to URL
                 resp.sendRedirect( req.getRequestURI() );

Reply via email to