<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8645</bug_id>
          
          <creation_ts>2015-11-04 20:54:24 +0000</creation_ts>
          <short_desc>fetch.decodeurl throws exception with trailing ; in URL</short_desc>
          <delta_ts>2015-11-17 17:28:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>2.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56211</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-11-04 20:54:24 +0000</bug_when>
    <thetext>File: &apos;do_checkpkg&apos;, lineno: 15, function: do_checkpkg
     0011:
     0012:        &quot;&quot;&quot;first check whether a uri is provided&quot;&quot;&quot;
     0013:        src_uri = d.getVar(&apos;SRC_URI&apos;, True)
     0014:        if src_uri:
 *** 0015:            uri_type, _, _, _, _, _ = decodeurl(src_uri)
     0016:        else:
     0017:            uri_type = &quot;none&quot;
     0018:
     0019:        &quot;&quot;&quot;initialize log files.&quot;&quot;&quot;
File: &apos;/home/ross/Yocto/poky/bitbake/lib/bb/fetch2/__init__.py&apos;, lineno: 397, function: decodeurl
     0393:    if parm:
     0394:        for s in parm.split(&apos;;&apos;):
     0395:            if s:
     0396:                if not &apos;=&apos; in s:
 *** 0397:                    raise MalformedUrl(url, &quot;The URL: &apos;%s&apos; is invalid: parameter %s does not specify a value (missing &apos;=&apos;)&quot; % (url, s))
     0398:                s1, s2 = s.split(&apos;=&apos;)
     0399:                p[s1] = s2
     0400:
     0401:    return type, host, urllib.unquote(path), user, pswd, p
Exception: MalformedUrl: The URL: &apos;git://git.yoctoproject.org/linux-yocto-4.1.git;name=machine;branch=standard/base;            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.1;destsuffix=kernel-meta&apos; is invalid: parameter             git://git.yoctoproject.org/yocto-kernel-cache does not specify a value (missing &apos;=&apos;)

(running checkpkg on linux-yocto-4.1)

Looks like the trailing ; in the first URL confused the parser?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56240</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-11-05 16:23:15 +0000</bug_when>
    <thetext>I have a patch here for this issue sitting on a branch from 2013 (!) that I neglected to send, so this should be easy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56281</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-11-06 12:15:52 +0000</bug_when>
    <thetext>Actually this isn&apos;t what I thought it was - it&apos;s actually caused by the function in question within distrodata.bbclass not splitting SRC_URI. I&apos;ll send a patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56557</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-11-17 17:28:34 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=fd6bf771d0fa5cd1662ad51d3ae467fe75e7e801</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>