Skip to content

bb.fetch2.URI class fixes

Olof Johansson bitbake-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5fetch2.URI: Coerce urlparse to use netloc for all schemeslib/bb/fetch2/__init__.py+15 -60 replies
2/5tests.fetch: Remove debug assertlib/bb/tests/fetch.py+0 -20 replies
3/5fetch2.URI: add support for query parameterslib/bb/fetch2/__init__.py lib/bb/tests/fetch.py+53 -150 replies
4/5fetch2.URI: Support URIs with both query strings and paramslib/bb/fetch2/__init__.py lib/bb/tests/fetch.py+23 -110 replies
5/5fetch2.URI: Set username/password should not change the otherlib/bb/fetch2/__init__.py lib/bb/tests/fetch.py+17 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] bb.fetch2.URI class fixes

During ELC, RP reverted the change where the encode- and decodeurl were replaced with wrappers around the URI class because of build failures in some corner cases. The cause of that issue was my failure to take query strings in to account, and that should now be solved.

This patch serie also includes some minor bug fixes to the URI class.

On a last note, if you know of any weird/complex/unconventional URLs in use somewhere, please let me know, and I'll add them to the unit tests to make sure they are parsed ok.

Olof Johansson (5):
fetch2.URI: Coerce urlparse to use netloc for all schemes tests.fetch: Remove debug assert
fetch2.URI: add support for query parameters fetch2.URI: Support URIs with both query strings and params fetch2.URI: Set username/password should not change the other

 lib/bb/fetch2/__init__.py |   80 ++++++++++++++++++++++++++-------------------
 lib/bb/tests/fetch.py     |   62 ++++++++++++++++++++++++++++++++++-
 2 files changed, 107 insertions(+), 35 deletions(-)
Signature · 1 line
1.7.10.4