Skip Menu |

This queue is for tickets about the RT-Client-REST CPAN distribution.

Report information
The Basics
Id: 27201
Status: resolved
Priority: 0/
Queue: RT-Client-REST

People
Owner: DMITRI [...] cpan.org
Requestors: DMITRI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.29
Fixed in: 0.30



Subject: Second login with incorrect credentials does not throw an exception.
Calling 'login' method with incorrect credentials several times only throws an exception first time around.
Test script: #!/usr/bin/perl use strict; use warnings; use Error qw(:try); use RT::Client::REST; my $rt = RT::Client::REST->new(server => 'http://localhost/rt3'); for (1 .. 5) { print "TRY: $_\n"; try { $rt->login(qw(username root password dude)); } catch Exception::Class::Base with { my $e = shift; print "Login failed: ", ref($e), ": ", $e->message || $e->description, "\n"; }; } try { $rt->login(qw(username root password password)); } catch Exception::Class::Base with { my $e = shift; print "Login failed: ", ref($e), ": ", $e->message || $e->description, "\n"; };
Fixed in 0.30