#667: Error rendering forbidden pages
------------------------+---------------------------------
  Reporter:  olemis     |      Owner:  olemis
      Type:  defect     |     Status:  assigned
  Priority:  blocker    |  Milestone:  Release 8
 Component:  ui design  |    Version:  0.7.0
Resolution:             |   Keywords:  permissions, chrome
------------------------+---------------------------------

Comment (by olemis):

 Replying to [comment:14 rjollos]:
 > Replying to [comment:13 olemis]:
 > > Have you applied that patch ? See comment:8
 >
 > The issue was fixed in [1542165 ].
 >

 Hmmm ... I'll take a look into this then .
 ;)

 > > > but the bigger problem I see is that revoking all permissions for
 anonymous and not restoring them after the test is finished would affect
 other functional tests.
 > >
 > > That's normal with functional test cases . They are not as isolated as
 unit tests .
 >
 > Because they are not isolated you need to restore the environment state
 at the end of each test case. Otherwise, you are potentially causing
 problems for the next test case. We make the effort in the Trac test suite
 to restore the environment state at the end of each test case. The same
 should be done in Bloodhound. For example, see
 
[http://trac.edgewall.org/browser/branches/1.0-stable/trac/ticket/tests/functional.py?marks=559,573&rev=12227#L553
 TestAdminComponentNoneDefined].

 OTOH by reviewing
 
[https://issues.apache.org/bloodhound/browser/trunk/trac/trac/ticket/tests/functional.py#L1159
 RegressionTestTicket4630a] and
 
[https://issues.apache.org/bloodhound/browser/trunk/trac/trac/ticket/tests/functional.py#L1187
 RegressionTestTicket4630b] it seems that the side effects of the former
 are a pre-condition for executing the later . That's quite common in
 functional test cases .

 {{{#!sh

 $ grep -n -r "class .*b(" ../trac/trac/ticket/tests/
 ../trac/trac/ticket/tests/functional.py:1187:class
 RegressionTestTicket4630b(FunctionalTestCaseSetup):
 ../trac/trac/ticket/tests/functional.py:1250:class
 RegressionTestTicket5394b(FunctionalTwillTestCaseSetup):
 ../trac/trac/ticket/tests/functional.py:1294:class
 RegressionTestTicket5497b(FunctionalTwillTestCaseSetup):
 ../trac/trac/ticket/tests/functional.py:1491:class
 RegressionTestTicket6879b(FunctionalTwillTestCaseSetup):
 ../trac/trac/ticket/tests/functional.py:1518:class
 RegressionTestTicket6912b(FunctionalTwillTestCaseSetup):
 }}}

 In general the state most usually restored is the admin permissions for
 admin user and keeping the tester logged in as admin .

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/667#comment:15>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Reply via email to