Commit a1d7874
authored
fix: Add IPV4 Range Filtering for Backblaze B2 API Integration (#1467)
Currently the B2 Native API only supports IPV4 and Facebook requires
IPV6. This change forces an IPV4 DNS resolution when looking up the B2
Authorize endpoint DNS.
This change was tested locally by running the BackblazeIntegrationTest
while setting `java.net.preferIPv6Addresses=true`
```
BUILD SUCCESSFUL in 1s
24 actionable tasks: 2 executed, 22 up-to-date
INFO 2025-07-25T12:07:22.601918-05:00 Region extracted from s3ApiUrl: us-east-005
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
DEBUG 2025-07-25T12:07:22.961639-05:00 Uploading 'test-upload-1753463242960' with file size 14 bytes
```1 parent 35e9dab commit a1d7874
2 files changed
Lines changed: 29 additions & 1 deletion
File tree
- extensions/data-transfer/portability-data-transfer-backblaze/src/main/java/org/datatransferproject/datatransfer/backblaze/common
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments