View Issue Details

IDProjectCategoryView StatusLast Update
0010467Talerwallet-corepublic2025-10-01 23:04
Reportersebasjm Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0010467: taler-utils: we should have a specific host-port-path parser
Descriptioninstead of relying on new URL() as baseUrl

problems of the current approach:

* the spec is very narrow and specific about the characters allowed
* not easy to use
* the error is return as a thrown message and not by error code

we are using https://url.spec.whatwg.org/#concept-basic-url-parser

and we only need
> 'path-abempty' is defined in [RFC3986] in Section 3.3. 'query' is defined in [RFC3986], in Section 3.4.

thus if we are not careful we will be allowing username, password, hash and scheme when parsing an url.

this is specific to payto URI and taler URI.

It will be also useful for the parser to return error codes to be used on an input on the UI and help the user to diagnose the string.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-10-01 23:04 sebasjm New Issue