Commit 4dcb267
authored
sa: Fix modelToOrder to populate V2Authorizations from Authzs column (#8514)
In 978877a35 ("Store
authzIDs directly in order table"), the modelToOrder function was
updated to decode the new Authzs protobuf column, but the decoded values
were never assigned to the order's V2Authorizations field. This caused
the StoreAuthzsInOrders feature to not work correctly for reads.
The bug meant that even with StoreAuthzsInOrders enabled:
1. Reads always fell back to querying the orderToAuthz2 table
2. The Authzs blob was parsed but the result was discarded
3. Eventually dropping orderToAuthz2 would break all order reads
The fix assigns the decoded authz IDs to V2Authorizations, allowing
orders with the new column populated to skip the fallback query.
Also adds TestModelToOrderAuthzs to verify the fix and prevent
regression.1 parent 16cfacd commit 4dcb267
2 files changed
+42
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
367 | 368 | | |
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| 374 | + | |
373 | 375 | | |
374 | 376 | | |
375 | 377 | | |
| |||
380 | 382 | | |
381 | 383 | | |
382 | 384 | | |
| 385 | + | |
383 | 386 | | |
384 | 387 | | |
385 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
226 | 265 | | |
227 | 266 | | |
228 | 267 | | |
| |||
0 commit comments