You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e11cec5
Browse filesBrowse the repository at this point in the historyBrowse files
- The client id and client secret are percent-decoded and must be valid UTF-8, without lone Unicode surrogates.
28
28
Encode reserved characters such as `@`, `:`, `/`, `?`, `#`, `[`, `]` and `%` in them. Raw Unicode whitespace,
29
-
control and format characters are rejected; explicitly percent-encoded credential characters are preserved.
30
-
- Host names have non-empty labels of 1–63 characters, starting and ending with a letter or digit. The total name
31
-
length is at most 253 characters, ignoring an optional trailing dot, which is preserved.
29
+
control, format and unassigned characters are rejected; explicitly percent-encoded credential characters are
30
+
preserved. Rejecting unassigned characters also rejects newly assigned format characters on older Python versions.
31
+
- Internationalised host names are accepted as Unicode (`münchen.example`, `例え.テスト`) or ASCII punycode
32
+
(`xn--mnchen-3ya.example`, `xn--r8jz45g.xn--zckzah`). The supplied representation is preserved, as in the .NET client.
33
+
Host names are validated using their IDNA-encoded ASCII form: non-empty labels of 1–63 characters, starting and
34
+
ending with a letter or digit, and at most 253 characters in total, ignoring an optional trailing dot, which is
35
+
preserved.
32
36
- An IPv6 host must be enclosed in brackets, for example `chronicle://id:secret@[::1]:35000`. For a scoped address,
33
-
both `[fe80::1%eth0]` and `[fe80::1%25eth0]` produce the host `fe80::1%eth0`.
37
+
both `[fe80::1%eth0]` and `[fe80::1%25eth0]` produce the host `fe80::1%eth0`. The zone id must be non-empty and contain
38
+
only ASCII letters, digits or `._~-`.
34
39
- Direct kernel connections default to TLS (`options.tls` is `True`).
35
40
- Option names are case-insensitive.
36
41
@@ -70,13 +75,13 @@ Every rejection is a subclass of `ConnectionStringError` (itself a `ValueError`)
70
75
| --- | --- |
71
76
| A scheme other than `chronicle://`, including `chronicle+srv://`|`UnsupportedSchemeError`|
72
77
| No host |`MissingHostError`|
73
-
| An invalid host, empty or over-long host name labels, a host name over 253 characters, invalid or misplaced brackets, or more than one host |`InvalidHostError`|
78
+
| An invalid host or IDNA encoding, empty or over-long encoded host name labels, an encoded host name over 253 characters, invalid IPv6 zone ids, invalid or misplaced brackets, or more than one host |`InvalidHostError`|
74
79
| A port that is not an integer from 1 to 65535 |`InvalidPortError`|
75
80
| Only one of the client id and client secret, or an empty one |`IncompleteCredentialsError`|
| Client credentials combined with a non-empty `apiKey`|`AmbiguousAuthenticationError`|
78
83
| A non-empty `apiKey` without credentials, any `auth=...`, a `skipTlsValidation` that is not `true` or `false`, any other query parameter, a path other than `/`, or a fragment |`UnsupportedOptionError`|
79
-
| Raw Unicode whitespace, controlor format characters (categories `Cc`, `Cf`, `Zs`, `Zl`, `Zp`) |`MalformedConnectionStringError`|
84
+
| Raw Unicode whitespace, control, format or unassigned characters (categories `Cc`, `Cf`, `Cn`, `Zs`, `Zl`, `Zp`) |`MalformedConnectionStringError`|
80
85
81
86
Malformed bracketed hosts and unescaped brackets in the authority always raise `InvalidHostError` on every
0 commit comments