This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-engine.git
The following commit(s) were added to refs/heads/master by this push:
new e87a004 SLING-13083 - Code acessing the "request-parts-iterator"
request attribute broken after migration to Jakarta (#69)
e87a004 is described below
commit e87a004790cf9d1cf9d27da63befd5b202defaf8
Author: Robert Munteanu <[email protected]>
AuthorDate: Thu Jan 29 15:36:37 2026 +0100
SLING-13083 - Code acessing the "request-parts-iterator" request attribute
broken after migration to Jakarta (#69)
Have the StreamedRequestPart implement both 'Part' interfaces. There are no
changes between the two
interfaces, which simplifies the work quite a bit.
We don't need to touch the RequestPartIterator itself because the
ClassCastException happens when
the element is downcast and the typed iterator is not published anywhere.
---
.../org/apache/sling/engine/impl/parameters/RequestPartsIterator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/sling/engine/impl/parameters/RequestPartsIterator.java
b/src/main/java/org/apache/sling/engine/impl/parameters/RequestPartsIterator.java
index c758d77..f018b63 100644
---
a/src/main/java/org/apache/sling/engine/impl/parameters/RequestPartsIterator.java
+++
b/src/main/java/org/apache/sling/engine/impl/parameters/RequestPartsIterator.java
@@ -85,7 +85,7 @@ public class RequestPartsIterator implements Iterator<Part> {
/**
* Internal implementation of the Part API from Servlet 3 wrapping the
Commons File Upload FIleItemStream object.
*/
- private static class StreamedRequestPart implements Part {
+ private static class StreamedRequestPart implements Part,
javax.servlet.http.Part {
private final FileItemStream fileItem;
private final InputStream inputStream;