jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Closed: (JCR-39) document view: importXML() fails on protected property jcr:primaryType
Date Tue, 22 Feb 2005 10:19:49 GMT
     [ 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


Mime
View raw message