Project

General

Profile

Actions

Bug #38522

closed

restful module traceback when querying any endpoint that require auth

Added by Brad Hubbard about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
ceph-mgr
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

2019-03-01 14:10:37.126 7fdd6d15a700  0 mgr[restful] Traceback (most recent call last):                                                                                                                                                      
  File "/usr/lib/python3.7/site-packages/pecan/core.py", line 683, in __call__                                                                                                                                                               
    self.invoke_controller(controller, args, kwargs, state)                                                                                                                                                                                  
  File "/usr/lib/python3.7/site-packages/pecan/core.py", line 574, in invoke_controller                                                                                                                                                      
    result = controller(*args, **kwargs)                                                                                                                                                                                                     
  File "/home/brad/working/src/ceph/src/pybind/mgr/restful/decorators.py", line 21, in decorated                                                                                                                                             
    username, password = b64decode(request.authorization[1]).split(':')                                                                                                                                                                      
TypeError: a bytes-like object is required, not 'str'

https://github.com/ceph/ceph/pull/26712


Related issues 1 (0 open1 closed)

Related to mgr - Bug #38628: restful/api is not Python 3 compatibleResolved

Actions
Actions #1

Updated by Brad Hubbard about 5 years ago

  • Description updated (diff)
  • Status changed from New to Fix Under Review
Actions #2

Updated by Lenz Grimmer about 5 years ago

  • Pull request ID set to 26712
Actions #3

Updated by Kefu Chai almost 5 years ago

  • Status changed from Fix Under Review to Resolved
Actions #4

Updated by Lenz Grimmer almost 5 years ago

  • Related to Bug #38628: restful/api is not Python 3 compatible added
Actions

Also available in: Atom PDF