Skip to content

Range request not supported #9990

@masini

Description

@masini

Describe the bug
Range request doesn't work once packaged

Expected behavior
While in dev mode everything works fine thanks to FileResource, the implementation of CachedResource used once packaged lack the implementation of the method:

@Override
public void serveRangeBlocking(OutputStream outputStream, HttpServerExchange exchange, long start, long end) throws IOException {

}

Actual behavior
The socket will stay there forever untile browser timeout.

To Reproduce
Steps to reproduce the behavior:

  1. Download the attached file beep.ogg.zip
  2. Create a Quarkus project and put the extracted beep.ogg in META-INF/resources
  3. mvn install
  4. Launche the created jar with java -jar
  5. curl -v http://localhost:8080/beep.ogg -o /dev/null -H "Range: bytes=0-23606"

Environment (please complete the following information):

  • Quarkus version or git rev: 1.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions