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

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.13

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

Issue Links:
Cloners
clones MAGNOLIA-5589 Statement StringUtils.removeStart(han... Closed
relation
is related to MGNLETK-120 CLONE - Path handle is stripped twice... 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
Date of First Response:

 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"



 Comments   
Comment by Roman Kovařík [ 14/Jan/14 ]

Commit:
https://git.magnolia-cms.com/gitweb/?p=magnolia_main.git;a=commit;h=5421ac8656be083dac13fe7bb8e236d6f826cff2

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