Skip Menu |
 

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 13542
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: MSCHOUT [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: clone() and cookie_jar
Download (untitled) / with headers
text/plain 120b
It would be nice if LWP::UserAgent->clone() did not delete the $self->{cookie_jar} object. Any chance this can be done?
See also: #13541 (in Test-WWW-Mechanize) which is caused by this problem.
But should it share the cookie_jar with the parent user agent or should it get a copy?
Subject: clone() - cookie_jar should be shared
From: mark [...] summersault.com
Download (untitled) / with headers
text/plain 556b
We got bit by this today through Test::WWW::Mechanize. On Tue Dec 06 08:33:29 2005, GAAS wrote: Show quoted text
> But should it share the cookie_jar with the parent user agent > or should it get a copy?
It should get a copy because that's what "clone" sounds like it does. If you want the sharing behavior, it begs the question: why clone at all? If there are use-cases for sharing that come up, a share_cookie_jar option can be added. It's also unfortunate that the current behavior of deleting the cookie jar is undocumented, as it's an unintuitive behavior.
Download (untitled) / with headers
text/plain 217b
Agreed that this should be documented. To that end, we've added https://github.com/libwww-perl/libwww-perl/commit/981a966588d6395c86e49ee07d6f7aebeceafc88 This should be documented in the next release. Thanks, Chase
Download (untitled) / with headers
text/plain 283b
On Thu Mar 09 19:32:50 2017, CAPOEIRAB wrote: Show quoted text
> Agreed that this should be documented. To that end, we've added > https://github.com/libwww-perl/libwww- > perl/commit/981a966588d6395c86e49ee07d6f7aebeceafc88 > > This should be documented in the next release. > > Thanks, > Chase


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.