Open paywuAtMicrosoft opened 5 years ago
I am using Microsoft.AspNetCore.OData 7.0.1.20718
I have a controller, with [ODataRoute("a/{aid}/b/{bid}")] the function is like public async Task GetAsync([FromUri] string aid, [FromUri] string bid)
The aid is a guid in string, the bid is the same guid in string as aid plus some other string.
/a/98008a1a-1b87-452c-a713-65d3f10b1253/b/98008a1a-1b87-452c-a713-65d3f10b1253
In the controller, the this.Request.Path shows the correct url, however, the aid is correct in the function ,but bid is null.
/a/98008a1a-1b87-452c-a713-65d3f10b1253/b/98008a1a-1b87-452c-a713-65d3f10b1253_someotherstring
In the controller, the this.Request.Path shows the correct url. However, the aid is correct in the function, but bid is 98008.
/a/bf5aae9a-d11d-47a8-93b1-782504c90000/b/bf5aae9a-d11d-47a8-93b1-782504c90000_someotherstring
Everything looks good.
Please help to investigate.
I am using Microsoft.AspNetCore.OData 7.0.1.20718
I have a controller, with [ODataRoute("a/{aid}/b/{bid}")] the function is like public async Task GetAsync([FromUri] string aid, [FromUri] string bid)
The aid is a guid in string, the bid is the same guid in string as aid plus some other string.
/a/98008a1a-1b87-452c-a713-65d3f10b1253/b/98008a1a-1b87-452c-a713-65d3f10b1253
In the controller, the this.Request.Path shows the correct url, however, the aid is correct in the function ,but bid is null.
/a/98008a1a-1b87-452c-a713-65d3f10b1253/b/98008a1a-1b87-452c-a713-65d3f10b1253_someotherstring
In the controller, the this.Request.Path shows the correct url. However, the aid is correct in the function, but bid is 98008.
/a/bf5aae9a-d11d-47a8-93b1-782504c90000/b/bf5aae9a-d11d-47a8-93b1-782504c90000_someotherstring
Everything looks good.
Please help to investigate.