[MGNLUI-7443] Don't use javax.activation for mimetype matching Created: 22/Aug/22  Updated: 22/Aug/22

Status: Open
Project: Magnolia UI
Component/s: framework
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Mikaël Geljić Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLREST-450 Multiple activation jars. Closed
causality
caused by MGNLUI-6390 allowedMimeTypePattern property doesn... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

Since MGNLUI-6390 / PR #1853, the UploadField performs mimetype parsing and validation thanks to the javax.activation.MimeType facility.

Since JDK9, this is no longer part of the standard JDK distribution, and the only Magnolia dependency to the old activation framework is transitively through mail module / javax.mail (now jakarta.mail, v2 change of namespace would break here). So we'd rather avoid it, in favor of a more general purpose library for this use case, most likely Guava or apache commons.


Generated at Mon Feb 12 09:46:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.