Skip to content

Request with query string '=' returns 500  #1480

Closed
@verdie-g

Description

@verdie-g

DESCRIPTION

curl 'http://localhost:5000/people?='

returns

{
  "links": {
    "self": "http://localhost:5065/people?="
  },
  "errors": [
    {
      "id": "76871a51-79fc-46ba-848b-f8027f5a03ed",
      "status": "500",
      "title": "An unhandled error occurred while processing this request.",
      "detail": "String cannot be null or empty. (Parameter 'parameterName')"
    }
  ]
}

STEPS TO REPRODUCE

  1. Follow https://www.jsonapi.net/getting-started/step-by-step.html
  2. Run curl 'http://localhost:5000/people?='

EXPECTED BEHAVIOR

A proper 4XX explaining the problem.

ACTUAL BEHAVIOR

A 500.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions