[JIRA] Created: (HUDSON-8028) Plugin update installer downloads "302 redirect" response as the .hpi file, then reports success.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Created: (HUDSON-8028) Plugin update installer downloads "302 redirect" response as the .hpi file, then reports success.

Hudson issues mailing list
Plugin update installer downloads "302 redirect" response as the .hpi file, then reports success.
-------------------------------------------------------------------------------------------------

                 Key: HUDSON-8028
                 URL: http://issues.hudson-ci.org/browse/HUDSON-8028
             Project: Hudson
          Issue Type: Bug
          Components: core
         Environment: Hudson ver. 1.377
Sun GlassFish Enterprise Server v2.1.1 ((v2.1 Patch06)(9.1_02 Patch12)) (build b31g-fcs)
SunOS 5.10 Generic_120012-14 i86pc i386 i86pc Solaris



            Reporter: edrandall
         Attachments: LavaLampNotifier.hpi, plugin-update-success.png

The Plugin update installer should follow 302 redirects, not download them.

Attempting to update a plugin via the "Update Center" on the web console appears to succeed, but actually always downloads a "302 redirect" file.  Subsequent Hudson re-start then results in plugin failure. (And Hudson offers to discard the configuration)

eg. attempting to update "LavaLampNotifier", the LavaLampNotifier.hpi downloaded is as attached.
Note this happens when we try to update *any* plugin - it is not restricted just to lavaLampNotifier.  Can fetch the plugins fine using "wget" :-

$ wget http://updates.hudson-labs.org/download/plugins/LavaLampNotifier/1.2/LavaLampNotifier.hpi
--11:01:20--  http://updates.hudson-labs.org/download/plugins/LavaLampNotifier/1.2/LavaLampNotifier.hpi
           => `LavaLampNotifier.hpi.2'
Resolving updates.hudson-labs.org... 173.203.118.45
Connecting to updates.hudson-labs.org|173.203.118.45|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://download.hudson-labs.org/plugins/LavaLampNotifier/1.2/LavaLampNotifier.hpi [following]
--11:01:24--  http://download.hudson-labs.org/plugins/LavaLampNotifier/1.2/LavaLampNotifier.hpi
           => `LavaLampNotifier.hpi.2'
Resolving download.hudson-labs.org... 192.18.49.134
Connecting to download.hudson-labs.org|192.18.49.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25,455 (25K) [text/plain]

100%[============================================================================================================>] 25,455         2.17K/s    ETA 00:00

11:02:04 (983.61 B/s) - `LavaLampNotifier.hpi.2' saved [25455/25455]




--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]