Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-405

PATCH method does not work in HTTPS connections or in HTTP with a body

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.7.1
    • Component/s: jclouds-core
    • Labels:
      None

      Description

      The HttpURLConnection class does not allow to directly set the PATCH request method. To set it, one needs to use reflection and manually set the value of the method field.

      However, in HTTPS connections, the target HttpURLConnection is wrapped in a delegate field, and the reflection workaround does not take effect unless the method is also set in the delegate.

      See:
      https://java.net/jira/browse/JERSEY-639
      https://github.com/jersey/jersey/pull/45

        Attachments

        1. JCLOUDS-405.patch
          5 kB
          Ignasi Barrera

          Issue Links

            Activity

              People

              • Assignee:
                nacx Ignasi Barrera
                Reporter:
                nacx Ignasi Barrera
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: