[MAGNOLIA-1992] comparator in mappings TreeSet (Uri2RepositoryManager) makes entries with same UriPrefix length to override each other Created: 08/Jan/08  Updated: 23/Jan/13  Resolved: 11/Jan/08

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 3.5.2
Fix Version/s: 3.5.3

Type: Bug Priority: Major
Reporter: Manuel Molaschi Assignee: Vivian Steller
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File info.magnolia.cms.beans.config.URI2RepositoryManager.patch    
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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

The comparator for the mappings TreeSet (Uri2RepositoryManager) makes entries with same UriPrefix length to override each other, because it is based just on length evaluation.
I attach a patch that makes a string compare. I think that it can be enought...



 Comments   
Comment by Vivian Steller [ 11/Jan/08 ]

applied patch. Thanks very much, Manuel.

fixed on svn with r13990.

Generated at Mon Feb 12 03:32:20 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.