Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-5313

API URLs need trailing slash for Safari

XMLWordPrintable

      Users are not able to create / delete tag mappings with Safari.

      Tag mapping wizard

      I've confirmed that the PUT request is sending the expected payload. For example:

      {"parent":"ac6df2f0-cb1b-42b5-8623-35a01660cd57","children":["95e06a49-db78-48c9-8db8-9e29cdd3c844"]}

      However, the /api/cost-management/v1/settings/tags/mappings/child/add/ API response returned a "400 Bad Request" with this error

      {
      "errors": [
      {
      "detail": "This field is required.",
      "source": "parent",
      "status": 400
      },
      {
      "detail": "This field is required.",
      "source": "children",
      "status": 400
      }
      ]
      }

      Apparently, API URLs need a trailing slash in order for PUT requests to work properly on Safari.

              dlabrecq@redhat.com Daniel Labrecque
              dlabrecq@redhat.com Daniel Labrecque
              Daniel Chorvatovic Daniel Chorvatovic
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: