Taras,

    Given that this class has become a very important part of the
framework, could you please write some unit-tests around it so we can
make sure that things like this don't happen again? I recommend using
core/data/db/tests/test_temp_persist.py as a base and locate your
unit-test at core/data/db/tests/test_history.py

    Thanks!

Regards,

On Fri, Apr 13, 2012 at 9:24 PM, w3af <nore...@sourceforge.net> wrote:
> #171589: [Auto-Generated] Bug Report - TypeError: __init__() takes exactly 1
> argument (2 given)
> -----------------------------------+----------------------------------------
>  Reporter:  w3afbugsreport        |       Owner:  andresriancho
>      Type:  defect                |      Status:  closed
>  Priority:  major                 |   Milestone:
>  Component:  automatic-bug-report  |     Version:
> Resolution:  fixed                 |    Keywords:
> -----------------------------------+----------------------------------------
> Changes (by andresriancho):
>
>  * status:  new => closed
>  * resolution:  => fixed
>
>
> Old description:
>
>> == User description: ==
>> What steps will reproduce the problem?
>> 1.
>> 2.
>> 3.
>>
>> What is the expected output? What do you see instead?
>>
>
>> What operating system are you using?
>>
>
>> Please provide any additional information below:
>>
>
>>
>> [[BR]][[BR]]
>> == Version Information: ==
>> {{{
>>
>> Python version:
>> 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
>> [GCC 4.4.3]
>>
>> GTK version:2.20.1
>> PyGTK version:2.17.0
>>
>
>> w3af - Web Application Attack and Audit Framework
>> Version: 1.2
>> Revision: 4882
>> Author: Andres Riancho and the w3af team.
>>
>> }}}
>> [[BR]][[BR]]
>> == Traceback: ==
>> {{{
>> Traceback (most recent call last):
>>   File "/pentest/web/w3af/core/ui/gtkUi/httpLogTab.py", line 309, in
>> refreshResults
>>     self.findRequestResponse(refresh=True)
>>   File "/pentest/web/w3af/core/ui/gtkUi/httpLogTab.py", line 376, in
>> findRequestResponse
>>     resultLimit=5001, orderData=[("id","")])
>>   File "/pentest/web/w3af/core/data/db/history.py", line 166, in find
>>     item = self.__class__(self._db)
>> TypeError: __init__() takes exactly 1 argument (2 given)
>>
>> }}}
>> == Enabled Plugins: ==
>> {{{
>>
>> }}}
>
> New description:
>
>  == User description: ==
>  What steps will reproduce the problem?
>  1.
>  2.
>  3.
>
>  What is the expected output? What do you see instead?
>
>
>  What operating system are you using?
>
>
>  Please provide any additional information below:
>
>
>
>  [[BR]][[BR]]
>  == Version Information: ==
>  {{{
>
>  Python version:
>  2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
>  [GCC 4.4.3]
>
>  GTK version:2.20.1
>  PyGTK version:2.17.0
>
>
>  w3af - Web Application Attack and Audit Framework
>  Version: 1.2
>  Revision: 4882
>  Author: Andres Riancho and the w3af team.
>
>  }}}
>  [[BR]][[BR]]
>  == Traceback: ==
>  {{{
>  Traceback (most recent call last):
>   File "/pentest/web/w3af/core/ui/gtkUi/httpLogTab.py", line 309, in
>  refreshResults
>     self.findRequestResponse(refresh=True)
>   File "/pentest/web/w3af/core/ui/gtkUi/httpLogTab.py", line 376, in
>  findRequestResponse
>     resultLimit=5001, orderData=[("id","")])
>   File "/pentest/web/w3af/core/data/db/history.py", line 166, in find
>     item = self.__class__(self._db)
>  TypeError: __init__() takes exactly 1 argument (2 given)
>
>  }}}
>  == Enabled Plugins: ==
>  {{{
>
>  }}}
>
> --
>
> Comment:
>
>  Fixed in r4883.
>
> --
> Ticket URL: <http://sourceforge.net/apps/trac/w3af/ticket/171589#comment:1>
> w3af <http://sourceforge.net/projects/w3af/>
> w3af - Web Application Attack and Audit Framework.



-- 
Andrés Riancho
Project Leader at w3af - http://w3af.org/
Web Application Attack and Audit Framework

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
W3af-develop mailing list
W3af-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/w3af-develop

Reply via email to