Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Łukasz Lewczyński
Łukasz Lewczyński(Deactivated)Reporter
Brandon Bowersox-Johnson
Brandon Bowersox-JohnsonStory Points
1
Original estimate
1d
Time tracking
4h logged4h remaining
Components
Sprint
None
Priority
Time Assistant
Time Assistant
Created March 23, 2018 at 7:18 PM
Updated April 6, 2018 at 1:18 PM
Resolved April 6, 2018 at 8:44 AM
Description
Adding a new adjustment reason (in Administration > Reasons) gives a 500 error caused by a NullPointerException.
Steps to Reproduce (from test case ):
1. Log in as 'administrator'
2. Navigate to Administration > Reasons
3. Add new reason. Use this name and add two programs in the modal:
4. Click Add New Reason to save out of the modal.
5. ERROR: You will get an on-screen error message: "There was an error with this request, please contact the server administrator. No message available". You will also get a green confirmation, and your new reason will appear to be added to the list, but it was actually not configured as a valid reason because of the error. Screenshot attached.
The Scalyr site shows the NullPointerException in /var/log/messages:
This is for this API request in access.log that gives a 500:
Acceptance Criteria
POST /validReasons should work to allow configuring valid reasons.
Identify root case of NullPointerException and add automated test so it does not happen again. (This API call definitely works in v3.2.1 so this is a Regression; I confirmed with Postman.) ->
Retest from the UI to make sure you can create a new reason and add multiple valid program-facility rows when you Add New Reason (and you do not get any error).
Show success notification only when both request pass.
UI wasn't updated together with /api/validReasons endpoint. Body send form UI:
but it should be: