Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-900

Allow Query responses for HTTP methods other than GET

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.2
    • web
    • None

    Description

      Currently, org.apache.pivot.web.Query.execute(org.apache.pivot.web.Query.Method, Object) is hard-coded to only deserialize an object from the response body if the method used is GET. However, there are situations where other methods such as POST are used and the server will still return a response instead of a redirect (such as non-RESTful web services or workarounds for large query strings).

      This issue is complicated because the method directly accesses several private-scoped variables (such as status, bytesSent, bytesReceived, and bytesExpected), which makes it difficult to override this method.

      Attachments

        1. GetQuery.patch
          0.7 kB
          Steven Swor
        2. PostQueryWithResult.java
          3 kB
          Steven Swor
        3. Query.patch
          1 kB
          Steven Swor

        Activity

          No work has yet been logged on this issue.

          People

            rwhitcomb Roger Lee Whitcomb
            sworisbreathing Steven Swor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: