Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-2320

BlobInputStream read() returns negative values

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.5.0
    • 3.0
    • Java, Java-Android
    • Security Level: Public
    • None
    • 1

    Description

      • CBL: 3.0.0 - 149
      • Steps to reproduce: 
      • Run Todo desktop
      • Create/Update a task image with a PNG image
      • Image is not visible in GUI
      • Actual result: 
      • When loading a PNG image, read() returns negative values which cause IOException in Java. However, the exception is swallowed, program still runs normally but image won't be loaded.
      • Expected result: 
      • read() returns values range from 0 - 255
      • PNG image is loaded and visible on GUI

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          lauren.nguyen Lauren Nguyen created issue -
          lauren.nguyen Lauren Nguyen made changes -
          Field Original Value New Value
          Link This issue is a backport of CBL-2148 [ CBL-2148 ]
          lauren.nguyen Lauren Nguyen made changes -
          Priority Critical [ 2 ] Blocker [ 1 ]
          blake.meike Blake Meike made changes -
          Fix Version/s Lithium [ 16190 ]
          blake.meike Blake Meike made changes -
          Affects Version/s 2.5.0 [ 16187 ]
          blake.meike Blake Meike made changes -
          Required Mobile Fields Mandatory:
           - CBL / SG Version:
             - SG Config:
           - Steps to Reproduce:
           - Actual Result:
           - Expected Result:
           - Logs :
                SGW LOGS: sgcollect info
                CBL LOGS:
                Logcat LOGS: for Android tickets
           - Github link for the code:
           - Jenkins job failure link:
           - Pytest Command
           - What is the last build this test passed:
          blake.meike Blake Meike made changes -
          Link This issue is a backport of CBL-2148 [ CBL-2148 ]
          blake.meike Blake Meike made changes -
          Link This issue blocks CBL-2148 [ CBL-2148 ]
          blake.meike Blake Meike made changes -
          Component/s Java-Android [ 15344 ]
          blake.meike Blake Meike made changes -
          Assignee The Lite [ cbgto ] Blake Meike [ blake.meike ]
          blake.meike Blake Meike made changes -
          Link This issue relates to CBL-2277 [ CBL-2277 ]
          blake.meike Blake Meike added a comment -

          Fixed in Lithium, couchbase-lite-java-ee-root @97204feeb81dd62fdcad4ac057

          blake.meike Blake Meike added a comment - Fixed in Lithium, couchbase-lite-java-ee-root @97204feeb81dd62fdcad4ac057
          blake.meike Blake Meike made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          blake.meike Blake Meike made changes -
          Assignee Blake Meike [ blake.meike ] Lauren Nguyen [ JIRAUSER25666 ]
          blake.meike Blake Meike added a comment -

          Will notify you when the build is available.

          blake.meike Blake Meike added a comment - Will notify you when the build is available.

          Build couchbase-lite-android-3.0.0-177 contains couchbase-lite-java-common commit 5e5d352 with commit message:
          CBL-2320: BlobOutputStream.read() is returning negative values. (#28)

          build-team Couchbase Build Team added a comment - Build couchbase-lite-android-3.0.0-177 contains couchbase-lite-java-common commit 5e5d352 with commit message: CBL-2320 : BlobOutputStream.read() is returning negative values. (#28)

          Build couchbase-lite-android-3.0.0-177 contains couchbase-lite-java-ee-root commit 97204fe with commit message:
          CBL-2320: BlobOutputStream.read() is returning negative values.

          build-team Couchbase Build Team added a comment - Build couchbase-lite-android-3.0.0-177 contains couchbase-lite-java-ee-root commit 97204fe with commit message: CBL-2320 : BlobOutputStream.read() is returning negative values.

          Build couchbase-lite-java-3.0.0-178 contains couchbase-lite-java-common commit 5e5d352 with commit message:
          CBL-2320: BlobOutputStream.read() is returning negative values. (#28)

          build-team Couchbase Build Team added a comment - Build couchbase-lite-java-3.0.0-178 contains couchbase-lite-java-common commit 5e5d352 with commit message: CBL-2320 : BlobOutputStream.read() is returning negative values. (#28)

          Build couchbase-lite-java-3.0.0-178 contains couchbase-lite-java-ee-root commit 97204fe with commit message:
          CBL-2320: BlobOutputStream.read() is returning negative values.

          build-team Couchbase Build Team added a comment - Build couchbase-lite-java-3.0.0-178 contains couchbase-lite-java-ee-root commit 97204fe with commit message: CBL-2320 : BlobOutputStream.read() is returning negative values.
          blake.meike Blake Meike added a comment - - edited

          Build is up. it is 3.0.0-178

          blake.meike Blake Meike added a comment - - edited Build is up. it is 3.0.0-178

          Fix verified

          lauren.nguyen Lauren Nguyen added a comment - Fix verified
          lauren.nguyen Lauren Nguyen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          Build couchbase-lite-android-3.1.0-2 contains couchbase-lite-java-ee-root commit c25aaf1 with commit message:
          CBL-2320: BlobInputStream returns negative values

          build-team Couchbase Build Team added a comment - Build couchbase-lite-android-3.1.0-2 contains couchbase-lite-java-ee-root commit c25aaf1 with commit message: CBL-2320 : BlobInputStream returns negative values

          Build couchbase-lite-java-3.1.0-2 contains couchbase-lite-java-ee-root commit c25aaf1 with commit message:
          CBL-2320: BlobInputStream returns negative values

          build-team Couchbase Build Team added a comment - Build couchbase-lite-java-3.1.0-2 contains couchbase-lite-java-ee-root commit c25aaf1 with commit message: CBL-2320 : BlobInputStream returns negative values

          People

            lauren.nguyen Lauren Nguyen
            lauren.nguyen Lauren Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty