Commit 698da7e
Avoid merging URLs in HttpUtils (bazelbuild#14954)
`mergeUrls` does not need to rebuild the URL from scratch if user information exists on the original URL. This behavior can actually break the 302 redirect due to subtle changes in the URL/encoding and should be avoided when possible.
This fixes bazelbuild#14866 by correcting the implementation of `mergeUrls` to match the documentation that was added instead of rebuilding the URL from scratch which breaks the encoding of signed URLs.
Closes bazelbuild#14922.
PiperOrigin-RevId: 431935885
(cherry picked from commit 8cefb8b)
Co-authored-by: Benjamin Lee <[email protected]>1 parent a6a4305 commit 698da7e
2 files changed
Lines changed: 10 additions & 1 deletion
File tree
- src
- main/java/com/google/devtools/build/lib/bazel/repository/downloader
- test/java/com/google/devtools/build/lib/bazel/repository/downloader
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
142 | 152 | | |
0 commit comments