Starts in:
3 DAYS
1 HR
49 MIN
26 SEC
Starts in:
3 D
1 H
49 M
26 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 20, 2024, 13:06