Home My Page Projects FusionForge
Summary Activity Forums Tracker Lists News SCM Files Mediawiki Hudson/Jenkins

[#699] replace Snoopy with php5-curl

2014-06-30 10:38
Submitted by:
Peter Katzmann (pk16208)
Assigned to:
Sylvain Beucler (beuc-inria)
Target Release:
Found in Version:
replace Snoopy with php5-curl

Detailed description
When i try to use the scmhook with cvs or git the hooks dont work because the Snoopy class is missing:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
exim: bad -f address "svnlook: warning: cannot set LC_CTYPE locale@users.gforge.edag.de";: missing or malformed local part (expected word or "<")
/usr/share/gforge/plugins/scmhook/library/scmsvn/hooks/commitemail/commit-email.pl: error in closing `/usr/sbin/sendmail -f'svnlook: warning: cannot set LC_CTYPE locale@users.gforge.edag.de' obelisk-commits@lists.gforge.edag.de' for writing:
PHP Warning: require(/usr/share/gforge/plugins/scmhook/library/scmsvn/hooks/committracker/Snoopy.class.php): failed to open stream: No such file or directory in /usr/share/gforge/plugins/scmhook/library/scmsvn/hooks/committracker/post.php on line 35
PHP Fatal error: require(): Failed opening required '/usr/share/gforge/plugins/scmhook/library/scmsvn/hooks/committracker/Snoopy.class.php' (include_path='/usr/share/php-htmlpurifier/library:.:/usr/share/php:/usr/share/pear') in /usr/share/gforge/plugins/scmhook/library/scmsvn/hooks/committracker/post.php on line 35
Message  ↓
Date: 2014-10-24 12:42
Sender: Sylvain Beucler

Done in 8d4b79feb0af7f66668a6aa575a5d0801083a65d :)

Date: 2014-06-30 13:19
Sender: Sylvain Beucler

I pushed a fix to link Snoopy.class.php from /usr/share/php/libphp-snoopy/ .

However I agree that replacing with libcurl would easier to deploy.
Possibly for next version.

Date: 2014-06-30 12:43
Sender: Peter Katzmann

We have to rework this old snoopy library, because it doesn't work in any way we tried it.
So we replaced snoopy.submit with:

//$snoopy->submit($SubmitUrl, $vars);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $SubmitUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);
$result = curl_exec($ch);
$info = curl_getinfo($ch);

and the scmhook is working as advertised....

Field Old Value Date By
status_idOpen2014-10-24 12:42beuc-inria
close_dateNone2014-10-24 12:42beuc-inria
assigned_tonone2014-10-24 12:42beuc-inria
summaryscmhook: Snoopy.class.php Missing in debian install2014-06-30 13:19beuc-inria
Target ReleaseNone2014-06-30 13:19beuc-inria