Skip to content

OData returns 500 when a 400 is expected #1467

Open
@DHoefakker

Description

@DHoefakker

A couple of requests return a HTTP 500 when a 400 is expected due to incorrect format of the request.
The requests are :

  • $top=
  • $skip=
  • $select=
  • $top=-0 (this returns a 200, i know it's doubtful)

Assemblies affected

OData WebApi lib 6.1.0

Reproduce steps

Just call your OData endpoint with the above (empty) operators

Expected result

I expect a HTTP 400

Actual result

I get a HTTP 500

Additional detail

Optional, details of the root cause if known. Delete this section if you have no additional details to add.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions