Commit 1b857d4
committed
fix(storage): replace retired azure-storage-blob with maintained azure-blob
The azure-storage-blob / azure-storage-common gems were retired by Microsoft
on 13 Sep 2024 and are unmaintained. They also forced a manual `cgi ~> 0.5.1`
pin under Ruby 4.0 (azure-storage-common needs CGI.parse, which Ruby 4.0's
stripped stdlib omits and Rails 8 no longer pulls in transitively).
Swap to testdouble/azure-blob, a maintained drop-in Active Storage adapter:
- Gemfile: azure-storage-blob -> azure-blob; drop the now-redundant cgi pin
(azure-blob declares cgi as a dependency, so the full library resolves again).
- config/storage.yml: microsoft service AzureStorage -> AzureBlob.
- Rewrite the signing regression guard to exercise the AzureBlob Active Storage
service (offline URL signing for download + direct upload), replacing the old
azure-storage-common internal-class assertions.
Same Azure account / container / keys, so no data migration or infra change.
Closes #70941 parent 8e893b1 commit 1b857d4
4 files changed
Lines changed: 48 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
103 | 98 | | |
104 | 99 | | |
105 | 100 | | |
| |||
237 | 232 | | |
238 | 233 | | |
239 | 234 | | |
240 | | - | |
241 | | - | |
242 | 235 | | |
243 | 236 | | |
244 | 237 | | |
| |||
342 | 335 | | |
343 | 336 | | |
344 | 337 | | |
345 | | - | |
346 | 338 | | |
347 | 339 | | |
348 | 340 | | |
349 | 341 | | |
350 | 342 | | |
351 | 343 | | |
352 | | - | |
353 | | - | |
354 | 344 | | |
355 | 345 | | |
356 | 346 | | |
| |||
361 | 351 | | |
362 | 352 | | |
363 | 353 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | 354 | | |
368 | 355 | | |
369 | 356 | | |
| |||
709 | 696 | | |
710 | 697 | | |
711 | 698 | | |
712 | | - | |
713 | 699 | | |
714 | 700 | | |
715 | 701 | | |
| |||
719 | 705 | | |
720 | 706 | | |
721 | 707 | | |
722 | | - | |
| 708 | + | |
723 | 709 | | |
724 | 710 | | |
725 | 711 | | |
| |||
729 | 715 | | |
730 | 716 | | |
731 | 717 | | |
732 | | - | |
733 | 718 | | |
734 | 719 | | |
735 | 720 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | | - | |
14 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
28 | 40 | | |
29 | 41 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
38 | 53 | | |
39 | 54 | | |
0 commit comments