crs-tools / tracker

CRS Ticket Tracker
Apache License 2.0
18 stars 11 forks source link

XMLRPC API outputs query when invalid state is supplied #108

Closed a-tze closed 7 years ago

a-tze commented 9 years ago

Issue migrated from trac ticket # 108

component: rpc | priority: minor | resolution: fixed

2015-08-12 20:43:27: derpeter created the issue


Log:

2015-08-12 20:35:07,614 - root - ERROR - A fault occurred
2015-08-12 20:35:07,614 - root - ERROR - Fault code: -32600
2015-08-12 20:35:07,614 - root - ERROR - Fault string: ERROR:  invalid input value for enum enum_ticket_type: "ready to release" (SELECT "tbl_project_ticket_state"."project_id" AS "state_project_id", "tbl_project_ticket_state"."ticket_type" AS "state_ticket_type", "tbl_project_ticket_state"."ticket_state" AS "state_ticket_state", "tbl_project_ticket_state"."service_executable" AS "state_service_executable", "tbl_ticket".* FROM "view_serviceable_tickets" AS "tbl_ticket" LEFT JOIN "tbl_project_ticket_state" ON ("tbl_ticket".project_id # "tbl_project_ticket_state"."project_id" AND "tbl_ticket".ticket_type"tbl_project_ticket_state"."ticket_type" AND "tbl_ticket".ticket_state # "tbl_project_ticket_state"."ticket_state") WHERE ("tbl_ticket"."project_id" IN ('36') AND "tbl_ticket"."ticket_type"'ready to release' AND "tbl_ticket"."next_state" # 'releasing' AND "tbl_ticket"."next_state_service_executable"'1' AND "tbl_ticket"."handle_id" IS NULL) ORDER BY TICKET_PRIORITY("tbl_ticket"."id") DESC)
a-tze commented 9 years ago

2015-08-12 20:43:33: @jjeising changed status from new to accepted

a-tze commented 7 years ago

2017-03-09 17:24:59: @pegro changed status from accepted to closed

a-tze commented 7 years ago

2017-03-09 17:24:59: @pegro set resolution to fixed

a-tze commented 7 years ago

2017-03-09 17:24:59: @pegro commented


Since changeset [changeset:6c4fac3e] the API returns a generic error with a parsed error message.