commit de900eefa7019be37b0fab1f421c41a078d77345
parent 0ba6a9d3e1c1322d2617454e217017c72ba5faab
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 30 Jul 2026 10:14:35 +0200
fix tmp paths to include claude; add web_url where applicable
Diffstat:
7 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/donau/donau-httpd_patch-charities-CHARITY_ID.c b/src/donau/donau-httpd_patch-charities-CHARITY_ID.c
@@ -48,7 +48,7 @@ DH_handler_patch_charities (struct DH_RequestContext *rc,
&charity_pub),
GNUNET_JSON_spec_string ("charity_name",
&charity_name),
- GNUNET_JSON_spec_string ("charity_url",
+ TALER_JSON_spec_web_url ("charity_url",
&charity_url),
TALER_JSON_spec_amount ("max_per_year",
DH_currency,
diff --git a/src/donau/donau-httpd_post-charities.c b/src/donau/donau-httpd_post-charities.c
@@ -46,7 +46,7 @@ DH_handler_post_charities (struct DH_RequestContext *rc,
&charity_pub),
GNUNET_JSON_spec_string ("charity_name",
&charity_name),
- GNUNET_JSON_spec_string ("charity_url",
+ TALER_JSON_spec_web_url ("charity_url",
&charity_url),
TALER_JSON_spec_amount ("max_per_year",
DH_currency,
diff --git a/src/lib/donau_api_charity_get.c b/src/lib/donau_api_charity_get.c
@@ -82,7 +82,7 @@ handle_charity_get_ok (const json_t *resp_obj,
&charity->charity_pub),
GNUNET_JSON_spec_string ("name",
&charity->name),
- GNUNET_JSON_spec_string ("url",
+ TALER_JSON_spec_web_url ("url",
&charity->charity_url),
TALER_JSON_spec_amount_any ("max_per_year",
&charity->max_per_year),
diff --git a/src/lib/donau_api_handle.c b/src/lib/donau_api_handle.c
@@ -901,7 +901,7 @@ DONAU_keys_from_json (const json_t *j)
&version),
GNUNET_JSON_spec_object_const ("keys",
&jkeys),
- GNUNET_JSON_spec_string ("donau_url",
+ TALER_JSON_spec_web_url ("donau_url",
&url),
GNUNET_JSON_spec_end ()
};
diff --git a/src/testing/test_donau_api.c b/src/testing/test_donau_api.c
@@ -73,7 +73,7 @@ run (void *cls,
true),
TALER_TESTING_cmd_charity_post ("post-charity",
"example",
- "example.com",
+ "https://example.com/",
"EUR:10", // max_per_year
&bearer,
MHD_HTTP_CREATED),
@@ -83,7 +83,7 @@ run (void *cls,
TALER_TESTING_cmd_charity_patch ("patch-charity",
"post-charity",
"example-updated",
- "example.org",
+ "https://example.org/",
"EUR:15",
&bearer,
MHD_HTTP_OK),
diff --git a/src/testing/test_donau_api.conf b/src/testing/test_donau_api.conf
@@ -3,7 +3,7 @@
[PATHS]
TALER_TEST_HOME = test_donau_api_home/
-DONAU_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/donau-system-runtime/
+DONAU_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/${USER:-}/donau-system-runtime/
[exchange]
BASE_URL = http://localhost:8888/
diff --git a/src/util/paths.conf b/src/util/paths.conf
@@ -26,4 +26,4 @@ DONAU_CONFIG_HOME = ${XDG_CONFIG_HOME:-${DONAU_HOME}/.config}/donau/
DONAU_CACHE_HOME = ${XDG_CACHE_HOME:-${DONAU_HOME}/.cache}/donau/
# Runtime data (always lost on system boot)
-DONAU_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/donau-system-runtime/
+DONAU_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/${USER:-}/donau-system-runtime/