Open Closed

Backport Fix - Exceptions cause 403 #5046 #5307


User avatar
0
PSTEELNZ created

Hi

Can this issue referenced above be backported to the 7.2.2 release as it is causing us some issues and we can't override the Error Handling class.

Thanks

Phil


2 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    You can override error handlers via the angular DI system.

    This is the component that shows a modal or redirect to the page. https://github.com/abpframework/abp/blob/dev/npm/ng-packs/packages/theme-shared/src/lib/handlers/error.handler.ts

    It should not be necessary. Maybe there is another option. Instead of overriding the error handler, I am searching for a better alternative. due to the size of the ErrorHandler class. The override could be challenging. In any case. The Error handler codes were refactored in the 7.4 branch. it split small chunks.

  • User Avatar
    0
    mahmut.gundogdu created

    You can override error handlers via the angular DI system.

    This is the component that shows a modal or redirect to the page. https://github.com/abpframework/abp/blob/dev/npm/ng-packs/packages/theme-shared/src/lib/handlers/error.handler.ts

    It should not be necessary. Maybe there is another option. Instead of overriding the error handler, I am searching for a better alternative. due to the size of the ErrorHandler class. The override could be challenging. In any case. The Error handler codes were refactored in the 7.4 branch. it split small chunks.

    I have tested. it has already fixed in v7.2 . It will be released as the first patch version.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11