Bug 729562

Summary: Bug.update() xmlrpc can't remove the value of "deadline" field
Product: [Community] Bugzilla Reporter: Tony Fu <tfu>
Component: WebServiceAssignee: PnT DevOps Devs <hss-ied-bugs>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6CC: kbaker, sgreen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-21 02:26:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 723052    

Description Tony Fu 2011-08-10 07:46:07 UTC
Description of problem:


I can use Bug.update() xmlrpc call to add/update a deadline value, but once the value has been set, the Bug.update() can't remove it.


How reproducible:


Steps to Reproduce:
1. Set a valid date in "deadline" field
2. Write a script which uses Bug.update() xmrrpc call to set "deadline" to ""(empty string)

here is an example
my %data;
my %update_data;
$data{"ids"} = [$bug_id];
$update_data{"deadline"} = '';
$data{"updates"} = \%update_data;

$call=$bz_rpc->call('Bug.update', \%data);
    if ($call->fault) {
        my $fault_string = $call->faultstring;
        die "bz xmlrpc call failed: $fault_string ";
    }

  
Actual results:
the value of deadline field is not changed.

Expected results:
the deadline field should be empty


Additional info:
I know perl DBI treats "" as NULL, but I have tried to set $update_date{"deadline"} to other possible empty values ('null', '0000-00-00', undef etc), they won't work either.

Comment 2 Kevin Baker 2011-08-11 17:16:47 UTC
Is this a bug with upstream bz? Can you submit it there too please. We strongly prefer not to alter the upstream routines.

Comment 3 Simon Green 2012-05-21 02:26:21 UTC
Should be fixed with Bugzilla 4.2. Let me know if it isn't.

  -- simon