Commit 35bc28a
committed
Add X-Databricks-Org-Id header to SharesExtImpl.list() for SPOG
Hand-written extension methods in the mixins bypass the generated
per-call header logic. On SPOG hosts, requests without
X-Databricks-Org-Id are rejected by the proxy with:
Error: Unable to load OAuth Config (400 UNKNOWN)
Generated service methods (e.g. WorkspaceImpl.export/importContent,
SharesImpl.* generated endpoints) already set this header when
cfg.workspaceId is populated. This change brings the hand-written
SharesExtImpl.list() in line.
Ports databricks/databricks-sdk-go#1635. The other two fixes from
databricks/databricks-sdk-py#1397 do not apply to Java:
- WorkspaceExt.upload/download: no hand-written Java equivalent; the
generated WorkspaceImpl.export()/importContent() already set the
header on every call.
- WorkspaceClient.get_workspace_id() short-circuit: Java WorkspaceClient
has no equivalent method.
Co-authored-by: Isaac1 parent 17f558c commit 35bc28a
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
0 commit comments