[MGNLDAM-843] Whitespaces are not sanitized when uploading assets through zip-files Created: 20/Apr/20  Updated: 22/May/20  Resolved: 20/May/20

Status: Closed
Project: Magnolia DAM Module
Component/s: None
Affects Version/s: 3.0
Fix Version/s: 3.0.2

Type: Bug Priority: Neutral
Reporter: Simon Lutz Assignee: Adam Siska
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2020-04-20 at 10.52.18.png     PNG File screenshot-1.png    
Issue Links:
Relates
relates to PAGES-277 Page names are not properly sanitised... Closed
relates to MGNLDAM-847 damfn.getAsset is not working with fi... Closed
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
Epic Link: Migrate apps to new UI framework
Sprint: UI FW 2
Story Points: 3

 Description   

Steps to reproduce

  • Upload images as a zip-file
  • check JCR / use them on a chooser

Expected results

  • Whitespaces sanitized as dashes

Actual results

  • Whitespaces not sanitized - assets cannot be used on templates when not sanitized

Workaround

  • No workaround apart from manually sanitizing before uploading

Development notes

  • Whitespaces are sanitised when images are uploaded directly (i.e. not through a zip-file)
    Green: direct upload as jpeg (whitespaces replaces with dashes / works)
    Red: uploaded as zip (includes whitespaces still / does not work)
  • Note that the upload through zip also appends the file extensions to the names which may be the cause of MGNLUI-5826
    Red: Zip-upload
    Green: Direct upload

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