Closed GoogleCodeExporter closed 9 years ago
I'll take a look. FYI, if possible you should prefer using 'transferRequest'
instead of 'continueRequest'. It's usually better.
Original comment by sberlin
on 20 May 2014 at 1:09
Thanks. The provided patch is missing null pointer check in constructor:
if (super.getCookies() != null) {
cookies = super.getCookies().clone();
}
In our use case the cookies exist only when ContinuingHttpServletRequest
object is created. Later in background thread no cookies available any more on
the underlying wrapper HTTP request.
Cloning and freezing the cookies in constructor of ContinuingHttpServletRequest
solves that.
Original comment by David.Os...@gmail.com
on 20 May 2014 at 1:38
Hi Sam I've got a better patch for this in the works if you can wait a day or
two?
Original comment by dha...@gmail.com
on 20 May 2014 at 5:02
Hi this patch doesn't address the problem with isolating mutable cookies. I
have a better patch I. The works, plz hold off for a little I'll have it in
soon.
Original comment by dha...@gmail.com
on 20 May 2014 at 5:03
Sure -- it'd be great to have you actively working on this again, Dhanji!
Original comment by sa...@google.com
on 20 May 2014 at 5:05
@all
Please review here:
https://code.google.com/p/google-guice/source/detail?r=65f9d43bba9c447f01a3dcd1e
2ebb5435b061324&name=continue_request_immutable_cookies
This is on a branch.
Original comment by dha...@gmail.com
on 21 May 2014 at 3:30
Actually, I lie, this is the correct commit:
https://code.google.com/p/google-guice/source/detail?r=3b02622e856e845f9bc5353a4
94b5ccc75dec40c&name=continue_request_immutable_cookies
Please disregard the earlier one.
Original comment by dha...@gmail.com
on 21 May 2014 at 3:44
Thanks for the quick fix! I can confirm that this fix the original problem.
Until a new version of Guice is release (new Beta?) i have uploaded a change to
build Gerrit Code Review against Guice snapshot 4.0 [1].
[1] https://gerrit-review.googlesource.com/#/c/57306
Original comment by David.Os...@gmail.com
on 21 May 2014 at 6:54
Great, good to know. I'll merge as soon as it goes through code review.
Sam is your man for release questions.
Original comment by dha...@gmail.com
on 21 May 2014 at 7:12
Any chance to release a new beta version of Guice with this patch included? We
have to maintain our own fork of Guice for Gerrit Code Review to work on master
[1]. Thanks.
[1] https://groups.google.com/forum/#!topic/repo-discuss/-ncxUgnxnrs
Original comment by David.Os...@gmail.com
on 27 May 2014 at 12:13
Any ETA for new beta containing this fix?
Original comment by David.Os...@gmail.com
on 13 Jun 2014 at 6:00
Seems that the commit that fixes this issue (3b02622e856e) is contained in
4.0-beta5:
git tag --contains 3b02622e856e
4.0-beta5
Original comment by adrian.g...@sap.com
on 1 Oct 2014 at 8:52
Yes. I've uploaded the update change to switch to this released version.
Original comment by David.Os...@gmail.com
on 1 Oct 2014 at 12:09
The code.google.com guice project has migrated to GitHub. This issue site is
no longer being used. Please use https://github.com/google/guice/issues/806
instead.
Original comment by sberlin
on 1 Oct 2014 at 1:41
Original issue reported on code.google.com by
David.Os...@gmail.com
on 20 May 2014 at 5:39Attachments: