Re: Should missing templates be reported to the user or to the admin
Christof Meerwald <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Hi John, On Tue, 19 May 2020 21:15:24 -0400, John P. Rouillard wrote: > However the engine thinks that .../issue3?@template=empty is a valid > url. It's not. There is no empty template. As a result I get an email > logged on every hit. The user sees a 500 error with the message: Sending an email for each request is bad - this could also be abused to overflow the admin's mail box. > I am considering trapping the NoTemplate error and sending the > user the following message: > > No template file exists for templating "issue" with template "empty" > (neither "issue.foo" nor "_generic.foo") > > with a 200 or 500 status. I am leaning toward the 500 status. It definitely shouldn't be a 200 status, but I am not sure about 500 either (it's not really a server issue). Wouldn't something in the 4xx range be more appropriate, maybe even a 404? Christof -- http://cmeerw.org sip:cmeerw at cmeerw.org mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org