cancel
Showing results for 
Search instead for 
Did you mean: 

special character as space name or content name

nick_l
Champ in-the-making
Champ in-the-making
I am using Alfresco 4.2.c, with default setting during installation. I tried to create space/content which have special characters in its name, such as ':','\', '/'.

I got integrity violations: Invalid property value: Node: workspace://SpacesStore/96be7e83-86a7-40d3-933c-be1f31b1fc41 Type: {http://www.alfresco.org/model/content/1.0}content Property: {http://www.alfresco.org/model/content/1.0}name Constraint: 05280065 Value 'test\' is not valid as a file name. This property must be a valid file name.

The encoding of underlying database postgresql is utf-8. Application server(tomcat) is utf-8 as well.

I've dug the old posts but no luck.

Is there any other setting to make Alfresco accept any characters as space name?

5 REPLIES 5

mitpatoliya
Star Collaborator
Star Collaborator
Unfortunately the answer is No AFAIK,

This restriction is specially imposed by Alfresco to avoid problems in indexing and searching.
Lucene has some issues with this special characters so if it is included in the name it will not be able to index it properly.

mrogers
Star Contributor
Star Contributor
And the backslash character, which is the example you have given would cause chaos.  its the escape character or its a path separator on windows.   Forward slash is the path separator on pretty much everything else.    And colon is used to separate the namespace from the name.

If you really want to you can remove the constraint.   The core node service will be fine, as will alfresco explorer.   However anything based on the file folder service which depends on the path and the name being in sync will fail.   

mrogers
Star Contributor
Star Contributor
Could you use the title property instead?

nick_l
Champ in-the-making
Champ in-the-making
yes.
I tried with cm:title, which can store those special characters. But I still want to show those special characters in the tree view in console.

nick_l
Champ in-the-making
Champ in-the-making
any hint of how to remove the constraint?