[#699] 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), LCALL = (unset), LANG = "enUS.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 LCCTYPE locale@users.gforge.edag.de&quot;: 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 LCCTYPE 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

General Information
Submitted by:
Peter Katzmann
Date Submitted: 2014-06-30 10:38
Last Modified by: Nobody
Last Modified: 2017-11-02 20:00
Date Closed: 2014-10-24 12:42
Permalink: https://fusionforge.org/tracker/a_follow.php/699
Votes: 0/1 (0%)
Internal Fields
Data Type: Bugs
Assigned to: Sylvain Beucler (beuc-inria)
State: Closed
Priority: 3
Extra Fields
Target Release:
Found in Version:
Follow-up tabs
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 = curlinit(); curlsetopt($ch, CURLOPTURL, $SubmitUrl); curlsetopt($ch, CURLOPTRETURNTRANSFER, 1); curlsetopt($ch, CURLOPTPOST, true); curlsetopt($ch, CURLOPTPOSTFIELDS, $vars); $result = curlexec($ch); $info = curlgetinfo($ch); curlclose($ch);

and the scmhook is working as advertised....

No attached documents

No related commits.

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

No relations found.