commit 607aef26a3cb440af7783745bb6c50acfc56aaed
parent 97a6a7a509834f53b7933736cbb4914d8c7ffb79
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Thu, 29 Jan 2026 15:57:17 +0900
too many inventory products is a protocol violation, not an internal error
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c
@@ -4728,12 +4728,12 @@ phase_parse_request (struct OrderContext *oc)
if ( (json_array_size (ip) != (size_t) ipl) ||
(ipl > MAX_PRODUCTS) )
{
- GNUNET_break (0);
+ GNUNET_break_op (0);
GNUNET_JSON_parse_free (spec);
reply_with_error (oc,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_ALLOCATION_FAILURE,
- "inventory products too long");
+ MHD_HTTP_BAD_REQUEST,
+ TALER_EC_GENERIC_PARAMETER_MALFORMED,
+ "inventory_products (too many)");
return;
}
GNUNET_array_grow (oc->parse_request.inventory_products,