[jira] [Updated] (JCRVLT-108) Import of binaries fail because they cannot be converted to strings

2016-01-27 Thread Marius Petria (JIRA)

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

Marius Petria updated JCRVLT-108:
-
Attachment: (was: JCRVLT-108.1.diff)

> Import of binaries fail because they cannot be converted to strings
> ---
>
> Key: JCRVLT-108
> URL: https://issues.apache.org/jira/browse/JCRVLT-108
> Project: Jackrabbit FileVault
>  Issue Type: Bug
>Affects Versions: 3.1.26
>Reporter: Marius Petria
> Attachments: JCRVLT-108.2.diff, JCRVLT-108.diff
>
>
> Importing a binary that already exists will try to compare the existing 
> binary with the current value by converting it to String [1]. That fails with 
> {noformat}
> (org.xml.sax.SAXException: String is too long: 2318847178994591412 
> java.lang.IllegalStateException: String is too long: 2318847178994591412)
> {noformat}
> [1] 
> https://github.com/apache/jackrabbit-filevault/blob/e61e618796998175dde476ed8836fecd3ce2913b/vault-core/src/main/java/org/apache/jackrabbit/vault/util/DocViewProperty.java#L406



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


[jira] [Updated] (JCRVLT-108) Import of binaries fail because they cannot be converted to strings

2016-01-27 Thread Marius Petria (JIRA)

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

Marius Petria updated JCRVLT-108:
-
Attachment: JCRVLT-108.2.diff

> Import of binaries fail because they cannot be converted to strings
> ---
>
> Key: JCRVLT-108
> URL: https://issues.apache.org/jira/browse/JCRVLT-108
> Project: Jackrabbit FileVault
>  Issue Type: Bug
>Affects Versions: 3.1.26
>Reporter: Marius Petria
> Attachments: JCRVLT-108.1.diff, JCRVLT-108.2.diff, JCRVLT-108.diff
>
>
> Importing a binary that already exists will try to compare the existing 
> binary with the current value by converting it to String [1]. That fails with 
> {noformat}
> (org.xml.sax.SAXException: String is too long: 2318847178994591412 
> java.lang.IllegalStateException: String is too long: 2318847178994591412)
> {noformat}
> [1] 
> https://github.com/apache/jackrabbit-filevault/blob/e61e618796998175dde476ed8836fecd3ce2913b/vault-core/src/main/java/org/apache/jackrabbit/vault/util/DocViewProperty.java#L406



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


[jira] [Updated] (JCRVLT-108) Import of binaries fail because they cannot be converted to strings

2016-01-27 Thread Marius Petria (JIRA)

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

Marius Petria updated JCRVLT-108:
-
Attachment: JCRVLT-108.1.diff

Uploaded JCRVLT-108.1.diff which also works if the existing value is not binary.

> Import of binaries fail because they cannot be converted to strings
> ---
>
> Key: JCRVLT-108
> URL: https://issues.apache.org/jira/browse/JCRVLT-108
> Project: Jackrabbit FileVault
>  Issue Type: Bug
>Affects Versions: 3.1.26
>Reporter: Marius Petria
> Attachments: JCRVLT-108.1.diff, JCRVLT-108.diff
>
>
> Importing a binary that already exists will try to compare the existing 
> binary with the current value by converting it to String [1]. That fails with 
> {noformat}
> (org.xml.sax.SAXException: String is too long: 2318847178994591412 
> java.lang.IllegalStateException: String is too long: 2318847178994591412)
> {noformat}
> [1] 
> https://github.com/apache/jackrabbit-filevault/blob/e61e618796998175dde476ed8836fecd3ce2913b/vault-core/src/main/java/org/apache/jackrabbit/vault/util/DocViewProperty.java#L406



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


[jira] [Updated] (JCRVLT-108) Import of binaries fail because they cannot be converted to strings

2016-01-27 Thread Marius Petria (JIRA)

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

Marius Petria updated JCRVLT-108:
-
Attachment: JCRVLT-108.diff

I discovered that Ilyas's patch was a bit wrong (it updated the binary with the 
already existing value).  I attached a patch for this.

> Import of binaries fail because they cannot be converted to strings
> ---
>
> Key: JCRVLT-108
> URL: https://issues.apache.org/jira/browse/JCRVLT-108
> Project: Jackrabbit FileVault
>  Issue Type: Bug
>Affects Versions: 3.1.26
>Reporter: Marius Petria
> Attachments: JCRVLT-108.diff
>
>
> Importing a binary that already exists will try to compare the existing 
> binary with the current value by converting it to String [1]. That fails with 
> {noformat}
> (org.xml.sax.SAXException: String is too long: 2318847178994591412 
> java.lang.IllegalStateException: String is too long: 2318847178994591412)
> {noformat}
> [1] 
> https://github.com/apache/jackrabbit-filevault/blob/e61e618796998175dde476ed8836fecd3ce2913b/vault-core/src/main/java/org/apache/jackrabbit/vault/util/DocViewProperty.java#L406



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