Skip to content

Capacitor server cannot answer HTTP-Range_Request #7151

@motto76

Description

@motto76

Bug Report

Capacitor server cannot answer HTTP-Range_Request

Capacitor Version

Latest Dependencies:       

  @capacitor/cli: 5.6.0    
  @capacitor/core: 5.6.0   
  @capacitor/android: 5.6.0
  @capacitor/ios: 5.6.0    

Installed Dependencies:    

  @capacitor/ios: not installed
  @capacitor/android: 5.5.1    
  @capacitor/cli: 5.5.1        
  @capacitor/core: 5.5.1       

[success] Android looking great! 👌

Platform(s)

only Android tested

Current Behavior

The app memory contains a 'Cloud Optimized Geotiff', which we request via HTTP range request. The response header shows the requested size, but the content includes the entire file.
As the file is several hundred MB in size, sooner or later an OOM will occur.

Expected Behavior

It is expected that only the part of the file that was requested will be delivered in the result.
For requests to online resources, it works as expected. The respective servers only deliver the requested section of the image.

Code Reproduction

Other Technical Details

As it currently appears, the Capacitor server is not able to answer HTTP range requests and therefore sends the complete file. (See also the last sentences under the following link: [https://http.dev/range-request] )

npm --version output:
9.8.1

node --version output:
v18.18.0

pod --version output (iOS issues only):

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions