Project

General

Profile

Bug #38522

restful module traceback when querying any endpoint that require auth

Added by Brad Hubbard 6 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
ceph-mgr
Target version:
-
Start date:
03/01/2019
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

Related to mgr - Bug #38628: restful/api is not Python 3 compatible Pending Backport 03/07/2019

History

#1 Updated by Brad Hubbard 6 months ago

  • Description updated (diff)
  • Status changed from New to Need Review

#2 Updated by Lenz Grimmer 6 months ago

  • Pull request ID set to 26712

#3 Updated by Kefu Chai 4 months ago

  • Status changed from Need Review to Resolved

#4 Updated by Lenz Grimmer 4 months ago

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

Also available in: Atom PDF