Commit fcd07ca
refactor: remove pre-8.3 XML namespace fallback (#1046)
The `Namespace` class detected `http://tableausoftware.com/api` (the pre-8.3
namespace) at runtime on every XML response and let the parser silently switch
namespaces if it saw the old one. That behavior has been unreachable for years:
the library's `minimum_supported_server_version` is 2.3, which corresponds to
Tableau Server 10.0 -- shipped in 2016, three years after the namespace changed.
Every server TSC has ever admitted uses `http://tableau.com/api`.
Removes:
- `tableauserverclient/namespace.py` (the module) and everything it exported:
`Namespace`, `UnknownNamespaceError`, `OLD_NAMESPACE`, `NEW_NAMESPACE`,
`NAMESPACE_RE`.
- `Server._namespace` instance and the per-response `.detect(...)` call in
`Endpoint._make_request` and both sign-in paths in `Auth`.
Keeps:
- The public `TSC.DEFAULT_NAMESPACE` re-export -- now sourced from
`tableauserverclient.server.server.NAMESPACE`, which is the canonical
constant. Same string value.
- `Server.namespace` property -- still returns the `{"t": NAMESPACE}` dict
callers pass to ElementTree's `namespaces=` kwarg. Same shape.
Callers who imported directly from `tableauserverclient.namespace` (rather
than `TSC.DEFAULT_NAMESPACE`) will break; the CHANGELOG entry calls this out.
Fixes #1046.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent aa9e3a0 commit fcd07ca
6 files changed
Lines changed: 14 additions & 46 deletions
File tree
- tableauserverclient
- server
- endpoint
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
157 | | - | |
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 155 | | |
159 | 156 | | |
160 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
176 | 180 | | |
177 | 181 | | |
178 | 182 | | |
179 | | - | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
290 | 293 | | |
291 | 294 | | |
292 | 295 | | |
293 | | - | |
| 296 | + | |
294 | 297 | | |
295 | 298 | | |
296 | 299 | | |
| |||
0 commit comments