[Buildbot-commits] [Buildbot] #963: DirectoryLister has no getAuthz

Buildbot buildbot-devel at lists.sourceforge.net
Mon Aug 16 10:10:53 UTC 2010


#963: DirectoryLister has no getAuthz
--------------------+-------------------------------------------------------
Reporter:  bcmpinc  |       Owner:       
    Type:  defect   |      Status:  new  
Priority:  major    |   Milestone:  0.8.2
 Version:  0.8.1    |    Keywords:       
--------------------+-------------------------------------------------------
 The DirectoryLister in web/base.py is missing the getAuthz method. This
 method is required by ContextMixin's getContext. The result is that
 directory listing does not work.

 '''How to reproduce'''
 - Create a directory in the public_html directory of your buildbot.
 - Navigate to that directory using a browser.
 - This gives an exception page.

 '''Solution'''
 The getAuthz method is defined in HtmlResource, which is a subclass of
 ContextMixin. Moving the method to ContextMixin solves the problem. It is
 probably a good idea to also move the getBuildmaster method.

-- 
Ticket URL: <http://buildbot.net/trac/ticket/963>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list