View Issue Details

IDProjectCategoryView StatusLast Update
0010198Talermerchant backendpublic2025-07-17 18:16
ReporterBohdan Assigned ToBohdan  
PrioritynormalSeveritytweakReproducibilityalways
Status feedbackResolutionopen 
Product Version1.0 
Summary0010198: Merchant backend fails to work with token different than 32 bytes
DescriptionThis function requires that the btoken struct of data 32 bytes, and the token has the same length, which is not always the case...


GNUNET_STRINGS_string_to_data (token,
                                     strlen (token),
                                     &btoken,
                                     sizeof (btoken)))

git version: tag/v1.0.5
src/backend/taler-merchant-httpd_helper.c:555


Additional Information...
WARNING Trying deprecated secret-token:password API authN
WARNING Login failed
WARNING External protocol violation detected at taler-merchant-httpd.c:357.
WARNING External protocol violation detected at taler-merchant-httpd.c:2410.
INFO Request for `/private/accounts' completed with HTTP status 401 (0)
INFO Handling request (POST) for URL '/private/token'
INFO Given authorization token `MY_MEGA_PASSWORD' is malformed
WARNING External protocol violation detected at taler-merchant-httpd_helper.c:564.
WARNING Trying deprecated secret-token:password API authN
WARNING Login failed
WARNING External protocol violation detected at taler-merchant-httpd.c:357.
WARNING External protocol violation detected at taler-merchant-httpd.c:2410.
...
TagsNo tags attached.

Activities

Christian Grothoff

2025-07-17 17:49

manager   ~0025516

Eh, since the merchant backend generates the tokens and we ALWAYS generate them with 32 bytes, I think this is actually intended and fine.

Bohdan

2025-07-17 18:16

developer   ~0025518

Okay, then this is the problem of SPAA as it doesn't know about this new v19 trick... But I guess the bug for that one is already present, right?

And SAP integration doesn't work for the same reason, new bug for me :)

Issue History

Date Modified Username Field Change
2025-07-17 16:24 Bohdan New Issue
2025-07-17 17:49 Christian Grothoff Note Added: 0025516
2025-07-17 17:49 Christian Grothoff Assigned To => Bohdan
2025-07-17 17:49 Christian Grothoff Status new => feedback
2025-07-17 17:50 Christian Grothoff Severity crash => tweak
2025-07-17 18:16 Bohdan Note Added: 0025518