Uploaded image for project: 'SimplyE 2.0'
  1. SimplyE 2.0
  2. SIMPLY-3489

Download error "Output file size must match expected size -1"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 6.6.3 (Android)
    • Android
    • None

      Downloading certain books (e.g. "A Glass Half Full" by Sanjay Kathuria in NYU Library) results in the error "Output file size [bytes] must match expected size -1". This happens when the download response is chunked, and does not have a Content-length header.

      The problem is that LSHTTPDownload attempts to verify the file size if the expected size is not null:

      But if the content length is unknown, the expected size can be set to -1 instead of null:

            CalebChurchill Caleb Churchill
            RayLee Ray Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: