Page 1 of 1

3.0.0 upgrade issues when adding authentication

Posted: August 9th, 2020, 9:01 pm
by thereddog
I upgraded my 2.x install, and when I opened my browser I was greeted by a HTTP 500 error. I found that when I add a username and password I get the same error

https://i.imgur.com/CTOpKbY.png

Here's part the log:

Code: Select all

2020-08-08 14:57:43,570::INFO::[_cplogging:213] [08/Aug/2020:14:57:43] ENGINE Bus STARTED
2020-08-08 14:59:10,292::ERROR::[_cplogging:213] [08/Aug/2020:14:59:10]  
Traceback (most recent call last):
  File "lib\site-packages\cherrypy\_cprequest.py", line 117, in run_hooks
  File "lib\site-packages\cherrypy\_cprequest.py", line 65, in __call__
TypeError: basic_auth() got an unexpected keyword argument 'users'
2020-08-08 14:59:10,293::ERROR::[_cplogging:213] [08/Aug/2020:14:59:10] HTTP 
Traceback (most recent call last):
  File "lib\site-packages\cherrypy\_cprequest.py", line 638, in respond
  File "lib\site-packages\cherrypy\_cprequest.py", line 694, in _do_respond
  File "lib\site-packages\cherrypy\_cprequest.py", line 95, in run
  File "lib\site-packages\cherrypy\_cprequest.py", line 117, in run_hooks
  File "lib\site-packages\cherrypy\_cprequest.py", line 65, in __call__
TypeError: basic_auth() got an unexpected keyword argument 'users'
2020-08-08 14:59:10,296::INFO::[_cplogging:213] [08/Aug/2020:14:59:10] HTTP 
Request Headers:
  Remote-Addr: 192.168.86.32
  HOST: 192.168.86.230:8080
  CONNECTION: keep-alive
  ACCEPT: */*
  USER-AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.59 Safari/537.36
  X-REQUESTED-WITH: XMLHttpRequest
  REFERER: http://192.168.86.230:8080/config/general/
  ACCEPT-ENCODING: gzip, deflate
  ACCEPT-LANGUAGE: en-US,en;q=0.9
2020-08-08 14:59:12,066::ERROR::[_cplogging:213] [08/Aug/2020:14:59:12]

Re: 3.0.0 upgrade issues when adding authentication

Posted: August 10th, 2020, 6:55 am
by safihre
Oh.. That's a bug!
You can switch to the HTML based authentication.
Will fix this for 3.0.1

Re: 3.0.0 upgrade issues when adding authentication

Posted: August 12th, 2020, 12:05 pm
by thereddog
Sweet! Thank you, thought I was crazy for a bit