Skip to content

Commit 6c824d0

Browse files
dkayiwaCopilot
andauthored
Upgrade commons-fileupload2-jakarta to jakarta-servlet6 2.0.0-M5 (#242)
Replace obsolete commons-fileupload2-jakarta:2.0.0-M1 with commons-fileupload2-jakarta-servlet6:2.0.0-M5 and update the import in XSSFilter to use the new package. This aligns with the Servlet 6.1 API and commons-fileupload2 version already provided by openmrs-core. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c44c71f commit 6c824d0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

omod/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@
134134

135135
<dependency>
136136
<groupId>org.apache.commons</groupId>
137-
<artifactId>commons-fileupload2-jakarta</artifactId>
138-
<version>2.0.0-M1</version>
139-
<scope>provided</scope>
137+
<artifactId>commons-fileupload2-jakarta-servlet6</artifactId>
138+
<version>2.0.0-M5</version>
139+
<scope>provided</scope>
140140
</dependency>
141141
</dependencies>
142142

omod/src/main/java/org/openmrs/web/xss/XSSFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import org.springframework.web.multipart.support.DefaultMultipartHttpServletRequest;
2323

24-
import static org.apache.commons.fileupload2.jakarta.JakartaServletFileUpload.isMultipartContent;
24+
import static org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletFileUpload.isMultipartContent;
2525

2626
public class XSSFilter implements Filter {
2727

0 commit comments

Comments
 (0)