[Pulp-dev] pulp_rpm and The Pitfalls of urljoin()

Grant Gainey ggainey at redhat.com
Mon Mar 15 21:00:01 UTC 2021

On Mon, Mar 15, 2021 at 4:42 PM David Davis <daviddavis at redhat.com> wrote:

> I've been bitten by this a couple times. I also noticed that ansible
> actually defines its own version of urljoin:
> https://github.com/ansible/ansible/blob/00bd0b893d5d21de040b53032c466707bacb3b93/lib/ansible/galaxy/api.py#L166-L167

"I have an arbitrary number of path-fragments, any of which may or may not
begin and/or end with '/', that need to be joined, and end, with a single
slash". Am I reading it correctly?


(who was of course Not At All thinking of writing something pretty much
exactly that...)
Grant Gainey
Principal Software Engineer, Red Hat System Management Engineering
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20210315/0259e1f8/attachment.htm>

More information about the Pulp-dev mailing list