You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2005/02/22 11:19:49 UTC
[jira] Closed: (JCR-39) document view: importXML() fails on protected property jcr:primaryType
[ http://issues.apache.org/jira/browse/JCR-39?page=history ]
Stefan Guggisberg closed JCR-39:
--------------------------------
Resolution: Fixed
fixed in rev154825
> document view: importXML() fails on protected property jcr:primaryType
> ----------------------------------------------------------------------
>
> Key: JCR-39
> URL: http://issues.apache.org/jira/browse/JCR-39
> Project: Jackrabbit
> Type: Bug
> Components: API
> Reporter: Dominique Jaeggi
> Assignee: Stefan Guggisberg
> Attachments: cqapi_crx_small.zip
>
> when trying to import an xml document where elements contain the attribute jcr:primaryType the import fails with:
> javax.jcr.nodetype.ConstraintViolationException: cannot set the value of a protected property /testroot/docviewimport/doc/jcr:primaryType
> at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:907)
> at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1044)
> at org.apache.jackrabbit.core.xml.DocViewImportHandler.startElement(DocViewImportHandler.java:124)
> at org.apache.jackrabbit.core.xml.ImportHandler.startElement(ImportHandler.java:164)
> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
> at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.jackrabbit.core.SessionImpl.importXML(SessionImpl.java:836)
> at org.apache.jackrabbit.test.api.DocViewImportTest.setUp(DocViewImportTest.java:92)
> at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
> if i understand the spec correctly, the import process should take care of this attribute and determine the node type of the new nodes based on it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira