[MAGNOLIA-6376] ClasspathResourceOrigin should warn users about duplicate resources Created: 16/Sep/15  Updated: 05/Nov/16

Status: Open
Project: Magnolia
Component/s: resource-loader
Affects Version/s: 5.4.2
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Magnolia International 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 MAGNOLIA-5635 i18n message bundle resolver cannot h... Closed
relates to MAGNOLIA-6581 Classpath service won't serve resourc... Closed
dependency
depends upon MAGNOLIA-6523 Refactor ClasspathResourceOrigin and ... 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   

In info.magnolia.i18nsystem.DefaultMessageBundlesLoader we used to warn users about duplicate resource files (this could happen e.g when using a development environment with duplicate jars of different versions, but could also simply happen when files have such a common name that they occur in multiple jars. Of course, this should happen after some filtering (no need to warn about duplicate META-INF/MANIFEST.MF files)

It's currently not trivial to do within ClasspathResourceOrigin, since the Reflections library we use returns a Set<String> of resource paths.


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