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.