Bug 35994 - Explain known error codes of UMC server
Explain known error codes of UMC server
Status: RESOLVED WONTFIX
Product: Z_SDB
Classification: Unclassified
Component: New entries
unspecified
Other Linux
: P5 enhancement
: ---
Assigned To: Christina Scheinig
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-25 07:38 CEST by Tim Petersen
Modified: 2020-07-02 17:20 CEST (History)
4 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 Tim Petersen univentionstaff 2014-09-25 07:38:04 CEST
Reported at #2014081921000331:
This does not happen often, but even for internal knowledge increase it would be nice to have an overview of known umc error codes, because they are passed through to the frontend.
Comment 1 Florian Best univentionstaff 2014-09-26 12:58:29 CEST
Frontend codes+messages:

400: _( 'Could not fulfill the request.' ),
401: _( 'Your session has expired, please login again.' ), // error occurrs only when user is not authenticated and a request is sent
403: _( 'You are not authorized to perform this action.' ),
    
404: _( 'Webfrontend error: The specified request is unknown.' ),
406: _( 'Webfrontend error: The specified UMCP command arguments of the request are invalid.' ),
407: _( 'Webfrontend error: The specified arguments for the UMCP module method are invalid or missing.'),
409: _( 'Webfrontend error: The specified arguments for the UMCP module method are invalid or missing.'), // hack: umcp defined a validation error as 407, but this is not a good http error code
    
411: _( 'Authentication failed, please login again.' ),
412: _( 'The account is expired and can not be used anymore.' ),
413: _( 'The account as been disabled.' ),
414: _( 'Specified locale is not available.' ),
415: _( 'The password has expired and must be changed.' ),
    
500: _( 'Internal server error.' ),
503: _( 'Internal server error: The service is temporarily not available.' ),
510: _( 'Internal server error: The module process died unexpectedly.' ),
511: _( 'Internal server error: Could not connect to the module process.' ),
512: _( 'Internal server error: The SSL server certificate is not trustworthy. Please check your SSL configurations.' ),
    
551: _( 'Internal UMC protocol error: The UMCP message header could not be parsed.' ),
554: _( 'Internal UMC protocol error: The UMCP message body could not be parsed.' ),
    
590: _( 'Internal module error: An error occured during command processing.' ),
591: _( 'Could not process the request.' ),
592: _( 'Internal module error: The initialization of the module caused a fatal error.' )


backend code+messages:
Status( 'SUCCESS'                          , 200, ( 'OK, operation successful' ) ),
Status( 'SUCCESS_MESSAGE'                  , 204, ( 'OK, containing report message' ) ),
Status( 'SUCCESS_PARTIAL'                  , 206, ( 'OK, partial response' ) ),
Status( 'SUCCESS_SHUTDOWN'                , 250, ( 'OK, operation successful ask for shutdown of connection' ) ),

Status( 'CLIENT_ERR_NONFATAL'              , 301, ( 'A non-fatal error has occured processing may continue' ) ),

Status( 'BAD_REQUEST'                      , 400, ( 'Bad request' ) ),
Status( 'BAD_REQUEST_UNAUTH'                , 401, ( 'Unauthorized' ) ),
Status( 'BAD_REQUEST_FORBIDDEN'          , 403, ( 'Forbidden' ) ),
Status( 'BAD_REQUEST_NOT_FOUND'          , 404, ( 'Not found' ) ),
Status( 'BAD_REQUEST_NOT_ALLOWED'          , 405, ( 'Command not allowed' ) ),
Status( 'BAD_REQUEST_INVALID_ARGS'        , 406, ( 'Invalid command arguments' ) ),
Status( 'BAD_REQUEST_INVALID_OPTS'        , 407, ( 'Invalid or missing command options' ) ),
Status( 'BAD_REQUEST_AUTH_FAILED'          , 411, ( 'The authentication has failed' ) ),
Status( 'BAD_REQUEST_ACCOUNT_EXPIRED'      , 412, ( 'The account is expired and can not be used anymore' ) ),
Status( 'BAD_REQUEST_ACCOUNT_DISABLED'    , 413, ( 'The account as been disabled' ) ),
Status( 'BAD_REQUEST_UNAVAILABLE_LOCALE'    , 414, ( 'Specified locale is not available' ) ),

Status( 'SERVER_ERR'                        , 500, ( 'Internal error' ) ),
Status( 'SERVER_ERR_MODULE_DIED'            , 510, ( 'Module process died unexpectedly' ) ),
Status( 'SERVER_ERR_MODULE_FAILED'        , 511, ( 'Connection to module process failed' ) ),
Status( 'SERVER_ERR_CERT_NOT_TRUSTWORTHY'   , 512, ( 'SSL server certificate is not trustworthy' ) ),

Status( 'UMCP_ERR_UNPARSABLE_HEADER'        , 551, ( 'Unparsable message header' ) ),
Status( 'UMCP_ERR_UNKNOWN_COMMAND'        , 552, ( 'Unknown command' ) ),
Status( 'UMCP_ERR_INVALID_NUM_ARGS'      , 553, ( 'Invalid number of arguments' ) ),
Status( 'UMCP_ERR_UNPARSABLE_BODY'        , 554, ( 'Unparsable message body' ) ),

Status( 'MODULE_ERR'                        , 600, ( 'Error occuried during command processing' ) ),
Status( 'MODULE_ERR_COMMAND_FAILED'      , 601, ( 'The execution of a command caused an fatal error' ) )
Comment 3 Ingo Steuwer univentionstaff 2020-07-02 17:20:16 CEST
Changes and improvements for SDB entries aren't tracked in Bugzilla anymore, so I close these entries. Please comment on help.univention.com or get in touch with the Univention Support team in case you have any suggestions for the SDB.