AnsweredAssumed Answered

Alfresco Upload document with whitespaces

Question asked by mbarrerag on Jan 16, 2013
Latest reply on Jan 16, 2013 by mbarrerag
Hello everybody,

Is it possible to use whitespaces in the document's name and then download the document using the java webservice??…. Here is an example of my code:

Reference ref = new Reference(STORE, null, folder.getPath()
               + "/cm:" + name);
         Content[] read = getContentService().read(
               new Predicate(new Reference[] { ref }, STORE, null),
               Constants.PROP_CONTENT);
         content = read[0];

The value of name is "Exmple foo bar.pdf" so the path of the new Reference is : /api/cm:Space/cm:Test/cm:Example foo bar.pdf

The name is correct and also the path is correct, but when it tries to read the content thows an axis exception.

Thanks in advance

Outcomes