Univention Bugzilla – Full Text Bug Listing |
Summary: | unify UMC server/module error handling | ||
---|---|---|---|
Product: | UCS | Reporter: | Florian Best <best> |
Component: | UMC (Generic) | Assignee: | Florian Best <best> |
Status: | CLOSED FIXED | QA Contact: | Dirk Wiesenthal <wiesenthal> |
Severity: | normal | ||
Priority: | P5 | CC: | klaeser, petersen, walkenhorst, wiesenthal |
Version: | UCS 4.0 | ||
Target Milestone: | UCS 4.0-2-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: |
https://forge.univention.org/bugzilla/show_bug.cgi?id=33748 https://forge.univention.org/bugzilla/show_bug.cgi?id=33427 |
||
What kind of report is it?: | --- | 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): | Cleanup, Error handling, Troubleshooting | |
Max CVSS v3 score: | |||
Bug Depends on: | 37169 | ||
Bug Blocks: |
Description
Florian Best
2014-12-16 16:50:13 CET
*** Bug 25987 has been marked as a duplicate of this bug. *** Using this bug to make the UMC server robust against crashing during request processing. *** Bug 34047 has been marked as a duplicate of this bug. *** *** Bug 35972 has been marked as a duplicate of this bug. *** *** Bug 38018 has been marked as a duplicate of this bug. *** *** Bug 37458 has been marked as a duplicate of this bug. *** The UMC can't crash anymore when handling requests. It is still possible that it crashes on startup. This could be fixed via Bug #33427 or more explicit in another bug. The internal UMC commands now have the same error handling as the modules. Nothing changed in the traceback format (I will do this in Bug #38204). Nice side effects: Modules are now also able to call self.get_user_ldap_connection(). Internal server functions may now use our decorators/sanitizers. YAML: 2015-05-12-univention-management-console.yaml Package: univention-management-console Version: 7.1.63-17.859.201505131137 Currently a import error when protocol is not imported first. E.g. on python-cli: "import univention.management.console.modules" univention-management-console (7.1.63-18): r60749 | Bug #37366: fix import order Thx for fixing - this currently prevents useful debugging on 3.2 customer environments with computerroom issues. I see "Attribute status just available for MIME type application/json" like 10 times a seconds in ...server.log and ...web-server.log. Backport would be highly appreciated The translation is broken due to r60749. (In reply to Florian Best from comment #11) > The translation is broken due to r60749. The order of setting the locale and importing the module did matter because the univention.lib.Translation() instances were bound to the set locale on import time. Example (was broken, is fixed again): >>> from univention.management.console import Translation >>> from locale import * >>> setlocale(LC_ALL, 'de_DE.UTF-8') 'de_DE.UTF-8' >>> _ = Translation('univention-management-console').translate >>> _('The account is expired and can not be used anymore') 'The account is expired and can not be used anymore' → is german again. Well, this is a general problem we ever had and also have in udm. I added some comments to the code so that this will not occur again. All YAML descriptions have been adapted. The order of bug numbers fit to the descriptions. Every bug has it's own description. Please recheck *appcenter.yaml, *lib.yaml, *console.yaml. OK, works. YAML OK |