[MULTISITE-166] NotEmptyUriPrefixMatcher only matches Uri-Prefix with incorrect "startWith" Created: 12/Dec/22 Updated: 12/Dec/22 |
|
| Status: | Open |
| Project: | Magnolia Multisite Module |
| Component/s: | None |
| Affects Version/s: | 2.1.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | High |
| Reporter: | Sebastian Mohr | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| 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
|
| Description |
Steps to reproduce
Expected resultshttps://travel-demo.magnolia-cms.com/dest shows Destination-Page with Sportstation Header https://travel-demo.magnolia-cms.com/destination shows Destination-Page with Travel Header Actual resultshttps://travel-demo.magnolia-cms.com/dest shows Destination-Page with Sportstation Header https://travel-demo.magnolia-cms.com/destination shows Error Workaround- Development notesinfo.magnolia.multisite.sites.matchers.NotEmptyUriPrefixMatcher matches UriPrefix in multiple places with startWith
It should match either if uri is only uriPrefix itself or uri starts with uriPrefix as path, e.g. in described example it should only match if uri is "/dest" or "/dest/" only or starts with "/dest/" with further path |