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

Calling webscript without required @RequestParam causes 500 error response #308

Closed
evyrosseels opened this issue Aug 18, 2020 · 0 comments · Fixed by #309
Closed

Calling webscript without required @RequestParam causes 500 error response #308

evyrosseels opened this issue Aug 18, 2020 · 0 comments · Fixed by #309
Assignees
Labels

Comments

@evyrosseels
Copy link
Contributor

evyrosseels commented Aug 18, 2020

I'm submitting a

[x] bug report
[ ] feature request
[ ] question

Expected Behavior

The webscript should return an appropriate HTTP error in the 4XX range (e.g. 422) when making a request without required parameter(s).

Current Behavior

When a webscript argument annotated with @RequestParam is missing from an HTTP request, an IllegalStateException is thrown, causing Alfresco to return a 500 error response.

Steps to Reproduce

  1. Create a webscript using an @RequestParam annotation
  2. Make an HTTP request to the webscript without the required parameter

Your Environment

  • Alfresco version used: 5.1.4.1
  • DE version used: 2.0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants