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: 52076
Status: resolved
Priority: 0/
Queue: JIRA-Client

People
Owner: GNUSTAVO [...] cpan.org
Requestors: abelous [...] broadcom.com
Cc:
AdminCc:

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



Subject: progress_workflow_action_safely fail
Date: Wed, 25 Nov 2009 22:05:02 -0800
To: "bug-JIRA-Client [...] rt.cpan.org" <bug-JIRA-Client [...] rt.cpan.org>
From: "Andrey Belous" <abelous [...] broadcom.com>
JIra Version: 3.13.2-#335 dosent like progress_workflow_action_safely when dudate field is set Client Version 0.21 After update to version 0.21 from 0.19 I can not make progress_workflow_action_safely work This is a example of my call: $jira->progress_workflow_action_safely("${PREFIX}${issue_num}",'Resolve Issue', { issuetype=>"$issue->{'type'}",customfield_10007=>$string,}); Error that I am getting is: oapenv:Server.userException, org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. After comparing the debugger output for @args in AUTOLOAD function before calling my $call = $self->{soap}->call($method, $self->{auth}, @args); I can see the differences (0.19 =>Good", and 0.21 =>"Not Good" ). The structure for 'component' is wrong: bless( { 'values' => [ bless( { 'id' => '11473' }, 'RemoteComponent' ) ], 'id' => 'components' This is a full dump from 2 debuggers: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! JIRA::Client::AUTOLOAD(/projects/stbdev/bdvd/bin/.plib/cpan/JIRA/Client.pm:989): 989: my $call = $self->{soap}->call($method, $self->{auth}, @args); DB<29> p $methos DB<30> p $method progressWorkflowAction DB<31> p $self->{auth} Y4383PG1a2 DB<33> p Dumper @args $VAR1 = 'SWBLURAY-17742'; $VAR2 = '5'; $VAR3 = [ bless( { 'values' => [ '12295' ], 'id' => 'versions' }, 'RemoteFieldValue' ), bless( { 'values' => [ 'andrey' ], 'id' => 'assignee' }, 'RemoteFieldValue' ), bless( { 'values' => [ 'For Test ONLY' ], 'id' => 'summary' }, 'RemoteFieldValue' ), bless( { 'values' => [ bless( { 'id' => '11473' }, 'RemoteComponent' ) ], 'id' => 'components' }, 'RemoteFieldValue' ), bless( { 'values' => [ 'Yes' ], 'id' => 'customfield_10021' }, 'RemoteFieldValue' ), bless( { 'values' => [], 'id' => 'fixVersions' }, 'RemoteFieldValue' ), bless( { 'values' => [ '18/Nov/09' ], 'id' => 'duedate' }, 'RemoteFieldValue' ), bless( { 'values' => [ 'By andrey For Test Only' ], 'id' => 'customfield_10007' }, 'RemoteFieldValue' ) ]; DB<34> !!!!!!!!!!!!!!!!!!! GOOD one DB<12> p Dumper @args $VAR1 = 'SWBLURAY-17742'; $VAR2 = '5'; $VAR3 = [ bless( { 'values' => [ '11473' ], 'id' => 'components' }, 'RemoteFieldValue' ), bless( { 'values' => [], 'id' => 'fixVersions' }, 'RemoteFieldValue' ), bless( { 'values' => [ '1' ], 'id' => 'issuetype' }, 'RemoteFieldValue' ), bless( { 'values' => [ '12295' ], 'id' => 'versions' }, 'RemoteFieldValue' ), bless( { 'values' => [ 'andrey' ], 'id' => 'assignee' }, 'RemoteFieldValue' ), bless( { 'values' => [ 'For Test ONLY' ], 'id' => 'summary' }, 'RemoteFieldValue' ), bless( { 'values' => [ 'Yes' ], 'id' => 'customfield_10021' }, 'RemoteFieldValue' ), bless( { 'values' => [ 'By andrey For Test Only' ], 'id' => 'customfield_10007' }, 'RemoteFieldValue' ), bless( { 'values' => [ '18/Nov/09' ], 'id' => 'duedate' }, 'RemoteFieldValue' ) ]; DB<13>

Message body is not shown because it is too large.

