[MGNLUI-5312] Extraction folder may be created with spaces from zip upload Created: 25/Jul/19  Updated: 26/Aug/19  Resolved: 19/Aug/19

Status: Closed
Project: Magnolia UI
Component/s: dialogs
Affects Version/s: None
Fix Version/s: 6.2

Type: Bug Priority: Neutral
Reporter: Mikaël Geljić Assignee: Jorge Franco
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLDAM-622 Uploading a file with spaces in the f... Closed
Relates
relates to MGNLDAM-788 Special characters in Zip-Upload are ... 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
Sprint: Declarative REST 4
Story Points: 2

 Description   

Steps to reproduce:

  1. Upload a zip file whose file name contains spaces
  2. Select "Extract into new folder"
  3. Observe in JCR browser, the top folder node created with spaces in its node name.

These spaces should be replaced with dashes.
https://documentation.magnolia-cms.com/display/DOCS/Managing+pages#Managingpages-Characterrestrictions

Note: files and folders with spaces inside the zip file are not affected and are correctly sanitized, regardless of extract location.

Additional quote via MGNLDAM-788:

It does result in asset links in which the spaces are not correctly escaped. Most browser don't have problems with it, but for instance Facebook does, so in our case the opengraph image is not retrieved.


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