Spartacus - error in url to netmirror ?

Found a bug? Tell us!!
Post Reply
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Spartacus - error in url to netmirror ?

Post by JWalker »

Serendipity 0.9 release 28.10.2005
Windows XP SP2, Apache 2.0.54/PHP 5.0.2/MySQL 4.1.14/Firefox 1.0.5

Here is what I get from Spartacus plugin when it tries to connect to netmirror.org:
Trying to open URL package_event_bg.xml...
The URL http://netmirror.org/mirror/serendipity//package_event_bg.xml could not be opened. Maybe the Serendipity or SourceForge.net Server is down - we are sorry, you need to try again later.
.
The double forward slashes are a problem. I tried then http://netmirror.org/mirror/serendipity/package_event_bg manualy and it opens in the browser.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Spartacus - error in url to netmirror ?

Post by garvinhicking »

No, the double forward slashes cause no problem. It is the same if you type "///////////////////////////////////////" or only "/".

Thus the error must come from your server that is denying access?!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Some debugging...

Post by JWalker »

Yes, the count of "/" does not matter realy...
In FireFox, I can view package_event_bg.xml (it comes to my browser).
Some debugging with debug print:

serendipity_event_spartacus.php, line 271

Code: Select all

            require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
            $req = &new HTTP_Request($url);
            echo 'Spartacus req = ' . $req . '<br> $url = ' . $url . '<br>';
            if (PEAR::isError($req->sendRequest()) || $req->getResponseCode() != '200') {
                printf('responce code = %d<br>',$req->getResponseCode());
                printf(PLUGIN_EVENT_SPARTACUS_FETCHERROR, $url);
                ......
Here is the output:

Code: Select all

Trying to open URL package_sidebar_bg.xml...
Spartacus req = Object id #43
$url = http://netmirror.org/mirror/serendipity//package_sidebar_bg.xml
responce code = 0
The URL http://netmirror.org/mirror/serendipity//package_sidebar_bg.xml could not be opened. Maybe the Serendipity or SourceForge.net Server is down - we are sorry, you need to try again later.
What I noted is that the responce code is 0.
P.S. The Spartacus version installed is 2.4.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Some debugging...

Post by garvinhicking »

Were you able to ever download a plugin using the server you are testing with? A response code of 0 is when PEAR is not able to utilize any networking functions on the server at all (firewall, disablet socket functions, ...)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Firewall

Post by JWalker »

No, I did not ever download a plugin (I use s9y for about 3 months). Now I know, the issue is firewall related. As I know, our firewall (and sysadmin :() is very restrictive. I'll try in another network.

Thanks for the answer, anyway,
Regards
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
Post Reply