Hi Andrey, I think I found the problem. I'm wrongly reconverting the fields in the _cast_remote_field_values function. Can you please remove the following lines from the code and try again? --- Client.pm (revisão 76) +++ Client.pm (cópia de trabalho) @@ -942,10 +942,6 @@ sub _cast_remote_field_values { my ($self, $arg) = @_; if (ref $arg && ref $arg eq 'HASH') { - # Convert some fields' values - foreach my $field (grep {exists $_converters{$_}} keys %$arg) { - $_converters{$field}->($self, $arg, $field); - } return [map {RemoteFieldValue->new($_, $arg->{$_})} keys %$arg]; } return $arg;
Subject: RE: [rt.cpan.org #52076] progress_workflow_action_safely fail
Date: Mon, 30 Nov 2009 06:38:58 -0800
To: "bug-JIRA-Client [...] rt.cpan.org" <bug-JIRA-Client [...] rt.cpan.org>
From: "Andrey Belous" <abelous [...] broadcom.com>
Hi,Gustavo I commented lines that you mention and after that progress_wrokflow_action_safely work fine for me . I will wait for official fix and will try again Thank, you for your quick response Andrey Show quoted text
-----Original Message----- From: Gustavo Leite de Mendonça Chaves via RT [mailto:bug-JIRA-Client@rt.cpan.org] Sent: Saturday, November 28, 2009 8:13 PM To: Andrey Belous Subject: [rt.cpan.org #52076] progress_workflow_action_safely fail <URL: https://rt.cpan.org/Ticket/Display.html?id=52076 > Hi Andrey, I think I found the problem. I'm wrongly reconverting the fields in the _cast_remote_field_values function. Can you please remove the following lines from the code and try again? --- Client.pm (revisão 76) +++ Client.pm (cópia de trabalho) @@ -942,10 +942,6 @@ sub _cast_remote_field_values { my ($self, $arg) = @_; if (ref $arg && ref $arg eq 'HASH') { - # Convert some fields' values - foreach my $field (grep {exists $_converters{$_}} keys %$arg) { - $_converters{$field}->($self, $arg, $field); - } return [map {RemoteFieldValue->new($_, $arg->{$_})} keys %$arg]; } return $arg;
Subject: Re: [rt.cpan.org #52076] progress_workflow_action_safely fail
Date: Mon, 30 Nov 2009 13:54:28 -0200
To: bug-JIRA-Client [...] rt.cpan.org
From: Gustavo Leite de Mendonça Chaves <gnustavo [...] cpan.org>
On Mon, Nov 30, 2009 at 12:41 PM, Andrey Belous via RT <bug-JIRA-Client@rt.cpan.org> wrote: Show quoted text
>       Queue: JIRA-Client >  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=52076 > > > Hi,Gustavo > > I commented lines that you mention and after that  progress_wrokflow_action_safely > work fine for me . > I will wait for official fix and will try again
I've just uploaded version 0.22 to PAUSE. It should appear on CPAN shortly. You can grab it earlier from http://code.google.com/p/jira-client/. Thanks for the report. Gustavo.
Subject: RE: [rt.cpan.org #52076] progress_workflow_action_safely fail
Date: Tue, 22 Dec 2009 10:33:19 -0800
To: "Andrey Belous" <abelous [...] broadcom.com>, "bug-JIRA-Client [...] rt.cpan.org" <bug-JIRA-Client [...] rt.cpan.org>
From: "Andrey Belous" <abelous [...] broadcom.com>
Hi,Gustavo With your next update to JIRA Client, please fix syntax mistake: Line :260 From qw/zero Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dez/[$month], to qw/zero Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/[$month], It is spelling error in month name for December Thank, you Andrey Show quoted text
-----Original Message----- From: Andrey Belous Sent: Monday, November 30, 2009 9:39 AM To: 'bug-JIRA-Client@rt.cpan.org' Subject: RE: [rt.cpan.org #52076] progress_workflow_action_safely fail Hi,Gustavo I commented lines that you mention and after that progress_wrokflow_action_safely work fine for me . I will wait for official fix and will try again Thank, you for your quick response Andrey
-----Original Message----- From: Gustavo Leite de Mendonça Chaves via RT [mailto:bug-JIRA-Client@rt.cpan.org] Sent: Saturday, November 28, 2009 8:13 PM To: Andrey Belous Subject: [rt.cpan.org #52076] progress_workflow_action_safely fail <URL: https://rt.cpan.org/Ticket/Display.html?id=52076 > Hi Andrey, I think I found the problem. I'm wrongly reconverting the fields in the _cast_remote_field_values function. Can you please remove the following lines from the code and try again? --- Client.pm (revisão 76) +++ Client.pm (cópia de trabalho) @@ -942,10 +942,6 @@ sub _cast_remote_field_values { my ($self, $arg) = @_; if (ref $arg && ref $arg eq 'HASH') { - # Convert some fields' values - foreach my $field (grep {exists $_converters{$_}} keys %$arg) { - $_converters{$field}->($self, $arg, $field); - } return [map {RemoteFieldValue->new($_, $arg->{$_})} keys %$arg]; } return $arg;
Subject: Re: [rt.cpan.org #52076] progress_workflow_action_safely fail
Date: Wed, 23 Dec 2009 19:22:43 -0200
To: bug-JIRA-Client [...] rt.cpan.org
From: Gustavo Leite de Mendonça Chaves <gnustavo [...] cpan.org>
On Tue, Dec 22, 2009 at 4:36 PM, Andrey Belous via RT <bug-JIRA-Client@rt.cpan.org> wrote: Show quoted text
>       Queue: JIRA-Client >  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=52076 > > > Hi,Gustavo > > With your next update to JIRA Client, please fix syntax mistake: > Line :260 > From        qw/zero Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dez/[$month], > to        qw/zero Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/[$month], > > > It is spelling error in month name for December
Ooops. This is some Portuguese sneaking into what should be English-only. :-) I'll see to it in a few days, after the holidays. Thanks. Gustavo.
Subject: Re: [rt.cpan.org #52076] progress_workflow_action_safely fail
Date: Thu, 24 Dec 2009 18:45:09 -0200
To: bug-JIRA-Client [...] rt.cpan.org
From: Gustavo Leite de Mendonça Chaves <gnustavo [...] cpan.org>
Hi Andrey, I just uploaded JIRA::Client 0.24 to PAUSE. It should appear shortly on CPAN, incorporating the typo correction you suggested. Thanks. Gustavo.
Subject: Re: [rt.cpan.org #52076] progress_workflow_action_safely fail
Date: Thu, 24 Dec 2009 18:45:09 -0200
To: bug-JIRA-Client [...] rt.cpan.org
From: Gustavo Leite de Mendonça Chaves <gnustavo [...] cpan.org>
Hi Andrey, I just uploaded JIRA::Client 0.24 to PAUSE. It should appear shortly on CPAN, incorporating the typo correction you suggested. Thanks. Gustavo.
Solution incorporated in version 0.24.