[
https://issues.apache.org/jira/browse/OAK-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
angela updated OAK-99:
----------------------
Component/s: (was: core)
jcr
yes... the ValueFactory just passes the string param to the CoreValueFactory
which expects in this case the binaryID while
the JCR API param in fact represents the binary value. adding a separate if for
type BINARY and creating an Stream should do the trick.
> reading binary content fails for certain types of content
> ---------------------------------------------------------
>
> Key: OAK-99
> URL: https://issues.apache.org/jira/browse/OAK-99
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: jcr
> Reporter: Julian Reschke
> Assignee: Julian Reschke
>
> With r1336746 I have added test content for export tests; and get the failure
> below:
> org.apache.jackrabbit.mk.api.MicroKernelException:
> org.apache.jackrabbit.mk.api.MicroKernelException: SGVsbG8gd8O2cmxkLg==
> at
> org.apache.jackrabbit.mk.core.MicroKernelImpl.read(MicroKernelImpl.java:490)
> at
> org.apache.jackrabbit.mk.util.MicroKernelInputStream.read(MicroKernelInputStream.java:56)
> at java.io.InputStream.read(Unknown Source)
> at org.apache.jackrabbit.util.Base64.encode(Base64.java:156)
> at org.apache.jackrabbit.value.ValueHelper.serialize(ValueHelper.java:681)
> at
> org.apache.jackrabbit.commons.xml.SystemViewExporter.exportValue(SystemViewExporter.java:129)
> at
> org.apache.jackrabbit.commons.xml.SystemViewExporter.exportProperty(SystemViewExporter.java:109)
> at
> org.apache.jackrabbit.commons.xml.Exporter.exportProperty(Exporter.java:361)
> at
> org.apache.jackrabbit.commons.xml.Exporter.exportProperties(Exporter.java:268)
> at
> org.apache.jackrabbit.commons.xml.SystemViewExporter.exportNode(SystemViewExporter.java:77)
> at org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java:294)
> at org.apache.jackrabbit.commons.xml.Exporter.exportNodes(Exporter.java:213)
> at
> org.apache.jackrabbit.commons.xml.SystemViewExporter.exportNode(SystemViewExporter.java:78)
> at org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java:294)
> at org.apache.jackrabbit.commons.xml.Exporter.exportNodes(Exporter.java:213)
> at
> org.apache.jackrabbit.commons.xml.SystemViewExporter.exportNode(SystemViewExporter.java:78)
> at org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java:294)
> at org.apache.jackrabbit.commons.xml.Exporter.exportNodes(Exporter.java:213)
> at
> org.apache.jackrabbit.commons.xml.SystemViewExporter.exportNode(SystemViewExporter.java:78)
> at org.apache.jackrabbit.commons.xml.Exporter.exportNode(Exporter.java:294)
> at org.apache.jackrabbit.commons.xml.Exporter.export(Exporter.java:143)
> at
> org.apache.jackrabbit.commons.AbstractSession.export(AbstractSession.java:548)
> at
> org.apache.jackrabbit.commons.AbstractSession.exportSystemView(AbstractSession.java:257)
> at
> org.apache.jackrabbit.test.api.ExportSysViewTest.doTestWithHandler(ExportSysViewTest.java:126)
> at
> org.apache.jackrabbit.test.api.ExportSysViewTest.testExportSysView_handler_session_saveBinary_recurse(ExportSysViewTest.java:94)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at junit.framework.TestCase.runTest(TestCase.java:168)
> at junit.framework.TestCase.runBare(TestCase.java:134)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:124)
> at org.apache.jackrabbit.test.AbstractJCRTest.run(AbstractJCRTest.java:456)
> at junit.framework.TestSuite.runTest(TestSuite.java:243)
> at junit.framework.TestSuite.run(TestSuite.java:238)
> at junit.framework.TestSuite.runTest(TestSuite.java:243)
> at junit.framework.TestSuite.run(TestSuite.java:238)
> at junit.framework.TestSuite.runTest(TestSuite.java:243)
> at
> org.apache.jackrabbit.test.ConcurrentTestSuite.access$1(ConcurrentTestSuite.java:1)
> at
> org.apache.jackrabbit.test.ConcurrentTestSuite$2.run(ConcurrentTestSuite.java:67)
> at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.jackrabbit.mk.api.MicroKernelException:
> SGVsbG8gd8O2cmxkLg==
> at
> org.apache.jackrabbit.mk.util.ExceptionFactory.convert(ExceptionFactory.java:38)
> at
> org.apache.jackrabbit.mk.blobs.AbstractBlobStore.readBlob(AbstractBlobStore.java:276)
> at
> org.apache.jackrabbit.mk.core.MicroKernelImpl.read(MicroKernelImpl.java:488)
> ... 44 more
> Caused by: java.lang.IllegalArgumentException: SGVsbG8gd8O2cmxkLg==
> at org.apache.jackrabbit.mk.util.StringUtils.getHexDigit(StringUtils.java:79)
> at
> org.apache.jackrabbit.mk.util.StringUtils.convertHexToBytes(StringUtils.java:58)
> at
> org.apache.jackrabbit.mk.blobs.AbstractBlobStore.readBlob(AbstractBlobStore.java:229)
> ... 45 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira