[MGNLUI-7013] datasource-rootPath is duplicated if content is created in a inner folder Created: 13/Jan/22  Updated: 11/Feb/22  Resolved: 26/Jan/22

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.9, 6.2.15
Fix Version/s: 6.2.16

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Antonín Juran
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLUI-6704 datasource-rootPath is ignored when s... Closed
Problem/Incident
causes MGNLUI-7032 LinkField with text input saves root ... Closed
Relates
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Release notes required:
Yes
Date of First Response:
Epic Link: Support
Sprint: Nucleus 2
Story Points: 5

 Description   

Steps to reproduce:

  1. Modify /dam-app-jcr/decorations/dam-assets-app/apps/dam.subApps.yaml and add rootPath: /travel-demo to the defined datasource.
  2. Go to Assets app and try to upload a new asset into one of the existing folders.

Current result

An error comes up because the rootPath is duplicated:

Message: javax.jcr.PathNotFoundException: /travel-demo/travel-demo/social-icons. Stack trace: info.magnolia.jcr.RuntimeRepositoryException: javax.jcr.PathNotFoundException: /travel-demo/travel-demo/social-icons

Expected result

The detail is open and a new asset can be uploaded

NOTES:
Assets app is just an example, it happens in all apps that has rootPath defined.

Developer notes

Upload works only at root level.


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