Closed mrotteveel closed 2 weeks ago
On 4/2/24 17:56, Mark Rotteveel wrote:
Currently the protocol schemes in the Firebird 3.0+ connection URLs are case-sensitive (Firebrd/fbclient only accepts the lowercase variant).
Similar to RFC 3986, I think we should handle schemes case-insensitively, where lowercase is the canonical form. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1
In other words, Firebird should accept |inet://...|, |INET://...|, |inet4://...|, |INET4://...|, |inet6://...|, |INET6://...|, |xnet://...| and |XNET://...| (and mixed case forms) equally.
+1
@mrotteveel: should it be backported into v3 and v4 too, what do you think ?
@hvlad I think backporting to v4 would be nice to have, backporting to v3 can be skipped.
Backported into v4
Currently the protocol schemes in the Firebird 3.0+ connection URLs are case-sensitive (Firebrd/fbclient only accepts the lowercase variant).
Similar to RFC 3986, I think we should handle schemes case-insensitively, where lowercase is the canonical form. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1
In other words, Firebird should accept
inet://...
,INET://...
,inet4://...
,INET4://...
,inet6://...
,INET6://...
,xnet://...
andXNET://...
(and mixed case forms) equally.