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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.2
    • 1.7.1
    • jclouds-core
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: