Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17240

downloadruntimes verifying credentials should not follow redirects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.Beta2
    • 4.2.0.Beta1
    • runtime-detection
    • None

      This is a weird bug, but I need a jira, so here goes.

      First, this bug is not actually replicatable in jbosstools. IT is only replicatable in fuseide. When validating credentials in downloadruntime, we setFollowRedirects to true, when it should be false.

      Magically, though, eap still functions properly (no idea why) while the url to download a fuse runtime fails with status 200 (as it should)

      Status 200 means 'ok' and status 302 means 'temporarily moved'. The 200 is coming because it is following the 302 redirect to the next url, and getting a 200 status.

      However, why EAP gets the 302 status directly, while the fuse url follows the redirect, i have no idea. It would seem to me that the eap should also follow the 302 redirect and return a 200 status, but it doesn't.

      Either way, the fix is to set follow redirect to false. Then works for all runtimes.

      Please test that eap6.x downloads properly after this is marked as resolved.

            rob.stryker Rob Stryker (Inactive)
            rob.stryker Rob Stryker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: