the Mantis package links to an outdated nusoap lib that breaks the soap api

Bug #988177 reported by Vincent Vandenschrick
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mantis (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Upgrading to the latest 1.2.10-1 package, it seems it now links to the libnusoap-php which is 0.7.3 version. I suppose that previously, the package used its own nusoap lib that was newer since the timstamp formatting in the Mantis soap API has changed. It now uses an old formatting that (although legal) breaks Mantis soap clients like Mantis Mylyn connector.
Upgrading the libnusoap-php to 0.9.5 using the experimental package solves the problem by reverting back the format to the newest one.
For further details, see https://sourceforge.net/apps/mantisbt/mylyn-mantis/view.php?id=266

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mantis (Ubuntu):
status: New → Confirmed
Revision history for this message
bieli (marcin-bieli) wrote :

I think, libnusoap-php using older ereg/eregi PHP functions and Mantis SOAP API throw unknown SOAP Fault sth. like "Deprecated ereg function". It is reason, why SOAP API don't started.
It is problem for PHP version >= 5.3, when I have PHP <= 5.2 problem don;t exists.

Below I publish lines of libnusoap-php when I changed PHP function ereg/eregi into preg_match:
$ grep "preg_match" -n /usr/share/php/nusoap/nusoap.php
3387: if (! preg_match("'.*$domain$'i", $this->host)) {
3394: if (! preg_match("'^$path.*'i", $this->path)) {
3657: if (preg_match('/wsdl/', $qs) ){
3728: if(preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i',$enc)){
3757: if (preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i', $enc)) {
4217: if(preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i',$enc)){
6453: if (preg_match("/encoding=[\"']([^\"']*)[\"']/", $xml_decl, $res)) {

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.