Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-687

postTarget() should make sure entity exists

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0-beta-1, 2.3.3.Final
    • 2.3.2.Final
    • None
    • None

    Description

      public <T> T postTarget(Class<T> returnType) throws Exception

      { BaseClientResponse<T> response = (BaseClientResponse<T>) post(returnType); return response.getEntity(); }

      postTarget should check if response is 200 before returning an entity. if it is 204 then return null.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            patriot1burke@gmail.com Bill Burke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: