Bug 43743 - The message of a UMC_Error is no longer shown in the web frontend
The message of a UMC_Error is no longer shown in the web frontend
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Florian Best
Jürn Brodersen
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-07 10:16 CET by Alexander Kläser
Modified: 2017-04-04 18:29 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2017-03-07 10:16:00 CET
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.
Comment 1 Florian Best univentionstaff 2017-03-07 12:46:20 CET
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
Comment 2 Jürn Brodersen univentionstaff 2017-03-24 14:56:01 CET
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
Comment 3 Stefan Gohmann univentionstaff 2017-04-04 18:29:26 CEST
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".