Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1911

@PUT method should return a HTTP 409 for ID mismatch

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.13.0.Final
    • 2.6.0.Final
    • Java EE
    • None

      The @Path value for @PUT method should match the supplied Id field (not necessarily named id, but whatever is the named of the primary key) in the supplied HTTP request body.

      A mismatch here would indicate an attempt was made to update the Id, which is incorrect as per the JPA spec. A HTTP 409 (conflict) is a valid response code in such a case.

              rhn-support-ggastald George Gastaldi
              vineet.reynolds_jira Vineet Reynolds (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: