Page MenuHomeIn-Portal Phabricator

INP-1912 - Show "404 Page Not Found" page on the Front-End for unaccessible events
ClosedPublic

Authored by alex on Mon, May 26, 10:33 AM.

Details

Test Plan

Part 1

  1. (new) apply the patch from the D524, unless it's already committed
  2. apply the patch from the D522, unless it's already committed
  3. enable Debug Mode
  4. execute the test plan of the D522

Part 2

  1. disable Debug Mode
  2. on the Front-End:
    1. open the /index.php?env=-login%3Am0--1--s-&events[orda]=OnMissing URL
    2. confirm, that you'll see a 404 Page Not Found page
    3. confirm, that record in the System Log isn't created about this incident
    4. open the /index.php?env=-login%3Am0--1--s-&events[ord]=OnMissing URL
    5. confirm, that you'll see a 404 Page Not Found page
    6. confirm, that record in the System Log isn't created about this incident
  3. in the Admin Console login screen:
    1. open the /admin/index.php?env=-login%3Am0--1--s-&events[orda]=OnMissing URL
    2. confirm, that a Oops, something went wrong text is shown
    3. confirm, that a System Log record with Configuration file for prefix "orda" is unknown text was created
    4. open the /admin/index.php?env=-login%3Am0--1--s-&events[ord]=OnMissing URL
    5. confirm, that a Oops, something went wrong text is shown
    6. confirm, that a System Log record with Event "OnMissing" not implemented in class "OrdersEventHandler" text was created

Diff Detail

Repository
rINP In-Portal
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alex created this revision.Mon, May 26, 10:33 AM
alex requested review of this revision.Mon, May 26, 10:33 AM
erik requested changes to this revision.Mon, May 26, 11:05 AM

2.2 - this part of test plan is excessive
2.3 - Failed all front-end tests. Always shown Oops, something went wrong text, not 404 page. Always System Log IS created about incident

This revision now requires changes to proceed.Mon, May 26, 11:05 AM
alex edited the test plan for this revision. (Show Details)Mon, May 26, 12:11 PM
alex added a comment.Mon, May 26, 12:32 PM

2.2 - this part of test plan is excessive

Removed excessive part.

2.3 - Failed all front-end tests. Always shown Oops, something went wrong text, not 404 page. Always System Log IS created about incident

This worked with mod-rewrite turned off, but with mod-rewrite turned on, it failed. I'll look into that.

alex requested review of this revision.Tue, May 27, 4:43 AM
alex edited the test plan for this revision. (Show Details)

I've added # (new) apply the patch from the D524, unless it's already committed line, that should fix the problem. Please retest.

erik accepted this revision.Tue, May 27, 5:51 AM
This revision is now accepted and ready to land.Tue, May 27, 5:51 AM
This revision was automatically updated to reflect the committed changes.