Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-479

Properties not getting updated as per 14.2 in RO Spec

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • viewer-restfulobjects-2.0.0
    • Viewer RO
    • None

    Description

      As per 14.2 in RO Spec, making a PUT request to /objects/

      {domainType}

      /

      {instanceId}

      , should update the properties values. I tried several different formats for the body [1], [2], [3], but got the same error in each case [4].

      [1] this - which is valid according to the spec, I think - didn't work:
      {
      "cost" :

      { "value" : 2.75 }

      ,
      "description" :

      { "value" : "An updated description" }

      ,
      "category" :

      { "value" : "Professional" }

      }

      [2] nor did this:
      {
      "members:" {
      "cost" :

      { "memberType": "property", "value" : 2.75 }

      ,
      "description" :

      { "memberType": "property", "value" : "An updated description" }

      ,
      "category" :

      { "memberType": "property", "value" : "Professional" }

      }
      }

      [3] nor did this:
      {
      "cost" :

      { "memberType": "property", "value" : 2.75 }

      ,
      "description" :

      { "memberType": "property", "value" : "An updated description" }

      ,
      "category" :

      { "memberType": "property", "value" : "Professional" }

      }

      [4]Status Code: 400
      Server: Jetty(6.1.26)
      Content-Length: 0
      Warning: 199 RestfulObjects Could not find properties list (no members[memberType=property]); got {"cost":

      {"memberType":"property","value":2.75}

      ,"description":

      {"memberType":"property","value":"An updated description"}

      ,"category":{"memberType":"property","value":"Professional"}}
      Content-Type: application/json

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            danhaywood Daniel Keir Haywood
            bhargavgolla Bhargav Golla
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment