[Buildbot-devel] WebStatus issue: Warning: Ignoring authentication. Search for 'authorization' in the manual

ariasgore at gmx.de ariasgore at gmx.de
Fri Dec 24 15:31:54 UTC 2010


Hello,
I am on buildbot 0.8.3 and there seems to be some weirdness. I tried using authentication via:

from buildbot.status.web.auth import HTPasswdAuth
auth = (HTPasswdAuth('/var/www/vhosts/.htpasswd'))
c['status'].append(html.WebStatus(http_port=8010, auth=auth))
(Thats from buildbot's manual!)

Config fails with  Warning: Ignoring authentication. Search for 'authorization' in the manual
 
Now I checked the manual and I see no issue. However the WebStatus code confuses me:
http://buildbot.net/buildbot/docs/latest/reference/buildbot.status.web.baseweb-pysrc.html
Line 296 is the error message described here but when I trace the code it seems quite weird to me:

282          if authz: 
               ... not applicable since using auth
288          else: 
289              # invent an authz 
290              if allowForce and auth: 
291                  authz = Authz(auth=auth, default_action="auth") 
292              elif allowForce: 
293                  authz = Authz(default_action=True) 
294              else: 
295                  if auth: 
296                      log.msg("Warning: Ignoring authentication. Search for 'authorization'" 
297                              " in the manual") 
...

Can sb explain that to me? I mean I am in the else branch and allowForce is marked as deprecated and should not be used so how comes that I do need to use allowForce when creating the webstatus???

Thanks
Sam (confused)


-- 
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt auch mit 
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl




More information about the devel mailing list