Commit 8aec189
committed
computer: reject an empty workspace artifacts session id
The artifacts wrapper rejects an empty session id so a blank value
cannot quietly turn one tenant's client into a client over every
repository in the namespace. The Workspace path read an empty id as
an absent one instead, which walked around that check: a caller
deriving the session id from an unset variable or a missing request
field got the namespace-wide client rather than an error.
An empty id now reaches the wrapper and fails there, as it did
before the session id became optional. Omitting the id, or passing
null, remains the way to ask for a client over the whole namespace.1 parent a4ab816 commit 8aec189
3 files changed
Lines changed: 40 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
316 | 322 | | |
317 | 323 | | |
318 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
820 | 841 | | |
821 | 842 | | |
822 | 843 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
186 | 191 | | |
187 | 192 | | |
188 | 193 | | |
| |||
1335 | 1340 | | |
1336 | 1341 | | |
1337 | 1342 | | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
1343 | 1349 | | |
1344 | 1350 | | |
1345 | 1351 | | |
1346 | 1352 | | |
1347 | | - | |
| 1353 | + | |
1348 | 1354 | | |
1349 | 1355 | | |
1350 | 1356 | | |
| |||
0 commit comments