You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using an instance of the generated container (public partial class Container : global::Microsoft.OData.Client.DataServiceContext) to delete a an object on the odata service.
I retrieved the object then called DeleteObject().
On SaveChanges() I was getting an error that the api call was HTTP in an HTTPS environment (from a blazor app).
On examination, container creation was handed a URI object created from a base uri that read "https:/...".
When we capture the BuildingRequest event, it is clear that the base uri has changed to "http:/...".
A short term solution was to change RequestUri (part of the event arguments) back to the "https:/..." form.
We were curious if there was a reason the URI was being changed?
Version of the Project affected
MicrosoftOData.Core v7.12.0
Microsoft Visual Studio Professional 2022 (64-bit)
Version 17.0.4
To Reproduce
Steps to reproduce the behavior:
In Blazor App, create odata client by referencing odata service
Create instance of odata container from instance of IODataClientFactory using uri created from https:... path.
Use odata container to retrieve record from service
Use same container to remove record with call to RemoveObject()
Call on SaveChanges()
Call will be executed with http path instead of requested https path.
Expected behavior
We did not expect the call to change the http to an https.
Actual behavior
Call did change address from https to http (we made it work by changing it back in the BuildRequest event.
Screenshots
Not really applicable
Additional context
None
The text was updated successfully, but these errors were encountered:
Describe the bug
Using an instance of the generated container (public partial class Container : global::Microsoft.OData.Client.DataServiceContext) to delete a an object on the odata service.
I retrieved the object then called DeleteObject().
On SaveChanges() I was getting an error that the api call was HTTP in an HTTPS environment (from a blazor app).
On examination, container creation was handed a URI object created from a base uri that read "https:/...".
When we capture the BuildingRequest event, it is clear that the base uri has changed to "http:/...".
A short term solution was to change RequestUri (part of the event arguments) back to the "https:/..." form.
We were curious if there was a reason the URI was being changed?
Version of the Project affected
MicrosoftOData.Core v7.12.0
Microsoft Visual Studio Professional 2022 (64-bit)
Version 17.0.4
To Reproduce
Steps to reproduce the behavior:
Call will be executed with http path instead of requested https path.
Expected behavior
We did not expect the call to change the http to an https.
Actual behavior
Call did change address from https to http (we made it work by changing it back in the BuildRequest event.
Screenshots
Not really applicable
Additional context
None
The text was updated successfully, but these errors were encountered: