Open Closed

Angular Error Handling for BusinessExceptions: http status code 403 #5412


User avatar
0
ThomasA created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v7.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

Prior to our upgrade, when a BusinessException was thrown, angular would only show an AbpConfirmation dialog only, with a localized error message.

After the upgrade, there are 2 screens that are show. Firstly a AbpHttpErrorWrapper and then when you click 'Go Back' the AbpConfirmation dialog as above

As seen in the html, there are 2 components for the abp-confirmation dialog and also the abp-http-error-wrapper

Is there any way to disable or hide the abp-http-error-wrapper when a BusinessException with http status code 403. This is the same http status code that is used for a Forbidden AbpAuthorizationException.

Your assistance in this regard will be greatly appreciated.


1 Answer(s)
  • User Avatar
    0
    masum.ulu created
    Support Team Angular Expert

    Hi Thomas,

    This issue fixed in this PR can you please upgrade your project to 7.2.3

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19