Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-99

reading binary content fails for certain types of content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.3
    • jcr
    • None

    Description

      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

      Attachments

        Activity

          People

            reschke Julian Reschke
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: