[ 
https://issues.apache.org/jira/browse/JCRVLT-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16350136#comment-16350136
 ] 

Konrad Windszus commented on JCRVLT-266:
----------------------------------------

The code in 
https://github.com/apache/jackrabbit-filevault/blob/e12e38a69f2ea404f24d965918467dffb4db8e09/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/AggregateImpl.java#L401
 must be extended to always return {{jcr}} as prefix.

> DocViewSaxFormatter does not always emit namespace declaration for "jcr"
> ------------------------------------------------------------------------
>
>                 Key: JCRVLT-266
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-266
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: vlt
>    Affects Versions: 3.1.42
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Under certain circumstances the {{DocViewSaxFormatter}} does not emit any 
> namespace declarations. That is the case for an aggregate not having any 
> namespaced properties (e.g. due to lack of read privileges) and not having 
> any namespaced child elements. The generated {{.content.xml}} then looks like 
> this:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <jcr:root />
> {code}
> This XML is invalid and leads to exceptions during import.
> The problem is that the namespace for {{jcr}} is always necessary as the root 
> element is always named {{jcr:root}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to