hi
Have you tried this?
public virtual async Task<PagedResultDto<CityWithNavigationPropertiesDto>> GetListAsync(GetCitiesInput input)
{
var totalCount = await _cityRepository.GetCountAsync(input.FilterText, input.Name, input.IsActive, input.CountryId);
var items = await _cityRepository.GetListWithNavigationPropertiesAsync(input.FilterText, input.Name, input.IsActive, input.CountryId, input.Sorting, input.MaxResultCount, input.SkipCount);
var dto = ObjectMapper.Map<List<CityWithNavigationProperties>, List<CityWithNavigationPropertiesDto>>(items);
var tmp = dto.FirstOrDefault();
tmp.City.Name = "newValue";
return new PagedResultDto<CityWithNavigationPropertiesDto>
{
TotalCount = totalCount,
Items = dto
};
}
Of course if you don't want to change the entities, You can inject the Read-Only Repositories
see https://github.com/abpframework/abp/pull/17421
ok.
If I understand correctly, your angular has got an access_token
http://localhost:4200/oidcredirect#access_token=eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIiw
access token to call your website's API to verify that it is correct.
For example:GET /api/account/my-profile
Authorization: Bearer <your token>
/api/abp/application-configuration request headershi
You can check these links. https://abp.io/support/questions/2042/ABP-Background-Job-retry https://github.com/abpframework/abp/issues/10583
hi
Can you use the website URL in your health check code?
https://abp.io/support/questions/3327/Health-Check-Problem-on-IIS-SystemUriFormatException-Invalid-URI-The-hostname-could-not-be-parsed#answer-51baf847-087a-2aa1-1d76-3a04d9420894
hi
Can you check the HTML of the select element?
I think the #selectedVendor .form-control selector is wrong
hi
I have checked the logs.
The 400 error is about Antiforgery token validation
[15:02:46 INF] Antiforgery token validation failed. The required antiforgery header value "RequestVerificationToken" is not present.
Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The required antiforgery header value "RequestVerificationToken" is not present.
at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.ValidateRequestAsync(HttpContext httpContext)
at Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.ValidateAntiforgeryTokenAuthorizationFilter.OnAuthorizationAsync(AuthorizationFilterContext context)
[15:02:46 INF] Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.AutoValidateAntiforgeryTokenAuthorizationFilter'.
[15:02:46 INF] Executing StatusCodeResult, setting HTTP status code 400
Can you share a demo project?
I will try to reproduce and check it
Thanks.
hi
The logs show [15:09:09 WRN] There is an entry which is not saved due to concurrency exception: ShortText {Id: 3a15ef81-2e5b-e3fc-31f7-b617df4b5c62} Modified
Can you share a demo project?
I will try to reproduce and check it
Thanks.
hi
Please try to map your entities to CityWithNavigationProperties then change the value in CityWithNavigationProperties.
ObjectMapper.Map<List<CityWithNavigationProperties>, List<CityWithNavigationPropertiesDto>>(items)
By the way, we renewed our license but our ticket count did not renew to 30.
Please send an email to info@abp.io
hi
We are not removing Identity Server packages and we will continue to release new versions of IdentityServer-related NuGet/NPM packages. That means you won't have an issue while upgrading to v6.0 when the stable version releases. We will continue to fix bugs in our packages for a while. ABP 7.0 will be based on .NET 7. If Identity Server continues to work with .NET 7, we will also continue to ship NuGet packages for our IDS integration.
On the other hand, Identity Server ends support for the open-source Identity Server at the end of 2022. The Identity Server team has decided to move to Duende IDS and ABP will not be migrated to the commercial Duende IDS. You can see the Duende Identity Server announcement from this link.
We recommend you start using the OpenIddict to replace the Identity Server.
https://abp.io/docs/latest/release-info/migration-guides/openiddict-step-by-step