[MAGNOLIA-5589] Statement StringUtils.removeStart(handle, "/") is not assigned to the variable Created: 06/Jan/14  Updated: 13/Jan/14  Resolved: 06/Jan/14

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 4.5, 5.0
Fix Version/s: 4.5.15, 5.2.2

Type: Bug Priority: Neutral
Reporter: Jaroslav Simak Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MAGNOLIA-5619 CLONE - Statement StringUtils.removeS... Closed
dependency
is depended upon by MGNLETK-112 Path handle is stripped twice thus ac... Closed
is depended upon by MULTISITE-11 Path handle is stripped twice thus ac... 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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

info.magnolia.cms.beans.config.URI2RepositoryMapping
Code in the genHandle(String) method:

StringUtils.removeStart(handle, "/");

is not assigned to the variable thus we get wrong uri.
Example

handlePrefix = "/test"
uri = "/test/xxx"

Then we get something like "/test//test/xxx"


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