View Issue Details

IDProjectCategoryView StatusLast Update
0011015mantisbtapi soappublic2010-02-22 14:34
Reporterrombert Assigned Torombert  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0rc2 
Target Version1.2.0Fixed in Version1.2.0 
Summary0011015: mc_issue_update erases 'Due date' field
Description

Actually found in 1.2.0rc2, but it's not available in the drop-down.

The due_date field is erased when using mc_issue_update, since in api/soap/mc_issue_api.php on line 687 it's set as

<pre> $t_bug_data->due_date = date_get_null();</pre>

Please either expose this field using the SOAP API, as was done for target_version in issue 0008284 , or read the existing value from the database.

TagsNo tags attached.

Activities

rombert

rombert

2009-11-03 04:35

reporter   ~0023553

Empty due_dates are not serialized properly (missing 'xsi:null="true"') and can't be read by Java clients.

Related Changesets

MantisBT: master-1.2.x 087445ce

2009-10-28 12:18

rombert


Details Diff
Fixes 0011015: mc_issue_update erases 'Due date' field

The due_date field has been added to the WSDL and is now exposed
by mc_issue_get and accepted by mc_issue_add and mc_issue_update.
Proper access checkes are in place.

The due_date is read with the local time zone offset applied since
nusoap seems to apply the offset wrong when parsing.

Reference: http://www.nabble.com/NUSOAP-datetime-UTC-issue-td16627310.html

Tests have been added for both adding and updating an issue, skipped
if the thresholds don't allow the admin user to view and update the
due date.
Affected Issues
0011015
mod - tests/soap/SoapBase.php Diff File
mod - api/soap/mantisconnect.php Diff File
mod - tests/soap/IssueAddTest.php Diff File
mod - tests/soap/IssueUpdateTest.php Diff File
mod - api/soap/mc_issue_api.php Diff File

MantisBT: master 29d70634

2009-10-28 12:18

rombert


Details Diff
Fixes 0011015: mc_issue_update erases 'Due date' field

The due_date field has been added to the WSDL and is now exposed
by mc_issue_get and accepted by mc_issue_add and mc_issue_update.
Proper access checkes are in place.

The due_date is read with the local time zone offset applied since
nusoap seems to apply the offset wrong when parsing.

Reference: http://www.nabble.com/NUSOAP-datetime-UTC-issue-td16627310.html

Tests have been added for both adding and updating an issue, skipped
if the thresholds don't allow the admin user to view and update the
due date.
Affected Issues
0011015
mod - tests/soap/SoapBase.php Diff File
mod - api/soap/mantisconnect.php Diff File
mod - tests/soap/IssueAddTest.php Diff File
mod - tests/soap/IssueUpdateTest.php Diff File
mod - api/soap/mc_issue_api.php Diff File

MantisBT: master-1.2.x fbcc6186

2009-11-04 17:09

rombert


Details Diff
Fixes 0011015: mc_issue_update erases 'Due date' field

The due_date is now properly encoded , carrying the xsi:nil annotation
if applicable.

A test has been added to verify the presence of the attribute, which
is required by some SOAP frameworks, notably Axis.
Affected Issues
0011015
mod - api/soap/mc_issue_api.php Diff File
mod - tests/soap/IssueUpdateTest.php Diff File
mod - tests/soap/IssueAddTest.php Diff File

MantisBT: master dc3958c5

2009-11-04 17:09

rombert


Details Diff
Fixes 0011015: mc_issue_update erases 'Due date' field

The due_date is now properly encoded , carrying the xsi:nil annotation
if applicable.

A test has been added to verify the presence of the attribute, which
is required by some SOAP frameworks, notably Axis.
Affected Issues
0011015
mod - api/soap/mc_issue_api.php Diff File
mod - tests/soap/IssueUpdateTest.php Diff File
mod - tests/soap/IssueAddTest.php Diff File