Ends in:
5 DAYS
11 HRS
25 MIN
48 SEC
Ends in:
5 D
11 H
25 M
48 S
Open Closed

When insert data, CreatorId has been null #8241


User avatar
0
portx-dev created

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:

7 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share your entity class code.

    When insert data,

    Is the CurrentUser.Id have a value?

  • User Avatar
    0
    portx-dev created

    @maliming I can't reproduce it either, but the above problem appears in the production environment, so I want to ask if there are any cases where it can occur.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share your entity class code and Insert code.

    Do you have relevant logs?

    Thanks.

  • User Avatar
    0
    portx-dev created

    @maliming aspnet-core\src\PortX.Application\FrequentProjectReplies\FrequentProjectRepliesAppService.Extended.cs CreateMultipleAsync My source code has been sent to you before. https://abp.io/qa/questions/8175/3a160839-3296-90af-327b-b6de10b1db3e

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It seems the CreateMultipleAsync method doesn't need authentication.

    Can you try to add [Authorize] attribute?

  • User Avatar
    0
    portx-dev created

    This is a dummy write to keep it open.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok

Made with ❤️ on ABP v9.1.0-preview. Updated on November 26, 2024, 12:49