cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle spaces in space names?

kumbach
Champ in-the-making
Champ in-the-making
I'm writing an web service application that uses the RepositoryService to create a folder hierarchy.

So far things are going well except when trying to create folders within existing folders that have a space in the name. E.g. "Student Data".

Calls to RepositoryService().get() are throwing a RepositoryFault with this message:

Error executing xpath: xpath: /app:company_home/cmSmiley Frustratedtudent Data

Things I've tried unsuccessfully include:

1. using this name: "Student_X_0020_Data" as seen in another forum post
2. calling ISO9075("Student Data") to encode the name, also as seen in another forum post

I recall seeing another post about spaces not being allowed in spacenames when using the web services, but I can't find that post again - arg!! 

In fact, if you try changing the WebServiceSamples app to work with the store named "Sample Folder", I believe it fails too.

Thanks!
1 REPLY 1

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

There is obviously some issue with encoding path names occurring here.  Probably the best course of action will be to create a Jira issue, this will ensure that this potential issue is dealt with.

Any code you can provide when logging the issue helps us to reproduce, and therefore fix, the issue.

Cheers,
Roy

JIRA - http://issues.alfresco.com