Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3180

LRARecord http compliance: Entity null for PUT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 5.10.0.Final
    • 5.9.7.Final
    • LRA
    • None

      LRARecord has...
      case "javax.ws.rs.PUT":
      return asyncInvoker.put(Entity.text(null));
      whereas entity should never be null for PUT
      I see this comment has been there since the code was first added and so perhaps this is the desired...
      // return asyncInvoker.put(Entity.entity(compensatorData, mediaType));
      If not perhaps simply Entity.text("") should suffice (and has in my tests).

              rhn-engineering-mmusgrov Michael Musgrove
              paul.parkinson Paul Parkinson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: