Return HTTP 400 when creating Project with nonexistent user
[?]
Apr 26, 2021, 6:28 PM
X7P27PO3YH5W65FE3MG4W63VEBFQK2ULNMARK4BDVSWY3MQK4ZLACDependencies
- [2]
TNIHMBCRJobset.pm: Factor out build->eval mapping. - [3]
JO75HQLOAdd a restart-jobs role - [4]
LX326CB7Add hydra OpenAPI description (#750) - [5]
FPK5LF53* Put the project-related actions in a separate controller. Put the - [6]
LZVO64YGMerge in the first bits of the API work - [7]
SSMN5MPTRemove dead code - [8]
H66SHOS7Fix and clean up editing project settings - [9]
LYVUXIGTClean up the authorization code a bit - [10]
MNKXBLNCReturn 410 Gone (rather than 500) if an output is no longer available - [11]
CS7T2XFI - [12]
ODNCGFQ5* Improved the navigation bar: don't include all projects (since that - [*]
LBNVQXUB* Build the /build stuff in a separate controller. - [*]
5NO7NCKT* Refactoring.
Change contents
- edit in hydra-api.yaml at line 173
'400':description: bad requestcontent:application/json:schema:type: objectproperties:error:description: error messagetype: string - replacement in src/lib/Hydra/Controller/Project.pm at line 138
error($c, "The user name ‘$owner’ does not exist.")badRequest($c, "The user name ‘$owner’ does not exist.") - replacement in src/lib/Hydra/Helper/CatalystUtils.pm at line 14
error notFound gone accessDeniederror notFound gone accessDenied badRequest - edit in src/lib/Hydra/Helper/CatalystUtils.pm at line 158[15.4357][15.4357]
sub badRequest {my ($c, $msg) = @_;error($c, $msg, 400);}