Starts in:
2 DAYS
7 HRS
31 MIN
46 SEC
Starts in:
2 D
7 H
31 M
46 S
Open Closed

Custom Email Templates are Getting Deleted #6091


User avatar
0
viswajwalith created

ABP Framework version: v5.1.3 UI Type: MVC Database System: SQL Server / MongoDB Tiered (for MVC) or Auth Server Separated (for Angular): yes Exception message and full stack trace: Steps to reproduce the issue:

We are defining the Custom Email Templates but at some times (after deployment but not 100% sure on this) we have observed that custom templates are getting deleted without any action from the user. Not all the times it is getting replicated.

We checked the application log but no trace of any API calles to set to default "/api/text-template-management/template-contents/restore-to-default"

Any idea on possible root cause? Is there anything related to Migrator or Template Files stored under "EmailTemplates" administartion service host?


4 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello viswajwalith,

    Could you please share some more steps to reproduce the issue?

  • User Avatar
    0
    viswajwalith created

    Hello viswajwalith,

    Could you please share some more steps to reproduce the issue?

    Hi Anjali,

    We dont have any specific steps to reproduce, but this happening in our hosted environment. After some deployments we observed that delete flag for some records in AbpTextTemplateContents is setting up to 1, so supecting something with migrator. We are sure no user updated this but this is happening automatically. any idea what are the possible scenerios/steps which updateds this flags?

  • User Avatar
    0
    viswajwalith created

    Hello viswajwalith,

    Could you please share some more steps to reproduce the issue?

    Hi Anjali,

    We dont have any specific steps to reproduce, but this happening in our hosted environment. After some deployments we observed that delete flag for some records in AbpTextTemplateContents is setting up to 1, so supecting something with migrator. We are sure no user updated this but this is happening automatically. any idea what are the possible scenerios/steps which updateds this flags?

    Hi We got the exact issue identified and fixed at our end. This is an issue with ABP logic in updating the email content.

    In TemplateContentAppService.cs , as per the existig logic, for every Content update old record are getting deleted and new one is getting created. That is fine. But in case someone clicks on save without changing any content. Old record are getting deleted but new one are not creating because of return statement in case of no content change.

    In nut shell in case of no content change we should not dlete the old one as well, So we have moved the delete logic after the retunr statment (in case of no content change)

    I am not sure how it was in Latest versions of ABP, make I think this should be handled at framework level only. Let us know in case of any more details needed.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    Thanks for reporting this issue. I am closing the ticket as your issue resolved.

    Thanks, Anjali

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06