You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When an error with the kerberos realm is encountered this library attempts to add an error message to the GSSError's message. However, that message attribute doesn't exist, so an attribute error is raised (See below).
Version-Release number
29.0
To Reproduce
Steps to reproduce the behavior:
Set AUTH_METHOD = "krbv"
Either don't set a KRB_REALM or set an incorrect one
Attempt to run any command that would reach out to a hub
See error
Actual behavior
...
File "/home/jake/Programming/broker/venvbroker/lib64/python3.12/site-packages/bkr/client/commands/cmd_job_list.py", line 269, in run
self.hub._login()
File "/home/jake/Programming/broker/venvbroker/lib64/python3.12/site-packages/bkr/common/hub.py", line 114, in _login
login_method()
File "/home/jake/Programming/broker/venvbroker/lib64/python3.12/site-packages/bkr/common/hub.py", line 203, in _login_krbv
ex.message += ". Make sure you correctly set KRB_REALM (current value: %s)." % realm
^^^^^^^^^^
AttributeError: 'GSSError' object has no attribute 'message'
Expected behavior
The expected error message would be correctly added to the GSSError message
Additional context
added an IPython embed inside the except clause to inspect the ex object.
In [1]: ex.MESSAGEOut[1]: 'Major ({maj_stat}): {maj_str}, Minor ({min_stat}): {min_str}'In [2]: ex.gen_message()
Out[2]: 'Major (...): Unspecified GSS failure. Minor code may provide more information, Minor (...): Server HTTP/...@....COM not found in Kerberos database'In [3]: ex.__dict__Out[3]:
{'maj_code': ...,
'min_code': ...,
'token': None,
'calling_code': None,
'routine_code': ...,
'supplementary_code': None}
In [4]: dir(ex)
Out[4]:
['MESSAGE',
'__cause__',
... otherdunders ...
'_parse_major_code',
'add_note',
'args',
'calling_code',
'gen_message',
'get_all_statuses',
'maj_code',
'min_code',
'routine_code',
'supplementary_code',
'token',
'with_traceback']
The text was updated successfully, but these errors were encountered:
Describe the bug
When an error with the kerberos realm is encountered this library attempts to add an error message to the GSSError's message. However, that
message
attribute doesn't exist, so an attribute error is raised (See below).Version-Release number
29.0
To Reproduce
Steps to reproduce the behavior:
Actual behavior
Expected behavior
The expected error message would be correctly added to the GSSError message
Additional context
added an IPython embed inside the except clause to inspect the
ex
object.The text was updated successfully, but these errors were encountered: