Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 72667
Status: resolved
Priority: 0/
Queue: JIRA-Client

People
Owner: GNUSTAVO [...] cpan.org
Requestors: dbaber [...] corvisa.com
Cc:
AdminCc:

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



Subject: JIRA::Client::get_security_levels does not work
Date: Wed, 23 Nov 2011 16:56:45 +0000 (UTC)
To: bug-jira-client [...] rt.cpan.org
From: Dan Baber <dbaber [...] corvisa.com>
I get the following error when calling get_security_levels: soapenv:Server.userException, com.atlassian.jira.rpc.exception.RemoteValidationException: Error retrieving project with key 'null': No project could be found with key 'null'. at t/Blackjack/jira_client_bug.t line 83 soapenv:Server.userException, com.atlassian.jira.rpc.exception.RemoteValidationException: Error retrieving project with key 'null': No project could be found with key 'null'. at t/Blackjack/jira_client_bug.t line 83 I fixed it with this patch: --- Client.pm.orig 2011-11-23 10:36:32.356135982 -0600 +++ Client.pm 2011-11-23 10:41:46.666134080 -0600 @@ -565,9 +565,9 @@ =cut sub get_security_levels { - my ($self) = @_; - $self->{cache}{seclevels} ||= {map {$_->{name} => $_} @{$self->getSecurityLevels()}}; - return $self->{cache}{seclevels}; + my ($self, $project_key) = @_; + $self->{cache}{seclevels}{$project_key} ||= {map {$_->{name} => $_} @{$self->getSecurityLevels($project_key)}}; + return $self->{cache}{seclevels}{$project_key}; } =item B<get_custom_fields> Dan -- Dan Baber | StreetLinks Lender Solutions | Software Developer 2365 N. Mayfair Road, Second Floor, Milwaukee, WI 53226 www.streetlinks.com | dbaber@corvisa.com

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

JIRA::Client 0.32 fix this.