Skip to content

Make Request#params not rescue EOFError#1572

Merged
jeremyevans merged 1 commit into
rack:masterfrom
jeremyevans:request-params-eof
Feb 7, 2020
Merged

Make Request#params not rescue EOFError#1572
jeremyevans merged 1 commit into
rack:masterfrom
jeremyevans:request-params-eof

Conversation

@jeremyevans

Copy link
Copy Markdown
Contributor

There was no indication why this was done originally, and it is
possible that it will rely in silent data loss.

Fixes #761

There was no indication why this was done originally, and it is
possible that it will rely in silent data loss.

Fixes rack#761
@ioquatix

ioquatix commented Feb 7, 2020

Copy link
Copy Markdown
Member

Looks good to me. Seems CHANGELOG includes unrelated changes?

@jeremyevans

Copy link
Copy Markdown
Contributor Author

Yes, I was fixing the wording of a previous CHANGELOG entry.

@jeremyevans jeremyevans merged commit a3380a8 into rack:master Feb 7, 2020
bschmeck added a commit to bschmeck/grape that referenced this pull request Feb 9, 2021
In v2.2.0, Rack started raising an EOFError when given an empty body with a
multipart upload - rack/rack#1572  Previously, Rack had
swallowed this error.
bschmeck added a commit to bschmeck/grape that referenced this pull request Feb 9, 2021
In v2.2.0, Rack started raising an EOFError when given an empty body with a
multipart upload - rack/rack#1572  Previously, Rack had
swallowed this error.
bschmeck added a commit to bschmeck/grape that referenced this pull request Feb 9, 2021
In v2.2.0, Rack started raising an EOFError when given an empty body with a
multipart upload - rack/rack#1572  Previously, Rack had
swallowed this error.
bschmeck added a commit to bschmeck/grape that referenced this pull request Feb 9, 2021
In v2.2.0, Rack started raising an EOFError when given an empty body with a
multipart upload - rack/rack#1572  Previously, Rack had
swallowed this error.
bschmeck added a commit to bschmeck/grape that referenced this pull request Feb 9, 2021
In v2.2.0, Rack started raising an EOFError when given an empty body with a
multipart upload - rack/rack#1572  Previously, Rack had
swallowed this error.
bschmeck added a commit to bschmeck/grape that referenced this pull request Feb 9, 2021
In v2.2.0, Rack started raising an EOFError when given an empty body with a
multipart upload - rack/rack#1572  Previously, Rack had
swallowed this error.
@dblock

dblock commented Feb 10, 2021

Copy link
Copy Markdown
Contributor

This caused ruby-grape/grape#2161, was this the right decision to make this change here?

@jeremyevans

Copy link
Copy Markdown
Contributor Author

I think so. Silently ignoring errors is a bad idea. Looks like @ioquatix agreed. Not sure how other committers feel about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

params is empty if multipart request boundary is incorrect

3 participants