Ensure proper encoding of error messages
[?]
Oct 3, 2013, 3:20 PM
2MSFKTD5BSZSAYUYVETLZW2GAH65CFUYWWNTQCT3LBBCJGGWPHEQCDependencies
- [2]
7G7QH3ITSet a 500 HTTP status on errors - [3]
LSZLZHJYAllow users to edit their own settings - [4]
2JQ7WEFM - [5]
SMM4HQTP* Put actions related to builds under /build (e.g. /log/<buildid> - [6]
NYC3LZKH* Generate NAR archives on the fly. Necessary for producing channels - [7]
AGQ2MGFEClean up error handling - [8]
LZVO64YGMerge in the first bits of the API work - [9]
KYSBJAYNAllow dashes in jobset input names - [*]
J5UVLXOK* Start of a basic Catalyst web interface. - [*]
XE6HD7BPProvide the nix-cache-info file required by the binary cache substituter
Change contents
- edit in src/lib/Hydra/Controller/Root.pm at line 11[12.17][4.0]
use Encode; - edit in src/lib/Hydra/Controller/Root.pm at line 215
my @errors = map { encode_utf8($_); } @{$c->error}; - replacement in src/lib/Hydra/Controller/Root.pm at line 218
if (scalar @{$c->error}) {$c->stash->{json}->{error} = join "\n", @{$c->error};if (scalar @errors) {$c->stash->{json}->{error} = join "\n", @errors; - replacement in src/lib/Hydra/Controller/Root.pm at line 228
$c->stash->{errors} = $c->error;$c->stash->{errors} = [@errors];