AnsweredAssumed Answered

Underscores In Namespace Prefix

Question asked by ufonduo on Mar 26, 2016
Latest reply on Mar 29, 2016 by ufonduo
Greetings All,

I created a custom model with the definition (not exact) as shown below.

    <strong>namespace uri="ufo.GenDoc.model" prefix="ufo_gen_doc"</strong>

I also implemented a custom action that determines the number of pages in a PDF document and store that value in an aspect defined in the model.

Alfresco Share was customised to render properties of the model appropriately (via a properties files).

Everything works pretty fine. However, when I edit a document (say change the description) and attempt to save, I get the exception:

<strong>org.alfresco.service.namespace.NamespaceException: Namespace prefix ufo is not mapped to a namespace URI</strong>

My guess is that Alfresco Share treats the '_' character as an escape character for the ':' character.

If that is correct, is there any way to instruct Alfresco Share to recognise the entire "ufo_gen_doc" as the namespace prefix. 

NOTE: I'm working on Alfresco Community 5.0.d

Thanks.

Outcomes