Closed Bug 542931 Opened 14 years ago Closed 14 years ago

Bug in SOAP::Lite prevents WebService:XMLRPC logins from persisting

Categories

(Bugzilla :: WebService, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: mockodin, Assigned: LpSolit)

Details

Attachments

(1 file)

SOAP::Transport::HTTP line 807 (SOAP::Lite 0.710.10) Only the last Cookie is set
	
>    if ( $self->{'MOD_PERL_VERSION'} > 1 ) {
>        $self->response->headers->scan( sub { $r->headers_out->set(@_) } );   #<- line 807
>        $r->content_type( join '; ', $self->response->content_type );
>    }
>    else {
>        $self->response->headers->scan( sub { $r->header_out(@_) } );
>        $r->send_http_header( join '; ', $self->response->content_type );
>    }
>    $r->print( $self->response->content );
>    return $self->{OK};

Should be:
$self->response->headers->scan( sub { $r->headers_out->add(@_) } );

$r->headers_out->set() appears to keep overwriting the same cookie
header with each subsequent cookie, there by setting only the last

$r->headers_out->add() on the other hand properly adds each uniquely

I thought it worked previously so I'm wondering if header_out->set
changed somehow?

I have posted an rt bug, I'll post a direct link once the bug request is processed:
http://rt.cpan.org/Public/Dist/Display.html?Name=SOAP-Lite
OS: Windows 7 → All
Hardware: x86_64 → All
Added patch to SourceForge ticket
Patch accepted, but no idea when it will get rolled into a build and up on cpan.
SOAP-Lite-0.711 released 18 Mar 2010 to CPAN, Includes Cookie fix

We should increment the minimum version in checksetup accordingly.
Mockodin: Feel free to supply a patch for the version number bump. We may also have to make other fixes to be fully compatible with the latest versions.
Attached patch patch, v1Splinter Review
SOAP::Lite 0.712 was released 6 months ago. It also fixes these annoying warnings in Perl 5.12.
Assignee: webservice → LpSolit
Status: NEW → ASSIGNED
Attachment #495385 - Flags: review?(mkanat)
Attachment #495385 - Flags: review?(mkanat) → review+
Flags: approval4.0+
Flags: approval+
Target Milestone: --- → Bugzilla 4.0
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/Install/Requirements.pm
Committed revision 7613.

Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.0/
modified Bugzilla/Install/Requirements.pm
Committed revision 7490.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: