Bug #40626

Cookie - Setting throws exception in Http\Response

Added by Ferdinand Kuhl almost 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Http
Start date:
2012-09-04
Due date:
% Done:

100%

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

Description

The "Set-Cookie" headers must be set via setCookie().
28 TYPO3\FLOW3\Http\Headers::set("Set-Cookie", "JSESSIONID=0000bpxjzMKKBYiEQM5yG5xd5CG:15rk67n7r; Path=/", boolean)

If the foreign webserver sends an header "Set-Cookie" FLOW3 throws an Exception, and breaks header - parsing. So no content from Servers sending cookies can be extracted.


Related issues

Has duplicate TYPO3.Flow - Bug #40625: InvalidArgumentException thrown in file Headers.phpClosedRobert Lemke2012-09-04

Actions
#1

Updated by Robert Lemke almost 9 years ago

  • Status changed from New to Needs Feedback
  • Priority changed from -- undefined -- to Should have
  • Target version set to 1.1.1
  • PHP Version set to 5.4
  • Complexity set to medium

Thanks for the report. Can you give some more info about the steps to reproduce this bug? Were you using the Http\Client\Browser API?

#2

Updated by Ferdinand Kuhl almost 9 years ago

Exactly. Together with curlEngine. (Where another bug is, that no host-header is sent - which violates HTTP/1.1 - Protocol, but I will open a new Issue with patch shortly for that)

But reproduction is possible if you use the Example from Http foundation together with this url:
$response = $this->browser->request('http://typo3.org/https-ajax/info/user.xml');

#3

Updated by Karsten Dambekalns over 8 years ago

  • Status changed from Needs Feedback to Resolved
  • Target version changed from 1.1.1 to 2.0 beta 1
  • % Done changed from 0 to 100
#4

Updated by Karsten Dambekalns over 8 years ago

The Host header is sent as well, btw…

Also available in: Atom PDF