From: <gi...@ma...> - 2010-11-25 22:09:58
|
The branch, master-1.2.x has been updated via 6f7d05e5daf9e6fc5342073d5a9c5eebf8adfc1e (commit) from 8126ee6979b60a0dcd5f73ff8a225e82870f44fb (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 6f7d05e5daf9e6fc5342073d5a9c5eebf8adfc1e Author: Stéphane Veyret <sv...@ax...> Date: Fri Nov 26 00:07:03 2010 +0200 Normalize the attachment path when using the SOAP API Fixes: #12540: mc_issue_attachment_get does not use the path for the file Signed-off-by: Robert Munteanu <rob...@gm...> ----------------------------------------------------------------------- Summary of changes: api/soap/mc_file_api.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ----------------------------------------------------------------------- commit 6f7d05e5daf9e6fc5342073d5a9c5eebf8adfc1e Author: Stéphane Veyret <sv...@ax...> Date: Fri Nov 26 00:07:03 2010 +0200 Normalize the attachment path when using the SOAP API Fixes: #12540: mc_issue_attachment_get does not use the path for the file Signed-off-by: Robert Munteanu <rob...@gm...> diff --git a/api/soap/mc_file_api.php b/api/soap/mc_file_api.php index b8a4e60..19374ff 100644 --- a/api/soap/mc_file_api.php +++ b/api/soap/mc_file_api.php @@ -175,9 +175,10 @@ function mci_file_get( $p_file_id, $p_type, $p_user_id ) { $t_project_id = $row['project_id']; } else if ( $p_type == 'bug' ) { $t_bug_id = $row['bug_id']; + $t_project_id = bug_get_field( $t_bug_id, 'project_id' ); } - $t_diskfile = $row['diskfile']; + $t_diskfile = file_normalize_attachment_path( $row['diskfile'], $t_project_id ); $t_content = $row['content']; # Check access rights ----------------------------------------------------------------------- -- Mantis Bug Tracker |