AnsweredAssumed Answered

cut & paste

Question asked by shay on Jun 13, 2007
Latest reply on Jun 16, 2007 by shay

I build new space with the following code:

// assign name
           Map<QName, Serializable> contentProps = new HashMap<QName, Serializable>();
           String legalSpaceName = getLegalName(spaceName);
           contentProps.put(ContentModel.PROP_NAME, legalSpaceName);
           // create space node
           ChildAssociationRef association = nodeService.createNode(fatherNode,
                 QName.createQName(NamespaceService.CONTENT_MODEL_PREFIX, spaceName),

           child =  association.getChildRef();

all went fine untill i tride to do cut & paste this space via the web client interface and i got the following error:

Unable to paste item due to system error: A namespace prefix is not registered for uri cm

when i do copy & paste on the same space it works fine and then i can do the cut & paste (on the copy) without no erorr.
when i do the cut & paste on a space which i create via the web client interface it works fine.

did i miss something in my code?

Thanks in advance,