cancel
Showing results for 
Search instead for 
Did you mean: 

MySpaces accent problem with childByNamePath

luca
Star Contributor
Star Contributor
Hi,
I have a problem with MySpaces and accented folders. When I click in a folder with accent I return to the home of the user.

The problem is connected to companyhome.childByNamePath that cannot resolve the letters with accent, for example:
${companyhome.childByNamePath["Documents/123 abc folder àèìòù"].name}

Is there a solution to it?
5 REPLIES 5

mikeh
Star Contributor
Star Contributor
Are you seeing this with Internet Explorer, Firefox or both?

Thanks,
Mike

luca
Star Contributor
Star Contributor
Hi Mike,
I have this problem in both browser.

I tried in IE8, Firefox 3.6.3 and also in Chrome 5.

To reproduce it you can do as follow:
1- create a folder with a name with accent, for example: '123 abc àèìòù' under 'Company  Home'
2- try to get it in a webscript through ${companyhome.childByNamePath["123 abc folder àèìòù"].name}, for example put it in myspaces.get.html.ftl


The exception that you will see is this:

Message: 04110004 Wrapped Exception (with status template): 04110023 Error during processing of the template 'Expression companyhome.childByNamePath["Projects/A/AAAKPQ004/Documents/_x0031_23_x0020_abc_x0020_�����"] is undefined on line 55, column 30 in org/alfresco/portlets/myspaces.get.html.ftl.'. Please contact your system administrator.
  
Exception: freemarker.core.InvalidReferenceException - Expression companyhome.childByNamePath["Projects/A/AAAKPQ004/Documents/_x0031_23_x0020_abc_x0020_�����"] is undefined on line 55, column 30 in org/alfresco/portlets/myspaces.get.html.ftl.

laurent1050
Champ in-the-making
Champ in-the-making
Hi Luca,

I've exactly the same problem. http://forums.alfresco.com/en/viewtopic.php?f=36&t=35937, but no answer on the forum  Smiley Sad
Did you find a solution ?

Thanks,
Laurent

luca
Star Contributor
Star Contributor
Unfortunately not, sorry.

We only try not to create folder with strange character…. Not a good solution, but it was not a great issue for us.

If you find any solution, please let me know!  :wink:  Good Luck!

luca
Star Contributor
Star Contributor
Sorry, but no,I don't find a solution, we still have that problem.

But We are using Alfresco 3.2, I hope newer versions of Alfresco don't have this bug, what version do you have?