Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpCache] removed x-debug-token from response metadata before storing it #7033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

[HttpCache] removed x-debug-token from response metadata before storing it #7033

wants to merge 1 commit into from

Conversation

bamarni
Copy link
Contributor

@bamarni bamarni commented Feb 9, 2013

Q A
Bug fix? [yes]
New feature? [no]
BC breaks? [no]
Deprecations? [no]
Tests pass? [yes]
Fixed tickets [#6227]
License MIT

When using HttpCache on dev environment, looking up and finding a response satisfying the master request leads to a bug with the stopwatch component, because it tries to open a section that doesn't exists, the X-Debug-Token is from an older request.

@fabpot
Copy link
Member

fabpot commented Feb 11, 2013

This is the wrong place to deal with that as HttpCache should have no knowledge of this X-Debug-Token header.

@bamarni
Copy link
Contributor Author

bamarni commented Feb 11, 2013

Could you give me some pointers?

The only other fix I could see is to do a catch here : https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php#L391 and open a section witouth naming it, as it's be done later here IIUC (https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php#L391).

@fabpot
Copy link
Member

fabpot commented Feb 11, 2013

I didn't say that it will be easy ;) I will have a look later.

@bamarni
Copy link
Contributor Author

bamarni commented Feb 11, 2013

great, thx :)

@bamarni bamarni closed this Feb 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants