Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ignore http requests with an opaque uri #1181

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

derklaro
Copy link
Member

@derklaro derklaro commented Apr 9, 2023

Motivation

Opaque URIs are a type of URI that does not allow access to the underlying resource. Instead, the opaque URI contains a string of characters that represent the resource, but the handler has no information about how to access or manipulate that resource. As our http handler design is based on the assumption that the path to the resource to call is present, we cannot handle requests that are opaque at all.

Modification

Early deny requests that are sending an opaque request and respond with status 400 (bad request) to them.

Result

There are no more requests processed that cannot get handled and are causing exceptions.

@derklaro derklaro added v: 4.X This pull should be included in the 4.0 release in: driver An issue/pull request releated to the driver module code t: fix A pull request introducing a fix for a bug. labels Apr 9, 2023
@derklaro derklaro added this to the 4.0.0-RC9 milestone Apr 9, 2023
@derklaro derklaro requested a review from 0utplay April 9, 2023 18:40
@derklaro derklaro self-assigned this Apr 9, 2023
@0utplay 0utplay merged commit 74b63a6 into nightly Apr 11, 2023
@0utplay 0utplay deleted the ignore-opaque-request-uris branch April 11, 2023 14:07
derklaro added a commit that referenced this pull request Apr 17, 2023
### Motivation
Opaque URIs are a type of URI that does not allow access to the
underlying resource. Instead, the opaque URI contains a string of
characters that represent the resource, but the handler has no
information about how to access or manipulate that resource. As our http
handler design is based on the assumption that the path to the resource
to call is present, we cannot handle requests that are opaque at all.

### Modification
Early deny requests that are sending an opaque request and respond with
status 400 (bad request) to them.

### Result
There are no more requests processed that cannot get handled and are
causing exceptions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: driver An issue/pull request releated to the driver module code t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants