Skip to content

[2.4.x+] Play does not run out Result Enumerators in some cases #6098

@bbarkley

Description

@bbarkley

Play Version 2.4.x, Probably 2.5.x+

API Both

Expected Behavior

When an onDoneEnumerating handler is attached to a Result's body Enumerator it should always be invoked when the request completes.

Actual Behavior

In 2.4.x the handler doesn't fire if ServerResultUtils.determineResultStreaming determines it's an invalid situation. The Enumerator isn't run out and the callback is never called. I haven't tested in 2.5.x+ but @gmethvin believes this is probably still an issue there.

Reproducible Test Case

See PR #6097

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions