http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/roundup/exceptions.py Mercurial Repository: p/roundup/code: roundup/exceptions.py history 2026-04-14T16:06:22-04:00 doc: Fix doc on Reject handled in mailgw http://hg.code.sf.net:8000/p/roundup/code/#changeset-917b862128706babfbb6ed1cdec21eacf8e11ece John Rouillard rouilj@ieee.org 2026-04-14T16:06:22-04:00 2026-04-14T16:06:22-04:00
changeset 917b86212870
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description doc: Fix doc on Reject handled in mailgw

Doc said failure to create a message or create a file is ignored.
Failure to create an atached file is ignore, but failure to ad a
message results in an error message to the user.
files
refactor: move RateLimitExceeded to roundup.cgi.exceptions http://hg.code.sf.net:8000/p/roundup/code/#changeset-e882a5d52ae5e6900363d85ef206ec1b3f9b7676 John Rouillard rouilj@ieee.org 2025-08-10T21:27:06-04:00 2025-08-10T21:27:06-04:00
changeset e882a5d52ae5
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description refactor: move RateLimitExceeded to roundup.cgi.exceptions

RateLimitExceeded is an HTTP exception that raises code 429. Move it
to roundup.cgi.exceptions where all the other exceptions that result
in http status codes are located. Also make it inherit from
HTTPException since it is one.

Also add docstrings for all HTTP exceptions and order HTTPExceptions
by status code.

BREAKING CHANGE: if somebody is importing RateLimitExceeded they will
need to change their import. I consider it unlikely anybody is using
RateLimitExceeded. Detectors and extensions are unlikely to raise
RateLimitExceeded. So I am leaving it out of the upgrading doc. Just
doc in change log.
files
fix(api): - issue2551063 - Rest/Xmlrpc interfaces needs failed login protection. http://hg.code.sf.net:8000/p/roundup/code/#changeset-273c8c2b504245a937efbd42604f77cb2d3d0d9d John Rouillard rouilj@ieee.org 2023-07-19T20:37:45-04:00 2023-07-19T20:37:45-04:00
changeset 273c8c2b5042
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix(api): - issue2551063 - Rest/Xmlrpc interfaces needs failed login protection.

Failed API login rate limiting with expiring lockout added.
files
chore: flake8 formatting fixes http://hg.code.sf.net:8000/p/roundup/code/#changeset-e16b7d47fdb2bb72a01d53d85089f04bdda4fa1c John Rouillard rouilj@ieee.org 2023-02-26T10:34:07-05:00 2023-02-26T10:34:07-05:00
changeset e16b7d47fdb2
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description chore: flake8 formatting fixes
files
issue2551083 Replace BaseException and Exception with RoundupException http://hg.code.sf.net:8000/p/roundup/code/#changeset-c177e7128dc987e64d2a829d2dc81dc4538da17e John Rouillard rouilj@ieee.org 2020-04-03T16:18:59-04:00 2020-04-03T16:18:59-04:00
changeset c177e7128dc9
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description issue2551083 Replace BaseException and Exception with RoundupException

issue2551083 - Replace BaseException and Exception as base classes
with new RoundupException (inheriting from Exception) for most roundup
exceptions.
files
flake8 formatting fixes. http://hg.code.sf.net:8000/p/roundup/code/#changeset-292c9dfd06bde77ebb1436ccdc070c733721c593 John Rouillard rouilj@ieee.org 2019-12-28T13:01:34-05:00 2019-12-28T13:01:34-05:00
changeset 292c9dfd06bd
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description flake8 formatting fixes.
files
Python 2 and 3 support. Convert Exception into BaseException in core code. http://hg.code.sf.net:8000/p/roundup/code/#changeset-32f95ec6bd8e058056dd9ab57d641a19f904281f John Rouillard rouilj@ieee.org 2017-09-04T21:56:49-04:00 2017-09-04T21:56:49-04:00
changeset 32f95ec6bd8e
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Python 2 and 3 support. Convert Exception into BaseException in core code.
files
Display errors containing HTML with RejectRaw (issue2550847) http://hg.code.sf.net:8000/p/roundup/code/#changeset-494d255043c92832585d5959cf78529283069ad1 John Kristensen john@jerrykan.com 2015-10-10T23:35:51+11:00 2015-10-10T23:35:51+11:00
changeset 494d255043c9
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Display errors containing HTML with RejectRaw (issue2550847)

In general outputting un-escaped HTML in a message to the user is an
unsafe operation, which is why error message are escaped by default. In
some cases though it is desirable for a detector to include HTML within
an error message. For these cases where HTML is required the RejectRaw
exception can be used within the detector.
files
XMLRPC improvements: http://hg.code.sf.net:8000/p/roundup/code/#changeset-bbab97f8ffb2f6e94262615a068f7878d9e572c0 Stefan Seefeld stefan@seefeld.name 2009-02-27T17:46:47+00:00 2009-02-27T17:46:47+00:00
changeset bbab97f8ffb2
branch
bookmark
tag
user Stefan Seefeld <stefan@seefeld.name>
description XMLRPC improvements:

* Add support for actions to XMLRPC interface.
* Provide bridge so user actions may be executed
either via CGI or XMLRPC.
* Adjust XMLRPC tests to recent work.
* Cleanup.
files
Move 'UsageError' definition from roundup.admin to roundup.exceptions. http://hg.code.sf.net:8000/p/roundup/code/#changeset-042ace5ddb7cff040b438369ffa6aa6fa2e8db63 Stefan Seefeld stefan@seefeld.name 2009-02-22T01:49:15+00:00 2009-02-22T01:49:15+00:00
changeset 042ace5ddb7c
branch
bookmark
tag
user Stefan Seefeld <stefan@seefeld.name>
description Move 'UsageError' definition from roundup.admin to roundup.exceptions.
files
add and use Reject exception [SF#700265] http://hg.code.sf.net:8000/p/roundup/code/#changeset-3fd6722937126260b1675db4abfc06e34bc7ae1a Richard Jones richard@users.sourceforge.net 2004-03-26T00:44:11+00:00 2004-03-26T00:44:11+00:00
changeset 3fd672293712
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description add and use Reject exception [SF#700265]
files