demarches-normaliennes/app/controllers
Pierre de La Morinerie 859a147c49 api: return error cause on parse error
Currently, when a query can't be parsed, the error is:
- logged to Sentry (which is useless to us),
- returned as a generic 'Internal Server Error' (which is useless to the
  user who made the query).

With this commit, the error is instead ignored from our logs (because it
is a user error), but the parse error details are returned to the user,
with the following format:

> {'errors': [{'message': 'Parse error on ")" (RPAREN) at [3, 23]'}]}
2021-11-19 15:15:10 +01:00
..
administrateurs devise: unify password reset views 2021-09-09 09:40:40 -05:00
api api: return error cause on parse error 2021-11-19 15:15:10 +01:00
application_controller app: use a long-lived cookie for CSRF token 2021-07-20 11:11:52 +02:00
champs fix(champs): attach piece justificative 2021-11-16 17:57:41 +03:00
concerns app: fix exception during password reset when the token has expired 2021-09-21 10:30:09 -05:00
devise sign_in: extract the procedure context to a ProcedureContextConcern 2019-01-17 11:07:09 +01:00
experts modify expert avis controller 2021-10-05 15:00:21 +02:00
france_connect Do not raise error if user is nil 2021-10-19 11:21:24 +02:00
instructeurs fix(champs): save departement info on champ commune 2021-11-17 14:52:47 +03:00
manager move merge method to user 2021-10-28 14:39:13 +02:00
new_administrateur feat(procedure): remove duree_conservation_dossiers_hors_ds 2021-11-16 19:55:56 +03:00
super_admins devise: use password_strength component in SuperAdmin::PasswordsController 2021-09-09 09:40:39 -05:00
users fix(champs): save departement info on champ commune 2021-11-17 14:52:47 +03:00
admin_controller.rb Remove old css and js 2021-02-02 15:26:11 +01:00
api_controller.rb Enable flipflop on api requests 2019-03-12 14:02:55 +01:00
api_geo_test_controller.rb Update specs 2020-10-08 15:26:15 +02:00
application_controller.rb i18n: display language selector on non-french accept-languages 2021-10-19 16:41:36 +02:00
attachments_controller.rb attachments: remove the buggy fallback 2020-04-09 10:40:08 +02:00
invites_controller.rb Fix apostrophes ‘ -> ’ 2021-05-26 18:05:14 +02:00
password_complexity_controller.rb app: add a password_complexity component 2021-09-09 09:40:39 -05:00
ping_controller.rb add maintenance mode 2020-06-22 11:17:22 +02:00
recherche_controller.rb avoid serializing long id list in case of huge procedure, search on it before 2021-05-20 12:08:04 +02:00
root_controller.rb feat(i18n): enable localization by query param 2021-08-24 12:42:40 +02:00
saml_idp_controller.rb act as an saml identity provider 2020-11-16 12:19:54 +01:00
stats_controller.rb Refactor (Rubocop): replace map{ … }.compact by filter_map 2021-06-11 15:38:09 +02:00
super_admins_controller.rb super_admin: fix OTP generation 2021-02-11 11:14:14 +01:00
support_controller.rb Internationalization of the Contact page in FR and EN 2020-08-27 11:03:34 +02:00
webhook_controller.rb added helscout link for emails 2020-10-13 17:36:43 +02:00