cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with Folder Names of Alfresco

bala_28
Champ in-the-making
Champ in-the-making
hi ,
    i am newbie to this forum. i am using Alfresco 3.3 community edition and accessing via webservices API.The problem i am facing is about the valid folder names in the
alfresco. it has been throwing faults for folder names
             1) Starts with an number
             2)Folder name contains special characters which includes spaces,hypen ….

   i tried using the ISO6075.java encode and decode methods , but still i am getting the faults. so my questions are

1) How to solve the folder names in alfresco ?
2) Whether this is present in only community edition ? What about enterprise edition ?

 
Thanks in advance,

Bala.
1 REPLY 1

jcustovic
Champ in-the-making
Champ in-the-making
You need to user org.alfresco.util.ISO9075.
Example:


String filename = "01SomeFile";
System.out.println(ISO9075.encode(filename));
System.out.println(ISO9075.decode(ISO9075.encode(filename)));

Only use ISO9075 when creating path to space. Don't use it when creating space name.