Skip to content

bundle-uri: do not die on unresolvable relative URIs

Aniket Gupta git 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesIn review
  2. v33 patches 9 repliesSuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch2 repliesSuperseded

Changes in v4 from the cover letter

* Patch 2: dropped the part that hides credentials as Stolee was not convinced it is needed. The part that names the URL that was passed in stays, as Patrick wanted. The patch has a new title and its test no longer uses a password.

* Patch 3: fixed the commit message. Previously it said that the clone carries on with the other bundles. That is true only for a list that a server advertises only for the bundles before the bad entry. A list given to --bundle-uri is rejected as a whole. In both cases, the clone fetches the rest from the remote. No code change.

* Rebased onto current master, no conflicts.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3remote: add relative_url_gently()remote.c remote.h+36 -60 replies
2/3remote: name the original URL when relative_url() failsremote.c t/t0060-path-utils.sh+10 -10 replies
3/3bundle-uri: do not die on unresolvable relative URIsbundle-uri.c t/t5750-bundle-uri-parse.sh+16 -92 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] bundle-uri: do not die on unresolvable relative URIs

A bundle list can contain a relative URI that cannot be resolved and one such entry can result in the entire clone dying. This series lets the bundle code report it and the clone carry on.

Changes since v3:

* Patch 2: dropped the part that hides credentials as Stolee was not convinced it is needed. The part that names the URL that was passed in stays, as Patrick wanted. The patch has a new title and its test no longer uses a password.

* Patch 3: fixed the commit message. Previously it said that the clone carries on with the other bundles. That is true only for a list that a server advertises only for the bundles before the bad entry. A list given to --bundle-uri is rejected as a whole. In both cases, the clone fetches the rest from the remote. No code change.

* Rebased onto current master, no conflicts.

Stolee's idea of having a toggle to bring back the die() is not part of this series. Happy to take that as a follow-up :)

This conflicts a bit with tb/config-null-values in next, which adds a "!value" check in bundle_list_update() right above the line that patch 3 changes. Keeping both is enough, "!value" check first. I tested that merge (t0060, t5558, t5750).

Aniket Gupta (3):
remote: add relative_url_gently()
remote: name the original URL when relative_url() fails
bundle-uri: do not die on unresolvable relative URIs

 bundle-uri.c                | 10 +++++++++-
 remote.c                    | 34 ++++++++++++++++++++++++++++------
 remote.h                    |  8 ++++++++
 t/t0060-path-utils.sh       |  9 +++++++++
 t/t5750-bundle-uri-parse.sh | 15 +++++++--------
 5 files changed, 61 insertions(+), 15 deletions(-)

base-commit: f7de81456940dd6f3274e461149bba12965de609

Signature · 1 line
2.54.0 (Apple Git-157)