cancel
Showing results for 
Search instead for 
Did you mean: 

Underscores In Namespace Prefix

ufonduo
Champ in-the-making
Champ in-the-making
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.

1 REPLY 1

ufonduo
Champ in-the-making
Champ in-the-making
Though I could not find a way to instruct Alfresco Share to recognise the entire "ufo_gen_doc" as the namespace prefix, I realised I can just change the namespace prefix in the model and in all configuration files.

The prefix was changed to "ufo", and I am yet to notice any issue. Both old and new documents are accessible.

Thanks.