Starts in:
0 DAY
18 HRS
31 MIN
2 SEC
Starts in:
0 D
18 H
31 M
2 S

Activities of "portx-dev"

Continue question https://abp.io/support/questions/8241/When-insert-data-CreatorId-has-been-null

Is there any case where the user information is still available on the client but not on the server? In my environment, there is a CreatorName field that receives the value sent from the client. Even though CreatorName is not null, CreatorId is null.

  • ABP Framework version: v8.3.3
  • UI Type: Angular
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
  • ABP Framework version: v8.3.3
  • UI Type: Angular
  • Database System: EF Core (My SQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
    • 1. Set Access Token Lifetime:
      • Configure the AccessTokenLifetime in your ABP (ASP.NET Core) back-end application to a short duration, such as 2 minutes. This can typically be done in the configuration settings or startup configuration for your authentication options.
    • 2. Open Multiple Tabs:
      • Launch your Angular application and open it in multiple browser tabs.
      • Ensure that all tabs are authenticated using the same session (i.e., logged in with the same user account)
    • 3. Wait for Token Expiry:
      • Wait for the access token to expire after the 2-minute lifetime.
      • Once the token expires, a Refresh Token process should be initiated in one or more tabs to acquire a new access token.
    • 4. Observe the Behavior:
      • Notice that when the refresh token request completes, all the open tabs are reloaded, which might disrupt the user experience.
    • This behavior can be unexpected, and understanding why all tabs reload when one tab initiates the refresh process is critical. This could be related to how the token management or session synchronization is handled across tabs in the ABP framework.
    • After the reload, observe that some screens are redirected to a 403 (Forbidden) page. This may indicate that certain state or authorization checks failed after the token refresh, leading to restricted access on those screens

Sometimes log error status 0 appears. From the log below, can you help me determine the cause?

ERROR {
  "headers": {
    "normalizedNames": "[Map]",
    "lazyUpdate": null,
    "headers": "[Map]"
  },
  "status": 0,
  "statusText": "Unknown Error",
  "url": [URL],
  "ok": false,
  "name": "HttpErrorResponse",
  "message": "Http failure response for [URL]: 0 Unknown Error",
  "error": {
    "isTrusted": true
  • ABP Framework version: v8.3.2
  • UI Type: Angular
  • Database System: MySQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
Question

I updated my project from 8.2.3 to 8.3.2. Every 20 to 30 minutes it gets redirected to screen 403. There are quite a few logs as below.

/connect/token""" - 400 null "application/json;charset=UTF-8" 34.4556ms /connect/token""" - 409 null "text/html; charset=utf-8" 1089.4563ms

  • ABP Framework version: v8.3.2
  • UI Type: Angular
  • Database System: MySQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Data in my database has case CreatorId is null. When did this problem occur, and is there any way to reproduce it?

  • ABP Framework version: v8.3.2
  • UI Type: Angular
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I need your assistance with two problems I'm having with the api [/api/abp/application-configuration] and [/api/abp/application-localization].

1.The API are being executed multiple times As of right now, the API is called four times when I log in to the tenant, even though I understand that it is only called twice with the types fetch and xhr. When I log in to the host, the aforementioned phenomenon does not happen.

2.Can I alter the aforementioned API to increase speed?

I look forward to hearing from you shortly. I appreciate your assistance.

  • ABP Framework version: v8.3.2
  • UI Type: Angular

I updated my project from 8.2.3 to 8.3.2, when creating a new entity from suite, angular ui is not generated. This is the log of the suite

2024-11-05 02:24:20.673 +07:00 [INF] 10/11 - AngularUiGenerateWithSchematicsCommand started...
2024-11-05 02:24:20.674 +07:00 [INF] Running the Angular Schematics command:
node run-schematics.mjs "D:/PortX/portx_abp/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" app-pro PortX "D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json" "D:/PortX/portx_abp/angular" 
2024-11-05 02:24:25.251 +07:00 [INF] Angular Schematics command failed.
D:\PortX\portx_abp\angular\.suite\schematics\node_modules\execa\lib\error.js:60
		error = new Error(message);
		        ^

Error: Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-pro --target PortX --source D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json
',' expected. (23:30)
  21 |   
  22 |
> 23 |   createWithOcr = (input: any<string, StringValues>, config?: Partial<Rest.Config>) =>
     |                              ^
  24 |     this.restService.request<any, BillFileProcessDto>({
  25 |       method: 'POST',
  26 |       url: '/api/app/bill-file-processes/create-with-ocr',
    at makeError (D:\PortX\portx_abp\angular\.suite\schematics\node_modules\execa\lib\error.js:60:11)
    at handlePromise (D:\PortX\portx_abp\angular\.suite\schematics\node_modules\execa\index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async file:///D:/PortX/portx_abp/angular/.suite/schematics/run-schematics.mjs:6:20 {
  shortMessage: 'Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-pro --target PortX --source D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json',
  command: '.suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-pro --target PortX --source D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json',
  escapedCommand: '".suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" --template app-pro --target PortX --source "D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json"',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: "\x1B[1m\x1B[31m',' expected. (23:30)\n" +
    '\x1B[0m \x1B[90m 21 |\x1B[31m   \n' +
    ' \x1B[90m 22 |\x1B[31m\n' +
    '\x1B[31m\x1B[1m>\x1B[22m\x1B[1m\x1B[31m\x1B[90m 23 |\x1B[31m   createWithOcr \x1B[33m=\x1B[31m (input\x1B[33m:\x1B[31m any\x1B[33m<\x1B[31m\x1B[33mstring\x1B[31m\x1B[33m,\x1B[31m \x1B[33mStringValues\x1B[31m\x1B[33m>\x1B[31m\x1B[33m,\x1B[31m config\x1B[33m?\x1B[31m\x1B[33m:\x1B[31m \x1B[33mPartial\x1B[31m\x1B[33m<\x1B[31m\x1B[33mRest\x1B[31m\x1B[33m.\x1B[31m\x1B[33mConfig\x1B[31m\x1B[33m>\x1B[31m) \x1B[33m=>\x1B[31m\n' +
    ' \x1B[90m    |\x1B[31m                              \x1B[31m\x1B[1m^\x1B[22m\x1B[1m\x1B[31m\n' +
    ' \x1B[90m 24 |\x1B[31m     \x1B[36mthis\x1B[31m\x1B[33m.\x1B[31mrestService\x1B[33m.\x1B[31mrequest\x1B[33m<\x1B[31m\x1B[33many\x1B[31m\x1B[33m,\x1B[31m \x1B[33mBillFileProcessDto\x1B[31m\x1B[33m>\x1B[31m({\n' +
    " \x1B[90m 25 |\x1B[31m       method\x1B[33m:\x1B[31m \x1B[32m'POST'\x1B[31m\x1B[33m,\x1B[31m\n" +
    " \x1B[90m 26 |\x1B[31m       url\x1B[33m:\x1B[31m \x1B[32m'/api/app/bill-file-processes/create-with-ocr'\x1B[31m\x1B[33m,\x1B[31m\x1B[0m\x1B[39m\x1B[22m",
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

Node.js v22.11.0
Question
  • ABP Framework version: v8.3.2
  • UI Type: Angular
  • Database System: EF Core (MySQL.)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

In 8.3.2, there are 2 issues compared to 8.2.3

  • In Sass > Tenants: "Login with this tenant" menu is not displayed
  • In Settings > Feature management, child feature is displayed on the same level as parent feature

v8.2.3

v8.3.2

v8.2.3

v8.3.2

① You are logged in and have two tabs open in your browser. ② If you log out of tab 1, you will also be logged out of tab 2. ③ If you enter the correct user and password in tab 1 and log in, you will be able to log in. ④ If you enter the correct user and password in tab 2, you will get a 400 error.

I tried setting AutoValidate = false but it still doesn't solve this problem. https://abp.io/docs/latest/framework/infrastructure/csrf-anti-forgery I checked the error log but there was no error.

  • ABP Framework version: v8.3.2
  • UI Type: Angular
  • Database System: EF Core MySQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

① You are logged in and have two tabs open in your browser. ② If you log out of tab 1, you will also be logged out of tab 2. ③ If you enter the correct user and password in tab 1 and log in, you will be able to log in. ④ If you enter the correct user and password in tab 2, you will get a 400 error.

I tried setting AutoValidate = false but it still doesn't solve this problem. https://abp.io/docs/latest/framework/infrastructure/csrf-anti-forgery

  • ABP Framework version: v8.2.2
  • UI Type: Angular
  • Database System: EF Core MySQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
Showing 1 to 10 of 33 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06