Skip to content

Use Servlet API 3.0 HttpServletRequest.getPart to process form data#492

Open
tenzap wants to merge 2 commits into
w3c:mainfrom
tenzap:servletApi3.0-getPart
Open

Use Servlet API 3.0 HttpServletRequest.getPart to process form data#492
tenzap wants to merge 2 commits into
w3c:mainfrom
tenzap:servletApi3.0-getPart

Conversation

@tenzap

@tenzap tenzap commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

Fixes: #455

  • Add @MultipartConfig annotation
  • use HttpServletRequest.getPart to get the form data

Please review carefully since my java & servlet experience is low.
I have no idea if this would still work with jigsaw server since this requires Servlet API >= 3.0

@tenzap tenzap force-pushed the servletApi3.0-getPart branch from 3ff6efb to e330858 Compare March 14, 2026 10:37
Fixes: w3c#455

- Add @MultipartConfig annotation
- use HttpServletRequest.getPart to get the form data
@tenzap

tenzap commented Mar 20, 2026

Copy link
Copy Markdown
Contributor Author

@ylafon , it builds fine now, but I don't know if this would still work with jigsaw.

@ylafon

ylafon commented Mar 26, 2026

Copy link
Copy Markdown
Member

@ylafon , it builds fine now, but I don't know if this would still work with jigsaw.

Yes, the issue is that Jigsaw is still stuck in 2.5

@tenzap

tenzap commented Mar 27, 2026

Copy link
Copy Markdown
Contributor Author

If you have a better fix for #455 that would still work with jigsaw, I would prefer that, instead of maintaining the changes of this PR in a debian-specific patch. Or maybe jigsaw can use the jar that adds support for servlet api 4.0.1?

BTW, any update on #449 ? It would be great to have that done for the next release of css-validator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

validation by file upload fails on tomcat 11 (Unable to process parts as no multi-part configuration has been provided)

2 participants