Open Closed

Issues with CMSKit Implementation when trying to add a blog entry: "There is no entity CmsUser with id" #8130


User avatar
0
henrry.arujo created
  • ABP Framework version: v8.2.1
  • UI type: MVC
  • Project Type: Abp Microservice (Commercial License)
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
2024-10-17 22:41:34.482 +00:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "There is no entity CmsUser with id = 3a1532ee-ae7b-c16e-b50e-b2f6f5307663!",
  "details": null,
  "data": null,
  "validationErrors": null
}

2024-10-17 22:41:34.483 +00:00 [ERR] There is no such an entity. Entity type: Volo.CmsKit.Users.CmsUser, id: 3a1532ee-ae7b-c16e-b50e-b2f6f5307663
Volo.Abp.Domain.Entities.EntityNotFoundException: There is no such an entity. Entity type: Volo.CmsKit.Users.CmsUser, id: 3a1532ee-ae7b-c16e-b50e-b2f6f5307663
   at Volo.Abp.Users.UserLookupServiceExtensions.GetByIdAsync[TUser](IUserLookupService`1 userLookupService, Guid id, CancellationToken cancellationToken)
   at Volo.CmsKit.Admin.Blogs.BlogPostAdminAppService.CreateAsync(CreateBlogPostDto input)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)

Steps to reproduce the issue: Create a blogspot utilising the abp cmskit .

I have added the package in my microservice cms, The id is of CurrentUser. My current tenant has a few users in it, but no records in the CmsUser table. I have enabled all Globalfeature for cmskitPro in preconfigure service.

To create a blogpost, the AuthorId is required, but my CmsUser table is empty even though my Identity User table has data in it. The abp doc below says “When a new identity user is created, a new record will be added to this table.” but I am not seeing any data that is populated in the CmsUser table. What is the mechanism abp uses to populate the cmsUser table when identity user is created? Is there any configuration I have to add to enable data population into the CmsUser?

https://abp.io/docs/latest/modules/database-tables#cmsusers


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

    hi

    How can I reproduce your problem in a new microservice template?

    Can you share the steps?

    Thanks.

  • User Avatar
    0
    henrry.arujo created

    As specified above:

    Create a blogspot utilising the abp cmskit .
    
    I have added the package in my microservice cms,
    The id is of CurrentUser.
    My current tenant has a few users in it, but no records in the CmsUser table.
    I have enabled all Globalfeature for cmskitPro in preconfigure service.
    
    To create a blogpost, the AuthorId is required, but my CmsUser table is empty even though my Identity User table has data in it. The abp doc below says “When a new identity user is created, a new record will be added to this table.” but I am not seeing any data that is populated in the CmsUser table.
    What is the mechanism abp uses to populate the cmsUser table when identity user is created?
    Is there any configuration I have to add to enable data population into the CmsUser?```
    
Made with ❤️ on ABP v9.1.0-preview. Updated on October 22, 2024, 09:35