[MGNLUI-3780] Show Version action fails when contentConnector rootPath is not '/' Created: 18/Feb/16  Updated: 08/Mar/21  Resolved: 08/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: content app
Affects Version/s: 5.4.4
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Charles Jones Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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   

I traced this issue down to JcrContentConnector.getItemIdByUrlFragment(). It assumes that the argument passed in is a relative path and prepends the rootPath to it. ShowVersionsAction.getLocation() passes the full absolute path to the node causing the failure. After a cursory search, it looks like JcrContentConnector.getItemIdByUrlFragment() is called with a relative path half the time and an absolute path the other half.



 Comments   
Comment by Michael Mühlebach [ 17/Mar/16 ]

Hi Charles, was my assumption correct that you expirenced this with the latest magnolia version: 5.4.4?

Comment by Charles Jones [ 17/Mar/16 ]

We discovered the issue with 5.4.2, but it looks like none of the relevant code has been changed since.

Comment by Roman Kovařík [ 08/Mar/21 ]

Closing as M5.4 has reached EOL.

https://docs.magnolia-cms.com/product-docs/Support/End-of-life-policy.html#_end_of_life

Generated at Mon Feb 12 09:10:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.