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

rombert pushed a commit to branch issue/SLING-13083
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-engine.git

commit bca2ca90426e7d838cce206befebf4c8b8123936
Author: Robert Munteanu <[email protected]>
AuthorDate: Thu Jan 29 13:56:03 2026 +0100

    SLING-13083 - Code acessing the "request-parts-iterator"  request attribute 
broken after migration to Jakarta
    
    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;
 

Reply via email to