You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2016/12/19 04:20:58 UTC

[jira] [Updated] (JCRVLT-147) Remove unsued special jcr:xmltext handling in AbstractSAXFormatter

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

Tobias Bocanegra updated JCRVLT-147:
------------------------------------
    Description: 
the AbstractSAXFormatter has a special handling for {{jcr:xmltext}}. It will inline the characters in the .content.xml tags, similar to the JCR docview format. The deserialization in vault was never implemented and is not used. we will remove the special treatment.

Serializing a node structure that has {{jcr:xmltext}} nodes, are transformed into xml-text instead of elements in the .content.xml:

expected:
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="nt:unstructured">
    <a jcr:primaryType="nt:unstructured">
        <jcr:xmltext 
            jcr:primaryType="nt:unstructured"
            jcr:xmlcharacters="Hello, World." />
    </a>
</jcr:root>
{noformat}

actual:
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="nt:unstructured">
    <a jcr:primaryType="nt:unstructured">Hello, World.</a>
</jcr:root>
{noformat}



  was:
the DocViewSAXFormatter has a special handling for {{jcr:xmltext}}. It will inline the characters in the .content.xml tags, similar to the JCR docview format. The deserialization in vault was never implemented and is not used. we will remove the special treatment.

Serializing a node structure that has {{jcr:xmltext}} nodes, are transformed into xml-text instead of elements in the .content.xml:

expected:
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="nt:unstructured">
    <a jcr:primaryType="nt:unstructured">
        <jcr:xmltext 
            jcr:primaryType="nt:unstructured"
            jcr:xmlcharacters="Hello, World." />
    </a>
</jcr:root>
{noformat}

actual:
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="nt:unstructured">
    <a jcr:primaryType="nt:unstructured">Hello, World.</a>
</jcr:root>
{noformat}




> Remove unsued special jcr:xmltext handling in AbstractSAXFormatter
> ------------------------------------------------------------------
>
>                 Key: JCRVLT-147
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-147
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 3.1.30
>            Reporter: Tobias Bocanegra
>            Assignee: Tobias Bocanegra
>
> the AbstractSAXFormatter has a special handling for {{jcr:xmltext}}. It will inline the characters in the .content.xml tags, similar to the JCR docview format. The deserialization in vault was never implemented and is not used. we will remove the special treatment.
> Serializing a node structure that has {{jcr:xmltext}} nodes, are transformed into xml-text instead of elements in the .content.xml:
> expected:
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
>     jcr:primaryType="nt:unstructured">
>     <a jcr:primaryType="nt:unstructured">
>         <jcr:xmltext 
>             jcr:primaryType="nt:unstructured"
>             jcr:xmlcharacters="Hello, World." />
>     </a>
> </jcr:root>
> {noformat}
> actual:
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
>     jcr:primaryType="nt:unstructured">
>     <a jcr:primaryType="nt:unstructured">Hello, World.</a>
> </jcr:root>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)