Skip to content

Request with malformed path raises URI::InvalidURIError #3148

@dentarg

Description

@dentarg

If you send a request without the start / for the request path, Puma will raise URI::InvalidURIError at

uri = URI.parse(env[REQUEST_URI])

Repro (have Puma running on port 8080) and do this

printf 'GET : HTTP/1.0\r\n\r\n' | nc localhost 8080

Should we turn this into Puma::HttpParserError?

Since getsentry/sentry-ruby#2026 I'm too well aware of these (but I don't want to exclude URI::InvalidURIError from my error reporting)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions