Bug #46703

Session has side effects in functional tests

Added by Robert Lemke about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Session
Start date:
2013-03-27
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.4
Has patch:
No
Complexity:
hard

Description

Consider the following code in a functional test:

    $response = $this->browser->request('http://localhost/test/session');
    $this->assertTrue($response->hasCookie('TYPO3_Flow_Session'));

    $response = $this->browser->request('http://localhost/test/session');
    $this->assertTrue($response->hasCookie('TYPO3_Flow_Session'));

The first assertion will succeed because the new session sends a session cookie in its response.
The second assertion will fail because the session object seems to be reused and not fully cleared before it is used again in the second browser request.


Related issues

Related to TYPO3.Flow - Bug #46428: Session is started on every requestResolvedBastian Waidelich2013-03-19

Actions
#1

Updated by Gerrit Code Review about 8 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19338

#2

Updated by Gerrit Code Review about 8 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19338

#3

Updated by Anonymous about 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#4

Updated by Gerrit Code Review about 8 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch 2.0 has been pushed to the review server.
It is available at https://review.typo3.org/19594

#5

Updated by Gerrit Code Review about 8 years ago

Patch set 2 for branch 2.0 has been pushed to the review server.
It is available at https://review.typo3.org/19594

#6

Updated by Anonymous about 8 years ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF