- ABP Framework version: v5.2.0
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace: AbpAuditLogs
- Steps to reproduce the issue:" Can we add Ipv4 address into ClientIpAddress field of AuditLog table and Normalize Auditlogs table as it has both TenantId and TenantName fields?
5 Answer(s)
-
0
hi
You can override the
GetClientIpAddressmethod to use IPV6 address.https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/WebClientInfo/HttpContextWebClientInfoProvider.cs#L30
Normalize Auditlogs table as it has both TenantId and TenantName fields?
What do you mean? Can you explain?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
You can override the
GetClientIpAddressmethod to use IPV6 address.https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/WebClientInfo/HttpContextWebClientInfoProvider.cs#L30
Normalize Auditlogs table as it has both TenantId and TenantName fields?
What do you mean? Can you explain?
Can't we get tenantName from tenantid as it has foreign key relation, Do we required to add tenantname?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
The** tenant id** may be changed by code, so the caller is responsible for passing the tenant name.
using(currentTenant.Change(tenantId)) { }Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
The** tenant id** may be changed by code, so the caller is responsible for passing the tenant name.
using(currentTenant.Change(tenantId)) { }Okay Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
