[MGNLCI-33] Align path translation with core Created: 09/Feb/24  Updated: 09/Feb/24

Status: Open
Project: Content Importer
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Maxime Michel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

From Raphael on Slack:

Hi there, with JCR export/import and the content importer module. The example I’m sharing here is in the user workspace, but it’s probably not workspace-related.It is about a user with a dot in its name, like name.surname. When you create such a user in JCR and export it using the JCR app, the file path ends up having an extra dot, turning into workspace.the.jcr.path.name..surname.yaml. If you delete the user in the UI and import the file from there, all is good, and the user is perfectly saved. Trying to replace the double dot with a single one also fails. It seems there shouldn’t be any dots in the user name part of the path for it to work. I changed the last part of the path from a dot to a dash, and it worked! 

With additional feedback from Roman:

Looks like the content importer has its own path translation which doesn’t cover this. There is a core method which should handle this gracefully.


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