Skip to content

Mishandling error when the page parameter is not a hash #48

@camilo220

Description

@camilo220

If you set the request handler configuration to config.raise_jsonapi_errors = true and you send the page parameter with anything other than a hash a TypeError: no implicit conversion of Symbol into Integer errors raise instead of the proper Error because the format of the message is the incorrect one:

https://github.com/runtastic/request_handler/blob/master/lib/request_handler/page_parser.rb#L14
https://github.com/runtastic/request_handler/blob/master/lib/request_handler/error.rb#L22

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