Skip to content

Request Body Uses Old Content #3811

@gavinbarron

Description

@gavinbarron

Describe the bug
When changing between GET and PATCH edits performed in the request body are sometimes ignored and not used for the PATCH request

To Reproduce
Steps to reproduce the behavior:
0.

  1. Go to Graph Explorer
  2. Make a request to GET https://graph.microsoft.com/beta/policies/defaultAppManagementPolicy
  3. Change the method to PATCH and add the following body:
{
    "applicationRestrictions": {
        "identifierUris": {
            "nonDefaultUriAddition": {
                "state": "disabled",
                "isStateSetByMicrosoft": false,
                "restrictForAppsCreatedAfterDateTime": "2025-04-25T00:00:00.00Z",
                "excludeAppsReceivingV2Tokens": true,
                "excludeSaml": true,
                "excludeActors": null
            }
        }
    }
}
  1. Submit the request and observe a 204 response
  2. Open the browser developer tools and change to the network tab and filter to XHR requests only (this is just to eliminate some noise
  3. Change the Method to GET and click "Run Query"
  4. Observe your changes have been applied to the defaultAppManagementPolicy
  5. Edit the Request body to change to "state": "enabled",
  6. Change the Method to PATCH and click run query.
  7. In the network tab of the browser inspect the outbound PATCH request that was sent.
  8. You will see that the edit performed before switching the method to PATCH was not used to compose the request.

Expected behavior
The current visual state of the request body pane is used to compose any request with a body at the time the Run Query button is clicked

Screenshots

Image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Edge
  • Version 135.0.3179.66 (Official build) (64-bit)

Additional context
Issue raised internally via IcM video supplied of repro

Metadata

Metadata

Assignees

Labels

priority:p1High priority but not blocking. Causes major but not critical loss of functionality SLA <=7days.type:bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions