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

Swagger module should return 400 when date parameter is invalid instead of 500 #2397

Closed
omusil24 opened this Issue Nov 8, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@omusil24
Contributor

omusil24 commented Nov 8, 2017

Current situation:

REST-RESPONSE-ERROR: <html><head><title>500 Internal Server Error</title></head><body><h1>Internal Server Error</h1><pre>handler: svc-UserManagementAPI-1: /usr/share/qore-modules/0.8.13/Swagger.qm:561: INVALID-DATE: date 'abc' is too short; need at least 8 digits for a date/time value (ex: YYYYMMDD)

@omusil24 omusil24 added this to the 0.8.13.1 milestone Nov 8, 2017

davidnich added a commit that referenced this issue Nov 8, 2017

refs #2397 Swagger.qm: return a 400 error with invalid parameters
refs #2398 RestHandler.qm: return a 400 error with enoding errors in requests

pvanek added a commit that referenced this issue Nov 8, 2017

Merge pull request #2399 from qorelanguage/bugfix/2397_2398_Swagger_R…
…EST_fixes

refs #2397 Swagger.qm: return a 400 error with invalid parameters

@omusil24 omusil24 added the fixed label Nov 9, 2017

@omusil24 omusil24 closed this Nov 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment