Skip to content

ContinuingHttpServletRequest: Make cookies immutable #806

@gissuebot

Description

@gissuebot

From David.Ostrovsky on May 20, 2014 01:39:14

Description of the issue: Cookies are lost in Ccontinued background thread in ontinuingHttpServletRequest.

The whole purpose of request scope propagation is to make a
snapshot of the request.  To the snapshot belong all attributes
and cookies. Cookies are mutable and were erroneously not frozen.

Note this TODO comment in the corresponding code:

// TODO(dhanji): Cookies themselves are mutable. Is this a problem?

This breaks web session management in Gerrit Code review project.

Steps to reproduce: [1]

[1] https://gerrit-review.googlesource.com/57284

Attachment: gist
   0001-Guice-Servlet-Fix-request-propagation-problem.patch

Original issue: http://code.google.com/p/google-guice/issues/detail?id=806

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions