MantisBT: master-1.2.x e5b7a744

Author Committer Branch Timestamp Parent
rombert rombert master-1.2.x 2009-10-30 05:53 master-1.2.x 0f796cf7
Changeset

Return a proper soap_fault if attachment retrieval fails

Attempts to get an inexisting attachment had inconsistent results,
depending on the attachment_type, either returning empty for
project attachents or throwing an internal error ( no bug with
id 0 ).

This commit changes the API to return a soap_fault is the
attachment can not be retrieved and verifies it with two
new tests.

mod - tests/soap/AttachmentTest.php Diff File
mod - api/soap/mc_file_api.php Diff File
mod - api/soap/mc_issue_attachment_api.php Diff File
mod - api/soap/mc_project_attachment_api.php Diff File