Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8028

Plugin update installer downloads "302 redirect" response as the .hpi file, then reports success.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • core
    • None
    • 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


      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]

            Unassigned Unassigned
            edrandall Ed Randall
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: