[MAGNOLIA-4490] Handling of javax.jcr.Binary for MockValue in combination with PropertiesImportExport doesn't work Created: 25/Jul/12  Updated: 26/Jul/12  Resolved: 26/Jul/12

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 4.5.3
Fix Version/s: 4.5.4, 5.0

Type: Bug Priority: Major
Reporter: Daniel Lipp Assignee: Daniel Lipp
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Up to now MockValue will only return javax.jcr.Binary(s) if they were set as such. On the other side PropertiesImportExport will convert Binary to ByteArrayInputStream as there's no default Binary implementation. This leads into a ValueFormatException when trying to retrieve that value from the MockValue.



 Comments   
Comment by Daniel Lipp [ 26/Jul/12 ]

No need to create proper MockBinary - we can directly use BinaryImpl from jackrabbit-jcr-commons

Generated at Mon Feb 12 03:56:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.