commercetest / androidserver-for-testing

Android server that serves react / files app using com.sun.net.httpserver
0 stars 0 forks source link

Possible bug: incomplete file serving #2

Open julianharty opened 5 months ago

julianharty commented 5 months ago

Context

I tried to serve the GNUnet logo image that's in SVG format. However, I discovered via Firefox's inspect window that requests for the file failed with ns_error_net_partial_transfer I'm guessing this is a side effect of how the contents of files are currently read from the assets folder in the Android app where the contents are treated as strings and read in pieces.

This issue is a placeholder so I've a record of what happened as I'm not planning to investigate it currently. Two instances of the logo are embedded here, edit this description to see the URLs if you'd like to extract and test with them.

Official_logo_of_the_GNUnet_project gnunet-logo

More info

https://stackoverflow.com/search?q=ns_error_net_partial_transfer+