[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: fix #6833
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: fix #6833 |
Date: |
Tue, 06 Apr 2021 20:11:17 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 1e10f069 fix #6833
1e10f069 is described below
commit 1e10f069f6e808929386113fef992ded67d43d88
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Apr 6 20:11:15 2021 +0200
fix #6833
---
src/backend/taler-merchant-httpd.c | 10 ++++++++++
src/testing/test_merchant_api.c | 6 +++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/backend/taler-merchant-httpd.c
b/src/backend/taler-merchant-httpd.c
index 611be6bf..0878b265 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -1839,6 +1839,16 @@ url_handler (void *cls,
/* At this point, we must have found a handler */
GNUNET_assert (NULL != hc->rh);
+ /* If an instance should be there, check one exists */
+ if ( (NULL == hc->instance) &&
+ (! hc->rh->skip_instance) )
+ {
+ return TALER_MHD_reply_with_error (connection,
+ MHD_HTTP_NOT_FOUND,
+
TALER_EC_MERCHANT_GENERIC_INSTANCE_UNKNOWN,
+ hc->infix);
+ }
+
/* Access control for private handlers */
if (use_private)
{
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c
index 8b5c46bc..401cfd0a 100644
--- a/src/testing/test_merchant_api.c
+++ b/src/testing/test_merchant_api.c
@@ -1312,10 +1312,10 @@ run (void *cls,
"i2",
MHD_HTTP_NOT_FOUND,
NULL),
- TALER_TESTING_cmd_merchant_purge_instance ("instance-delete-i2-again",
+ TALER_TESTING_cmd_merchant_purge_instance ("instance-delete-then-purge-i2",
merchant_url,
"i2",
- MHD_HTTP_NOT_FOUND),
+ MHD_HTTP_NO_CONTENT),
TALER_TESTING_cmd_merchant_post_instances ("instance-create-default",
merchant_url,
"default",
@@ -1438,7 +1438,7 @@ run (void *cls,
merchant_url,
"i1",
MHD_HTTP_NO_CONTENT),
- TALER_TESTING_cmd_merchant_delete_instance ("instance-delete-i1-again",
+ TALER_TESTING_cmd_merchant_delete_instance
("instance-purge-then-delete-i1",
merchant_url,
"i1",
MHD_HTTP_NOT_FOUND),
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: fix #6833,
gnunet <=