Changeset 35c9e99


Ignore:
Timestamp:
Aug 22, 2009 4:23:15 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
51fd4d7
Parents:
22c0b8e
Message:
  • Throw 403 instead of 404 from flags.jsp and viewstat.jsp so we don't render error.jsp
Location:
apps/routerconsole/jsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/jsp/flags.jsp

    r22c0b8e r35c9e99  
    2626        cout.close();
    2727}
     28/*
     29 *  Send a 403 instead of a 404, because the server sends error.jsp
     30 *  for 404 errors, complete with the summary bar, which would be
     31 *  a huge load for a page full of flags if the user didn't have the
     32 *  flags directory for some reason.
     33 */
    2834if (!rendered)
    29     response.sendError(404, "Not found");
     35    response.sendError(403, "Flag not found");
    3036%>
  • apps/routerconsole/jsp/viewstat.jsp

    r22c0b8e r35c9e99  
    6464  } catch (NumberFormatException nfe) {}
    6565}
     66/*
     67 *  Send a 403 instead of a 404, because the server sends error.jsp
     68 *  for 404 errors, complete with the summary bar, which would be
     69 *  a huge load for a page full of graphs if there's a problem
     70 */
    6671if (!rendered) {
    67   response.sendError(404, "That stat is not available");
     72  response.sendError(403, "That stat is not available");
    6873}
    6974%>
Note: See TracChangeset for help on using the changeset viewer.