Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-3959

Accept HTTP Code 308 in WindupRulesLinksTest

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • False
    • None
    • False
    • Hide
      * *Why we missed the bug?*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+


       * *What is required:*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+
      Show
      * *Why we missed the bug?*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+  * *What is required:*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+
    • ---
    • ---

      Today the WindupRulesLinksTest accepts a few HTTP codes:

       

      private static final List<Integer> ACCEPTED_RESPONSE_CODE = Arrays.asList(
      HttpURLConnection.HTTP_OK,         // 200
      HttpURLConnection.HTTP_MOVED_PERM, // 301
      HttpURLConnection.HTTP_MOVED_TEMP  // 302
      );

       

      But some URLs also return 308 Permanent Redirect making the tests fail:

       

      Shouldn't 308 be added to the list of accepted codes?

            Unassigned Unassigned
            agoncal Antonio Goncalves (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: