jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-762) System view XML uses hardcoded sv: prefix
Date Fri, 23 Feb 2007 11:33:05 GMT

     [ https://issues.apache.org/jira/browse/JCR-762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Zitting resolved JCR-762.
-------------------------------

    Resolution: Fixed

Fixed in revisions 510905 and 510908.

Thanks for the problem report!


> System view XML uses hardcoded sv: prefix
> -----------------------------------------
>
>                 Key: JCR-762
>                 URL: https://issues.apache.org/jira/browse/JCR-762
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: JCR 1.0.1, xml
>    Affects Versions: 0.9, 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2
>            Reporter: Piotr Przybylak
>         Assigned To: Jukka Zitting
>             Fix For: 1.2.3
>
>
> Jackrabbit enforces that the xml docment that imported into repository through the use
of  ContentHandler have attributte "name" with specific prefix ("sv"), instead of specific
namespace ("com.cisco.topos.jcr.sv").
> Example of wrong behavior:
> Calling
> marshaller.marshal(entry, session.getImportContentHandler(session.getNodeByUUID(channelId).getPath(),
ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW));
> where entry is object that represent xml structure with namespace "com.cisco.topos.jcr.sv"
assigned to prefix other then "sv" or as default namespace  will cause  exception
> java.lang.RuntimeException: javax.xml.bind.MarshalException
>  javax.jcr.InvalidSerializedDataException: missing mandatory sv:name attribute of element
sv:node
> 	at org.apache.jackrabbit.core.xml.SysViewImportHandler.startElement(SysViewImportHandler.java:122)
> 	at org.apache.jackrabbit.core.xml.ImportHandler.startElement(ImportHandler.java:192)
> 	at com.sun.xml.bind.v2.runtime.output.SAXOutput.endStartTag(SAXOutput.java:80)
> 	at com.sun.xml.bind.v2.runtime.XMLSerializer.endAttributes(XMLSerializer.java:273)
> 	at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:531)
> 	at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:283)
> 	at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:461)
> 	at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:292)
> 	... 24 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message