Closed Bug 1133870 Opened 11 years ago Closed 11 years ago

LogSliceView raises ResourceNotFoundException (and thus 404s) for all exceptions

Categories

(Tree Management :: Treeherder: API, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: camd)

References

Details

Found during bug 1133837. We were hitting permissions problems ([Errno 13] Permission denied: '/data/www/treeherder.mozilla.org/treeherder-service/treeherder/webapp/log_cache/tmpyTjP_n') & then "can't pickle BytesIO objects", but both of these exceptions were caught by the generic: https://github.com/mozilla/treeherder-service/blob/f5c0b53e0ce6b527c5eb2d861adeb72e1e5859ea/treeherder/webapp/api/logslice.py#L81 except Exception as e: logging.error(e) raise ResourceNotFoundException("log file not found") Which gets converted to a 404 and no exception in new relic. We should let the original exception bubble up in most cases.
Assignee: nobody → cdawson
Blocks: 1119479
Blocks: 1133910
No longer blocks: 1133837
No longer blocks: 1119479
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Depends on: 1134415
You need to log in before you can comment on or make changes to this bug.