FELIX-6829 Remove http.jetty dependency on commons-fileupload#505
FELIX-6829 Remove http.jetty dependency on commons-fileupload#505enapps-enorman wants to merge 4 commits into
Conversation
|
I believe the now unused ServletHandler#getMultipartSecurityContext and related code could also be removed since the only usage was in the now removed multipart handling code. But I thought I would get some feedback on the general approach before doing that extra cleanup. UPDATE: cleaned up the the dead code at 3627401 |
|
@enapps-enorman I like the approach, it's just another dependency we can do without nowadays. I'm fine with removing and delegation to Jetty instead. |
|
I suggest to run the OSGi TCK for the http service, http whiteboard and servlet whiteboard on the proposed change. |
For clarification, is that referring to the test cases published at https://github.com/osgi/osgi or something private I don't have access to? If it is the former then I tried running it against org.apache.felix.http.jetty-5.2.3-SNAPSHOT and I didn't get any test failures. |
|
Yes, it is that public git repo, you need to run the test cases from the R8 cmpn release:
and R8.1 cmpn release: |
Jetty does not need the Apache commons-fileupload library. Modern versions of Jetty support the Java Servlet Specification (3.0 and newer), which includes built-in, native APIs to parse multipart/form-data requests.
Refactoring to use the standard servlet apis: