Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-463

Wrong Error message when we use PUT instead of POST to create the relationship

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Beijing Release
    • Labels:
      None
    • Sprint:
      A&AI Sprint 7

      Description

      Create the following relationship using put instead of post

       https://<host>:9520/services/inventory/relationships/v11/runsOnPserver 

      {

      "source":"services/inventory/<rest-of-url>",
      "target":"services/inventory/<rest-of-url>",
      "properties":{
                
          <properties>
      }

      We get the error message 

      java.io.FileNotFoundException

      instead we should get the error saying the method is not allowed.

        • We only use put for update the relationship **

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              jimmydot James Forsyth
              Reporter:
              davesh Shwetank Dave
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: