Bug 31199 - System info does not handle errors gracefully
System info does not handle errors gracefully
Status: RESOLVED DUPLICATE of bug 33092
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on: 31192
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-25 21:25 CEST by Dirk Wiesenthal
Modified: 2016-10-07 18:01 CEST (History)
4 users (show)

See Also:
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): Troubleshooting, Usability
Max CVSS v3 score:


Attachments
Upload fails gracefully (5.88 KB, patch)
2013-04-25 21:28 CEST, Dirk Wiesenthal
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2013-04-25 21:25:51 CEST
When the upload of system information fails, the module gets unusable and no error message is displayed.

In UCS 2.4 there was a sentence: "Sorry, upload failed. Please mail us the archive". This should be added, too.

Bugs run into during bug-reporting is super-frustrating!

+++ This bug was initially created as a clone of Bug #31192 +++

version/erratalevel: 0
version/patchlevel: 1
version/releasename: Findorff
version/security-patchlevel: <empty>
version/version: 3.1

If I click through the system info upload and choose "Upload" the UMC shows a
module process error, error message of the server was: None

Creation of the archive in general seems to work as I'm able to
download/extract it when using "Mail" mode.


==> /var/log/univention/management-console-web-server.log <==
25.04.13 14:10:10.570  PARSER      ( INFO    ) : UMCP RESPONSE
136689181038822-62 parsed successfully
25.04.13 14:10:10.571  PROTOCOL    ( INFO    ) : Received UMCP RESPONSE
136689181038822-62
25.04.13 14:10:10.571  MAIN        ( INFO    ) : SessionClient(0x23e1dd0): got
response(136689181038822-62): status=200 queue=0x23f2f38
25.04.13 14:10:10.571  MAIN        ( INFO    ) : CPCommand
(192.168.0.112:50294) got response(0x23ee410) from queue(0x23f2f38): status=200
(sessionid="b57b75a1-7d63-4707-81d2-719d69c200da")
25.04.13 14:10:17.232  MAIN        ( INFO    ) : CPCommand (10.205.1.58:50295)
got new request
25.04.13 14:10:17.232  MAIN        ( INFO    ) : CPCommand (10.205.1.58:50295)
found sessionid
25.04.13 14:10:17.232  MAIN        ( INFO    ) : CPCommand (10.205.1.58:50295)
sessionid="15dee6db-083e-43d5-96c9-8e3b60fd21ce"
25.04.13 14:10:17.232  MAIN        ( INFO    ) : CPCommand (10.205.1.58:50295)
pushed request(0x23ee190) to queue(0x2352a28) - waiting for response
(sessionid="15dee6db-083e-43d5-96c9-8e3b60fd21ce")
25.04.13 14:10:17.304  MAIN        ( INFO    ) : UMCP_Dispatcher: check_queue:
new request: 0x23ee650
25.04.13 14:10:17.304  MAIN        ( INFO    ) : UMCP_Dispatcher: check_queue:
normal request
25.04.13 14:10:17.304  MAIN        ( INFO    ) : SessionClient(0x234e8d0):
sending request(136689181723260-63)
25.04.13 14:10:17.304  PROTOCOL    ( INFO    ) : Sending UMCP COMMAND REQUEST
136689181723260-63

==> /var/log/univention/management-console-server.log <==
25.04.13 14:10:17.305  PARSER      ( INFO    ) : UMCP REQUEST
136689181723260-63 parsed successfully
25.04.13 14:10:17.305  MAIN        ( INFO    ) : Incoming request of type
COMMAND
25.04.13 14:10:17.305  RESOURCES   ( INFO    ) : Searching for module providing
command sysinfo/upload
25.04.13 14:10:17.305  RESOURCES   ( INFO    ) : Found module sysinfo
25.04.13 14:10:17.306  MAIN        ( INFO    ) : Passing new request to running
module sysinfo
25.04.13 14:10:17.306  PROTOCOL    ( INFO    ) : Sending UMCP COMMAND REQUEST
136689181723260-63
25.04.13 14:10:17.497  PARSER      ( INFO    ) : UMCP RESPONSE
136689181723260-63 parsed successfully
25.04.13 14:10:17.497  PROTOCOL    ( INFO    ) : Received UMCP RESPONSE
136689181723260-63

==> /var/log/univention/management-console-web-server.log <==
25.04.13 14:10:17.497  PARSER      ( INFO    ) : UMCP RESPONSE
136689181723260-63 parsed successfully
25.04.13 14:10:17.497  PROTOCOL    ( INFO    ) : Received UMCP RESPONSE
136689181723260-63
25.04.13 14:10:17.497  MAIN        ( INFO    ) : SessionClient(0x234e8d0): got
response(136689181723260-63): status=590 queue=0x2352a28
25.04.13 14:10:17.497  MAIN        ( INFO    ) : CPCommand (10.205.1.58:50295)
got response(0x23ee990) from queue(0x2352a28): status=590
(sessionid="15dee6db-083e-43d5-96c9-8e3b60fd21ce")
25.04.13 14:10:17.497  MAIN        ( PROCESS ) : CPCommand (10.205.1.58:50295)
response status code: 590
25.04.13 14:10:17.497  MAIN        ( PROCESS ) : CPCommand (10.205.1.58:50295)
response message: None
25.04.13 14:10:17.498  MAIN        ( PROCESS ) : CPCommand (10.205.1.58:50295)
response result: Non
Comment 1 Dirk Wiesenthal univentionstaff 2013-04-25 21:28:24 CEST
Created attachment 5196 [details]
Upload fails gracefully

Yet untranslated!
Comment 2 Florian Best univentionstaff 2014-11-28 10:59:10 CET
@Dirk: The patch has errors btw.:
answer.startswith('ERROR:') will fail with your change
+		except Exception as e:
+			answer = e
Comment 3 Florian Best univentionstaff 2016-10-07 18:01:17 CEST
Fixed in svn r56969

*** This bug has been marked as a duplicate of bug 33092 ***