samba-documents-provider icon indicating copy to clipboard operation
samba-documents-provider copied to clipboard

file reading/decoding fails

Open jmue opened this issue 7 years ago • 1 comments

Opening the pdf-file from https://tcpdf.org/examples/example_065/ with Androids build-in PDF-Viewer (com.google.android.apps.pdfviewer) fails not only on preO (no seekable streams) but also on Oreo (API27).

Steps to reproduce:

  1. Copy the pdf-file from https://tcpdf.org/examples/example_065/ to a samba share. Use files app to open the document -> Toast about invalid format
  2. Copy the pdf file to a local folder (like Downloads) -> opening pdf succeeds

jmue avatar Apr 08 '18 20:04 jmue

It shows that all seeking has no effect on the native side. The fd offset stays at totoal bytes read count. I'm using NDK ver 16.1.4479499 and samba source version 4.5.16.

jmue avatar Apr 10 '18 20:04 jmue