[
https://issues.apache.org/jira/browse/JCRVLT-560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17417776#comment-17417776
]
Konrad Windszus commented on JCRVLT-560:
----------------------------------------
Regarding multi-value binary properties: Conceptually this can only work if
either all values are binary references (inline in docview) or not binary
references (given via {{.property}} files). A mixture is impossible as DocView
only allows one type and the order between DocView values and values from
{{.property}} files would be unspecified. Therefore the export should fail with
an exception for such edge case. [~tripod] WDYT?
> Clarify binary properties in FileVault DocView
> ----------------------------------------------
>
> Key: JCRVLT-560
> URL: https://issues.apache.org/jira/browse/JCRVLT-560
> Project: Jackrabbit FileVault
> Issue Type: Bug
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Priority: Major
> Fix For: 3.5.4
>
>
> In contrast to JCR 2.0 DocView which states
> bq. If P is a BINARY property its value is Base64 encoded. The resulting
> string becomes the value of the XML attribute P.
> (https://docs.adobe.com/content/docs/en/spec/jcr/2.0/7_Export.html#7.3%20Document%20View)
> the binary support in FileVault DocView uses the default conversion from
> String to UTF-8 byte array encoding for multi-value properties in
> https://github.com/apache/jackrabbit-filevault/blob/b8627b9548ff1335cc0e497797b701a02a966654/vault-core/src/main/java/org/apache/jackrabbit/vault/util/DocViewProperty.java#L500
>
> (https://docs.adobe.com/content/docs/en/spec/jcr/2.0/3_Repository_Model.html#3.6.4.1%20From%20STRING%20To)
> or only binary references for single values:
> https://github.com/apache/jackrabbit-filevault/blob/b8627b9548ff1335cc0e497797b701a02a966654/vault-core/src/main/java/org/apache/jackrabbit/vault/util/DocViewProperty.java#L519.
> This difference is currently not explained in
> https://jackrabbit.apache.org/filevault/docview.html and the handling is
> inconsistent between single- and multi-value.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)