This is an automated email from the ASF dual-hosted git repository.
cziegeler pushed a commit to branch http-4.x
in repository https://gitbox.apache.org/repos/asf/felix-dev.git
The following commit(s) were added to refs/heads/http-4.x by this push:
new a056a02c56 FELIX-6649 : BundlesServlet replaces the previous bundle
a056a02c56 is described below
commit a056a02c569c2f3101f25cb41dd92fcb28d0bcf8
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Thu Sep 7 06:44:37 2023 +0200
FELIX-6649 : BundlesServlet replaces the previous bundle
---
webconsole/pom.xml | 2 +-
.../org/apache/felix/webconsole/internal/core/BundlesServlet.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/webconsole/pom.xml b/webconsole/pom.xml
index 2545c921b7..c15ceb1e30 100644
--- a/webconsole/pom.xml
+++ b/webconsole/pom.xml
@@ -361,7 +361,7 @@
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
- <version>3.0.1</version>
+ <version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
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 c6369c1fd6..814f60600f 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
@@ -1500,7 +1500,7 @@ public class BundlesServlet extends
SimpleWebConsolePlugin implements OsgiManage
IOUtils.copy(bundleStream, out);
}
} catch ( final Exception e ) {
- log( LogService.LOG_ERROR, "Problem accessing uploaded bundle
file: " + part.getName(), e );
+ log( LogService.LOG_ERROR, "Problem accessing uploaded bundle
file: " + part.getSubmittedFileName(), e );
// remove the tmporary file
if ( tmpFile != null && tmpFile.exists()) {
@@ -1516,7 +1516,7 @@ public class BundlesServlet extends
SimpleWebConsolePlugin implements OsgiManage
final boolean refreshPackages = refreshPackagesItem != null;
final boolean parallelVersion = parallelVersionItem != null;
- bundleLocation = "inputstream:".concat(part.getName());
+ bundleLocation =
"inputstream:".concat(part.getSubmittedFileName());
installBundle( bundleLocation, tmpFile, startLevel, start,
refreshPackages, parallelVersion, uploadId);
}
}