This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, 6.0 has been updated
via 73f3eeef57228233227c787ba13107514e1f4b2a (commit)
from d3f29adcdc28e1df9822f0d1188ddbc3d975cfb9 (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=73f3eeef57228233227c787ba13107514e1f4b2a
commit 73f3eeef57228233227c787ba13107514e1f4b2a
Author: PKeidel <[email protected]>
Date: Wed Oct 12 16:19:22 2016 +0200
Bugfix for [#833] SOAP Fileupload is broken
Signed-off-by: Franck Villaume <[email protected]>
diff --git a/src/www/soap/tracker/tracker.php b/src/www/soap/tracker/tracker.php
index ce5af7d..93e2493 100644
--- a/src/www/soap/tracker/tracker.php
+++ b/src/www/soap/tracker/tracker.php
@@ -939,7 +939,11 @@ function
addArtifactFile($session_ser,$group_id,$group_artifact_id,$artifact_id,
$bin_data = base64_decode($base64_contents);
$filesize = strlen($bin_data);
- $res =
$af->create($filename,$filetype,$filesize,$bin_data,$description);
+ // Bugfix: Send filename and not the content
+ $tmpfname = tempnam("/tmp", "forgeupload");
+ file_put_contents($tmpfname, $bin_data);
+
+ $res =
$af->create($filename,$filetype,$filesize,$tmpfname,$description);
if (!$res) {
return new soap_fault
('','addArtifactFile',$af->getErrorMessage(),$af->getErrorMessage());
-----------------------------------------------------------------------
Summary of changes:
src/www/soap/tracker/tracker.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits