fix: strip taler:// default :443/:80 in bank mint consumers
Align demo-withdraw-api, goa-withdraw-ladder, refresh-demo-withdraw, amount-ladder bench, and extreme tests with mon normalize rules so libeufin host:443 never reaches wallets or QR payloads.
This commit is contained in:
parent
947c72e595
commit
dc94b30fed
5 changed files with 51 additions and 12 deletions
|
|
@ -188,7 +188,12 @@ python3 - <<'PY'
|
|||
import json
|
||||
d=json.load(open("/tmp/wd-create.json"))
|
||||
wid=d.get("withdrawal_id") or d.get("id")
|
||||
uri=d.get("taler_withdraw_uri")
|
||||
uri=d.get("taler_withdraw_uri") or ""
|
||||
import re
|
||||
uri=re.sub(r"(taler://[A-Za-z0-9._-]+/)([^/?#:]+):443(?=/|$|\?|#)", r"\1\2", uri, flags=re.I)
|
||||
uri=re.sub(r"(taler://[A-Za-z0-9._-]+/)([^/?#:]+):80(?=/|$|\?|#)", r"\1\2", uri, flags=re.I)
|
||||
for a,b in ((":443/","/"),(":443?","?"),(":80/","/"),(":80?","?")):
|
||||
uri=uri.replace(a,b)
|
||||
print("WID", wid)
|
||||
print("WURI", uri)
|
||||
open("/tmp/wid.txt","w").write(wid or "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue