[MGNLDAM-622] Uploading a file with spaces in the filename leads to a node created with spaces Created: 30/Sep/15  Updated: 25/Jul/19  Resolved: 02/Oct/15

Status: Closed
Project: Magnolia DAM Module
Component/s: DAM App
Affects Version/s: 2.0.11, 2.1.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Richard Gange Assignee: Unassigned
Resolution: Not an issue Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MGNLUI-5312 Extraction folder may be created with... Closed
relation
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   

Steps to reproduce:

  1. Upload a new asset to the dam which has spaces in it's filename
  2. Observe the node created with spaces in it's node name.

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



 Comments   
Comment by Richard Gange [ 02/Oct/15 ]

Further research revealed that this is not happening. The jcr node name does have the spaces replaced with dashes. The filename and name properties reflect the spaces.

<sv:node sv:name="10334314-629657143823578-5546219590475504036_n.jpg" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <sv:property sv:name="jcr:primaryType" sv:type="Name">
    <sv:value>mgnl:asset</sv:value>
  </sv:property>
  <sv:property sv:name="jcr:uuid" sv:type="String">
    <sv:value>265263fa-a02f-4d65-a7fc-c1464f9e6e23</sv:value>
  </sv:property>
  <sv:property sv:name="jcr:createdBy" sv:type="String">
    <sv:value>admin</sv:value>
  </sv:property>
  <sv:property sv:name="mgnl:created" sv:type="Date">
    <sv:value>2015-10-02T15:52:16.313+02:00</sv:value>
  </sv:property>
  <sv:property sv:name="mgnl:createdBy" sv:type="String">
    <sv:value>superuser</sv:value>
  </sv:property>
  <sv:property sv:name="mgnl:lastModified" sv:type="Date">
    <sv:value>2015-10-02T15:52:16.313+02:00</sv:value>
  </sv:property>
  <sv:property sv:name="mgnl:lastModifiedBy" sv:type="String">
    <sv:value>superuser</sv:value>
  </sv:property>
  <sv:property sv:name="name" sv:type="String">
    <sv:value>10334314 629657143823578 5546219590475504036_n</sv:value>
  </sv:property>
  <sv:node sv:name="jcr:content">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>mgnl:resource</sv:value>
    </sv:property>
    <sv:property sv:name="jcr:uuid" sv:type="String">
      <sv:value>fa5da077-4d15-43bb-9dd6-c8367970a2b2</sv:value>
    </sv:property>
    <sv:property sv:name="extension" sv:type="String">
      <sv:value>jpg</sv:value>
    </sv:property>
    <sv:property sv:name="fileName" sv:type="String">
      <sv:value>10334314 629657143823578 5546219590475504036_n.jpg</sv:value>
    </sv:property>
    <sv:property sv:name="height" sv:type="Long">
      <sv:value>400</sv:value>
Generated at Mon Feb 12 05:01:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.