[ACE-4740] File names with more than one sequential space cause doclib failures Created: 24-Nov-15  Updated: 25-Nov-15  Resolved: 25-Nov-15

Status: Verified
Project: Alfresco One Platform
Component/s: Document Library
Affects Version/s: 5.1
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: Derek Hulley [X] (Inactive) Assignee: Closed Issues
Resolution: Not a bug Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: 20 minutes
Original Estimate: Not Specified

Alfresco Share v5.1-SNAPSHOT
(r114621-b429, Aikau, Spring Surf 5.1-SNAPSHOT, Spring WebScripts 5.5, Freemarker 2.3.20-alfresco-patched, Rhino 1.7R4-alfresco-patched, Yui 2.9.0-alfresco-20141223)
Alfresco Enterprise v5.1.0
(r117183-b346) schema 9011

Attachments: PNG File screenshot-1.png     PNG File screenshot-2.png     PNG File screenshot-3.png     PNG File screenshot-4.png     PNG File screenshot-5.png     PNG File screenshot-6.png     PNG File screenshot-7.png    
Issue Links:
Build Location: https://bamboo.alfresco.com
Build Number: latest
Regression Since:
User Interface


The Share document library cannot handled filenames with with multiple sequential spaces e.g.

  • FilenameWithOne Space.txt (works)
  • FilenameWithTwo Spaces.txt (fails)

To reproduce:

  1. Login to Share as admin and browse to the Project Library of the sample site
  2. Create a new file called One Space.txt (success)
  3. Rename the file to NoSpaces.txt (success)
  4. Delete the file NoSpaces.txt (success)
  5. Create a new file called Two Spaces.txt (success)
  6. Rename the file to NoSpaces.txt

Expected result:

  1. The file is renamed

Actual result:

  1. The rename fails and a dialog message eventually appears saying "Could not rename ..."

Comment by Kevin Roast [X] (Inactive) [ 25-Nov-15 ]

Whitespace in HTML (i.e. in any browser app generally) is collapsed. If you don't want it collapsed we need to convert all spaces to a non-breaking-space character, that also means words won't break on spaces and long names won't wrap etc. - generally you don't want to do this.

You sure this is a bug and not just confusion around whether a duplicate item exists (because it is not possible to visibly see the two spaces...?) Share just calls set properties to rename something, no magic. No code in this area has changed in years.

Comment by Kevin Roast [X] (Inactive) [ 25-Nov-15 ]

Just tried it in Share 5.1. This works correctly, you can rename files with a single or multiple consecutive spaces in them with no issues.

Generated at Fri Jul 10 04:45:43 BST 2020 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.