[MGNLDAM-1088] damLinkField with rootPath in data source saves upload outside rootPath Created: 28/Nov/22  Updated: 14/Dec/22

Status: Open
Project: Magnolia DAM Module
Component/s: DAM App
Affects Version/s: 3.0.18
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Gabriel Katz Assignee: Unassigned
Resolution: Unresolved Votes: 1
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:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Epic Link: AuthorX Support
Team: AuthorX

 Description   

I would like to restrict a DAM link field to an asset folder.

Steps to reproduce:

  • Configure a dialog field like so:
image:
  required: true
  label: templates.pages.newsroom-article.footer.assets.image.label
  $type: damLinkField
  datasource:
    $type: assetDatasource
    rootPath: /bilddatenbank/
  • Click on "Upload" or click on "Upload & Edit" and upload a file

Actual behavior:

  • The file ends up in "/"

Expected behavior:

  • The file ends up in the rootPath of the dataSource

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