From e89ee36b1dcf2d0d31cb278e16c259e95e24eb90 Mon Sep 17 00:00:00 2001 From: Andrew Petro <andrew.petro@wisc.edu> Date: Fri, 8 Oct 2021 09:39:08 -0500 Subject: [PATCH] Add MYUW-002 and MYUW-003 error codes to existing error pages. --- CHANGELOG.md | 10 ++++++++++ myuw-root-webapp/src/main/webapp/403.html | 10 +++++++--- myuw-root-webapp/src/main/webapp/404.html | 5 +++-- 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..4a18143 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,10 @@ +# Root context and error valve change log + +## 1.1.16 + ++ Label the root 403 error page with error code MYUW-002. ++ Label the root 404 error page with error code MYUW-003. + +## 1.1.15 and earlier + +Prior versions exist, but they predate this change log. diff --git a/myuw-root-webapp/src/main/webapp/403.html b/myuw-root-webapp/src/main/webapp/403.html index 632746b..e815793 100644 --- a/myuw-root-webapp/src/main/webapp/403.html +++ b/myuw-root-webapp/src/main/webapp/403.html @@ -17,7 +17,7 @@ <img src="/main_logo_w_all.png" alt="University of Wisconsin System Logo" class="uw-logo"> </div> <!-- Title --> - <h1 class="mdl-layout-title outage-title">Access Denied</h1> + <h1 class="mdl-layout-title outage-title">MYUW-002 Access Denied</h1> </div> </header> <main class="mdl-layout__content content-centered"> @@ -26,8 +26,12 @@ <div class="mdl-cell mdl-cell--8-col mdl-cell--10-col-phone"> <img src="/alert-icon.png" alt="Line art image of an exclamation mark inside of a triangle" class="alert-icon"> <h2 class="mr-title">Sorry, you're not authorized to access this page.</h2> - <p>If you're here by accident, head back to your MyUW <a href='/web'>homepage</a>.</p> - <p>For help with authorization, contact the DoIT <a href="https://kb.wisc.edu/helpdesk/">Help Desk</a>.</p> + <p>MyUW determined you're not authorized to access the requested page.</p> + <p>This could be because you're really not authorized. If that's the case, trying again will not help.</p> + <p>Or it could be because your session timed out or MyUW otherwise got confused. If so, sorry! And trying again may well work for you.</p> + <p>Next, you can head back to your MyUW <a href='/web'>homepage</a>.</p> + <p>For help with authorization, contact the DoIT <a href="https://kb.wisc.edu/helpdesk/">Help Desk</a>. When contacting the Help Desk, please mention <em>MyUW error code MYUW-002</em>.</p> + <p>(Technical detail: MyUW error code MYUW-002: HTTP status code 403 FORBIDDEN issued by the root servlet context.)</p> </div> <div class="mdl-cell mdl-cell--2-col mdl-cell--1-col-phone"></div> </div> diff --git a/myuw-root-webapp/src/main/webapp/404.html b/myuw-root-webapp/src/main/webapp/404.html index 1097521..5710a62 100644 --- a/myuw-root-webapp/src/main/webapp/404.html +++ b/myuw-root-webapp/src/main/webapp/404.html @@ -19,7 +19,7 @@ <img src="/main_logo_w_all.png" alt="University of Wisconsin System Logo" class="uw-logo"> </div> <!-- Title --> - <h1 class="mdl-layout-title outage-title">Page Not Found</h1> + <h1 class="mdl-layout-title outage-title">MYUW-003: Page Not Found</h1> </div> </header> <main class="mdl-layout__content content-centered"> @@ -30,7 +30,8 @@ <h2 class="mr-title">Sorry, the page you are looking for does not exist or you don't have access to it.</h2> <p>Please go to the <a href='/'>MyUW home page</a>.</p> <p class="apologize">We apologize for the inconvenience. If you feel as though this URL should exist, please drop - us a line on our <a href='https://my.wisc.edu/portal/p/feedback'>feedback form</a>.</p> + us a line on our <a href='https://my.wisc.edu/portal/p/feedback'>feedback form</a>. When offering feedback or contacting the Help Desk, please mention <strong>MyUW error code MYUW-003</strong>.</p> + <p>(Technical detail: HTTP status code 404 NOT FOUND presented by root servlet context.)</p> </div> <div class="mdl-cell mdl-cell--2-col mdl-cell--1-col-phone"></div> </div> -- GitLab