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

'ArrayIndexOutOfBoundsException' error for queries without parameters #13

Merged
merged 5 commits into from
Jul 13, 2020

Conversation

bonaparten
Copy link
Contributor

No description provided.

@bonaparten bonaparten changed the title if conditions changed 'ArrayIndexOutOfBoundsException' error for queries without parameters Jul 8, 2020
@bonaparten bonaparten self-assigned this Jul 8, 2020
@bonaparten bonaparten requested a review from FabiKo117 July 8, 2020 13:33
Copy link
Contributor

@FabiKo117 FabiKo117 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I test this code now using a POST request, I get the following response for a bad request:

{
  "timestamp": "2020-07-09T12:12:27.19052",
  "status": 400,
  "message": "The showMetadata parameter can only contain the values 'true', 'yes', 'false', or 'no'.",
  "requestUrl": "http://localhost:8080/elements/count?null"
}

There is now "null" written at the end of the request URL.

@FabiKo117 FabiKo117 merged commit 0691183 into master Jul 13, 2020
@FabiKo117 FabiKo117 deleted the query-without-parameters-error branch July 13, 2020 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants