premnisha
(Premnisha Balakumar)
March 9, 2020, 4:24am
1
Hello Everyone,
The handleSubmission method in userFormController.java returns 2XX as response code even when there is an error on POST.
We propose to fix it to follow HTTP Response code standards and return 201 on successful creation and on error 400 would be returned as response code.
cc @mksd @sukreet @rrameshbtech
sharif
(Sharif Magembe)
March 9, 2020, 7:41am
2
Can you attach the screenshort of the error please
premnisha
(Premnisha Balakumar)
March 24, 2020, 6:28am
3
Hi Sharif
The response code is 200 even if there is error on completing user creation. On error we expect error code.
sharif
(Sharif Magembe)
March 24, 2020, 7:35am
4
Have you tried to test on demo server and see whether this error occur as the same
premnisha
(Premnisha Balakumar)
March 24, 2020, 7:36am
5
Its a valid error, the issue we are fixing is the response code when error occurs
sharif
(Sharif Magembe)
March 24, 2020, 7:47am
6
Take a note that we are shifting from old legacyui to new Ui of gsp. So i would advise to first check the new ui in reference appication and see if there is work done in reference to old legacyui. You never know this may have been improved in the new Ui thanks
1 Like
premnisha
(Premnisha Balakumar)
March 25, 2020, 12:11pm
7
Thanks for the information
1 Like