[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: fix 404 returning from policy
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: fix 404 returning from policy |
Date: |
Sat, 20 Mar 2021 23:32:02 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new 97ce548 fix 404 returning from policy
97ce548 is described below
commit 97ce548fcfb0527e0fa30b62730ff4f55d53ba11
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sat Mar 20 23:31:59 2021 +0100
fix 404 returning from policy
---
contrib/gana | 2 +-
src/backend/anastasis-httpd_policy.c | 7 +++----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/contrib/gana b/contrib/gana
index 0d7ef35..65b3235 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit 0d7ef35edeabec5de9c4e479c697fd643d92c26c
+Subproject commit 65b32359b300f5369eff62fceb5001e609c2f339
diff --git a/src/backend/anastasis-httpd_policy.c
b/src/backend/anastasis-httpd_policy.c
index 4e89bb4..588ce6a 100644
--- a/src/backend/anastasis-httpd_policy.c
+++ b/src/backend/anastasis-httpd_policy.c
@@ -115,11 +115,10 @@ return_policy (struct MHD_Connection *connection,
TALER_EC_GENERIC_DB_SOFT_FAILURE,
"get_recovery_document");
case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- GNUNET_break (0);
return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_INVARIANT_FAILURE,
- "unexpected empty result set (try
again?)");
+ MHD_HTTP_NOT_FOUND,
+ TALER_EC_ANASTASIS_POLICY_NOT_FOUND,
+ NULL);
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
/* interesting case below */
break;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: fix 404 returning from policy,
gnunet <=