Authentification Error on sfTreeGrid with Sfdatamanger and HttpClientInstance
Hi,
i have an issue on sfTreeGrid and sfdatamanger + Authentification : Reponse status code does not indicate sucess:401(Unauthorized)
i have the next TreeGrid,
<SfTreeGrid TValue="Order" @ref="TGrid" IdMapping="TaskId" ParentIdMapping="ParentId" TreeColumnIndex="1" HasChildMapping="isParent">
<SfDataManager Url="http://localhost:32503/odata/Orders" Adaptor="Adaptors.ODataV4Adaptor" CrossDomain="true" HttpClientInstance="ApisService.TracaHttpClientOData">
</SfDataManager>
<TreeGridEvents TValue="Order" OnActionFailure="RcUtils.GridActionFailureHandler"/>
<TreeGridColumns>
<TreeGridColumn Field="@nameof(Order.TaskId)" HeaderText="Task ID" Width="80" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right"></TreeGridColumn>
<TreeGridColumn Field="@nameof(Order.TaskName)" HeaderText="Task Name" Width="160"></TreeGridColumn>
<TreeGridColumn Field="@nameof(Order.Duration)" HeaderText="Duration" Width="100" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right"></TreeGridColumn>
<TreeGridColumn Field="@nameof(Order.Progress)" HeaderText="Progress" Width="100" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right"></TreeGridColumn>
</TreeGridColumns>
</SfTreeGrid>
App have lot of SfGrid with this datamanager configuration. If i replace sfTreeGrid by SfGrid and remove Mapping Properties, it works good and i am wondering if HttpClientInstance is well managed for sfTreegrid ?
Token Authentification is done in ApisService.TracaHttpClientOData but not executed
Thanks
Hi Julien Gambini,
We are able to replicate the issue(request header is not send properly when using HttpClientInstance property) at our end.
Upon further validation, we have considered the reported issue (“Request headers are not sent properly when using the HttpClientInstance property in the OData adapter ”) as a bug. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle) and will include the fix in our upcoming Nuget release which is expected to be rolled out on July 31, 2024. Until then we appreciate your patience.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through the below feedback link,
Feedback link: https://www.syncfusion.com/feedback/59415/request-headers-are-not-sent-properly-when-using-the-httpclientinstance-property
Note: To view the above feedback, kindly login into your account.
Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization
Kindly get back to us for further assistance.
Regards,
Pon selva
Hi Julien Gambini,
Thanks for your patience.
The reported issue occurred
because the HttpClientInstance was not updated while rendering the TreeGrid.
The default HttpClientInstance was updated instead of the custom
HttpClientInstance. We are glad to announce that fix for
the issue
“Request headers are not sent properly when using the
HttpClientInstance property in the OData adapter” has been
rolled out in our weekly Nuget release. So,
upgrade to our latest version(26.2.7) of Syncfusion Nuget to resolve the
reported issue. Find the Nuget for latest fixes and features from below.
Nuget : https://www.nuget.org/packages/Syncfusion.Blazor.TreeGrid
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Header-877312643
Release note: https://blazor.syncfusion.com/documentation/release-notes/26.2.7?type=all#tree-grid
Kindly get back to us for further assistance.
Regards,
Pon selva
- 2 Replies
- 2 Participants
-
JG Julien Gambini
- Jul 4, 2024 09:39 AM UTC
- Aug 1, 2024 02:11 PM UTC