[MGNLDAM-542] MoveContentToDamMigrationTask.copyToDam() produces "...//.." in path Created: 02/Feb/15  Updated: 12/Mar/21  Resolved: 12/Mar/21

Status: Closed
Project: Magnolia DAM Module
Component/s: DAM App
Affects Version/s: 2.0.6
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Will Scheidegger Assignee: Unassigned
Resolution: Obsolete 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

 Description   

On line 249 the target path is created where the resource should me copied to in the dam workspace:

String targetPath = this.damUploadedRootNode.getPath() + "/" + parentPath;

However "parentPath" starts with a "/". This will therefore lead to a path with "//" in it. IMO it should be:

String targetPath = this.damUploadedRootNode.getPath() + parentPath;


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