After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 168322 - url plugin mishandles HTTP 302 responses
url plugin mishandles HTTP 302 responses
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-02-23 23:31 UTC by Laurent Martelli
Modified: 2008-01-15 12:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Laurent Martelli 2005-02-23 23:31:00 UTC
It I try to open an image usnig the Gimp (right-click ,open image with) whose
URL contains several parameters (http://host/script.php?p1=foo&p2=bar), I get an
error saying it could not open "http://host/script.php?p1=foo".

You can try with http://www.bearteam.org/photos/photos?PictureID=4652 since a
cookie parameter is added.
Comment 1 Crispin Flowerday (not receiving bugmail) 2005-02-23 23:52:30 UTC
This works fine for me; what version of gimp are you using, and how is the error
reported (e.g. does galeon of gimp report the error, and is it in a dialog) ?
Comment 2 Laurent Martelli 2005-02-24 00:40:00 UTC
It is in fact a Gimp error message.
Comment 3 Crispin Flowerday (not receiving bugmail) 2005-02-24 09:24:44 UTC
What version of gimp are you using ?
Comment 4 Laurent Martelli 2005-02-24 15:32:11 UTC
I'm using Gimp 2.2.3. If I run this command from an xterm 

    gimp 'http://stan/~laurent/tof/thumb.php?PictureID=2461'

I get a dialog with the following messages:

Message URL

A network error occured: Location:
http://stan/~laurent/tof/thumb.php?PictureID=2461&slooze=5c9d792f1383a8390d2de3f8940990de
[following]

Message GIMP

Opening 'http://stan/~laurent/tof/thumb.php?PictureID=2461' failed: Plug-In
could not open image
Comment 5 Crispin Flowerday (not receiving bugmail) 2005-02-24 16:06:03 UTC
lets see if the gimp authors know what is happening here, AFAICT galeon just
passes the url to gimp, and gimp is failing somewhere, although, it does work
for me.
Comment 6 Manish Singh 2005-02-24 16:17:31 UTC
We're not parsing out wget's messages for HTTP 302 responses.
Comment 7 Manish Singh 2005-02-24 17:16:46 UTC
Fixed for gimp-2-2:

2005-02-23  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/url.c: Handle HTTP 302 Redirect output from wget
        properly. Also give a little more informative display for unspecified
        sizes. Fixes bug #168322.
Comment 8 Manish Singh 2005-02-24 17:19:32 UTC
And fixed for HEAD:

2005-02-24  Manish Singh  <yosh@gimp.org>

        * plug-ins/uri/uri-backend-wget.c: Handle HTTP 302 Redirect output
        from wget properly. Also give a little more informative display for
        unspecified sizes. Fixes bug #168322.