Skip to content

Interrupt download on DownloadResponse.error #7835

Open
@ElZorrito

Description

@ElZorrito

Describe the bug

Hello,
I try vaadin 24.8.3
When I send a DownloadResponse.error in DownloadHandler like this :
new Anchor(event -> DownloadResponse.error(HttpStatusCode.BAD_REQUEST), "Test")
A file "téléchargement.txt" is downloaded on chrome.. a random filename .txt on firefox

Expected-behavior

Interrupt the download

Reproduction

new Anchor(event -> DownloadResponse.error(HttpStatusCode.BAD_REQUEST), "Test")

System Info

Vaadin 24.8.3
Chrome 138.0.7204.96
FIrefox 140

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions