EOFException when requesting /plugins/servlet/gadgets/makeRequest to get resource which returns no content - only when GZIP is enabled

XMLWordPrintable

    • 5.01

      Discovered while upgrading plugin to be compatibilie with 5.1.
      When makeRequest (/plugins/servlet/gadgets/makeRequest) is asked to get response from REST action which returns only status code, and gzip feature is enabled in JIRA we get java.io.EOFException.
      Example REST method body:

      return Response.ok().cacheControl(NO_CACHE).build();

      When changed to:

      return Response.ok("ok").cacheControl(NO_CACHE).build();

      then it works fine.

      I suppose that problem is in gadgets - there was dependency version change in JIRA 5.1 to com.atlassian.gadgets.atlassian-gadgets-opensocial-plugin.

      If gzip JIRA feature is disabled then everything works fine too.

      Problem was introduced in JIRA 5.1 - tested with 5.0 and works fine with gzip enabled.

            Assignee:
            Unassigned
            Reporter:
            Aleksander Mierzwicki ☁
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: