[bitbake-devel] [PATCH] wget.py: support for semi-colons in URL

Bystricky, Juro juro.bystricky at intel.com
Tue Jul 28 16:06:40 UTC 2015


I tested your suggestion (replacing ";" with "&" in the SRC_URI ) and in my case it did work properly.
So even if this may not solve everything, I believe this should be properly documented somewhere
as this seems to be currently the only way to use SRC_URI with semi-colons in URL.

Note that one still needs to specify the downloaded file name manually, i.e.

SRC_URI = "http://abc123.com/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47; downloadfilename=myfile.bz2"

Thanks

Juro Bystricky


> -----Original Message-----
> From: Olof Johansson [mailto:olof.johansson at axis.com]
> Sent: Tuesday, July 28, 2015 4:01 AM
> To: Bystricky, Juro; bitbake-devel at lists.openembedded.org
> Subject: Re: [bitbake-devel] [PATCH] wget.py: support for semi-colons in
> URL
> 
> Excerpts from Juro Bystricky's message of 2015-07-25 20:32:43 +0200:
> > Some URLs contain semi-colons. For example, some GIT repositories
> > support downloading snapshots using URL such as:
> >
> > "http://abc123.com/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47"
> >
> > Currently there is no way to construct SRC_URI with such URLs.
> > Bitbake uses semi-colons in SRC_URI as delimiters for various parameters.
> 
> W3C _recommends_ [1] that HTTP URL consumers treat ; in query strings as
> an &:
> 
> > We recommend that HTTP server implementors, and in particular, CGI
> > implementors support the use of ";" in place of "&" to save authors
> > the trouble of escaping "&" characters in this manner.
> 
> This means that
> 
>   http://abc123.com/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47
> 
> and
> 
>   http://abc123.com/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47
> 
> should be equivalent. I don't know how well spread this support is, or if it
> works in your case, but it's a workaround if it does at least.
> 
> 1: http://www.w3.org/TR/1999/REC-html401-
> 19991224/appendix/notes.html#h-B.2.2
> 
> --
> olof johansson


More information about the bitbake-devel mailing list