Roundup Tracker - Issues

Issue 2550755

classification
Title: exceptions.NotFound(msg) msg is not reported to user in cgi
Type: Severity: normal
Components: Web interface Versions: devel
process
Status: new Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ber
Priority: Keywords:

Created on 2012-05-14 15:51 by ber, last changed 2012-05-14 15:51 by ber.

Messages
msg4554 Author: [hidden] (ber) Date: 2012-05-14 15:51
in roundup/cgi/actions.py
raise exceptions.NotFound(msg) should give the msg to the web browser.
It does not with 4624:21705126dafa (pre 1.4.20).

Should be fixed and then the following code needs to be replaced:
       # check if all columns exist on class
        # the exception must be raised before sending header
        props = klass.getprops()
        for cname in columns:
            if cname not in props:
                # TODO raise exceptions.NotFound(.....) does not give
message
                # so using SeriousError instead
                self.client.response_code = 404
                raise exceptions.SeriousError(
                    self._('Column "%(column)s" not found on
%(class)s')
                    % {'column': cgi.escape(cname), 'class':
request.classname})

in roundup/cgi/actions.py to use NotFound().
History
Date User Action Args
2012-05-14 15:51:52bercreate