Univention Bugzilla – Bug 43743
The message of a UMC_Error is no longer shown in the web frontend
Last modified: 2017-04-04 18:29:26 CEST
I added the line "raise UMC_Error('Foobar')" to a UMC command, however, the error message is not shown in the web frontend. Instead I see the following alert: "An unknown error with status code 400 occurred while connecting to the server, please try again later." Nevertheless, the correct message is being sent: { "status": 400, "message": "Foobar", "location": "http://10.200.26.10/univention/command" } I am not sure whether this is only a frontend issue, it might also be backend related.
The error was only javascript related, I lookedup the tools._statusMessage before parsing the actual status. univention-web (1.0.30-1): r77413 | Bug #43743: fixup error messages; svn r77051
What I tested: raise UMC_Error('Foobar') raise UMC_Error('Foobar', status=503) raise UMC_Error('Foobar', result='blub', status=422) All errors are shown -> OK No changelog necessary -> OK -> Verified
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".