<?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>11213</bug_id>
          
          <creation_ts>2017-03-22 15:21:32 +0000</creation_ts>
          <short_desc>Cannot add layers in Machine page</short_desc>
          <delta_ts>2017-04-28 17:35:16 +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>Toaster</product>
          <component>toaster</component>
          <version>unspecified</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>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="BogDan Vatra">bogdan</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>libertad.gonzalez.de.la.cruz</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Libertad">libertad.gonzalez.de.la.cruz</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71577</commentid>
    <comment_count>0</comment_count>
    <who name="BogDan Vatra">bogdan</who>
    <bug_when>2017-03-22 15:21:32 +0000</bug_when>
    <thetext>Toaster doesn&apos;t work anymore on master branch (I tested sha1: 49c2df5652d25e6e9b2a4976658ab9bb17fe6694). 
It doesn&apos;t create a build folder for new projects and I can&apos;t add anything to that project (e.g. I can&apos;t add a layer or select a different machine).

Steps to reproduce:
$ git clone git://git.yoctoproject.org/poky.git
$ cd poky
$ . oe-init-build-env
$ . toaster start
- open http://localhost:8000 in your browser
- create a new project (e.g. rpi3)
- use &quot;Yocto Project Master branch&quot;.
- trying to change the machine to &quot;raspberrypi3&quot; by adding &quot;meta-raspberrypi&quot; layer fails. Clicking on &quot;Add layer&quot; button does nothing.
- I tried to use the &quot;Layers&quot; section (from top left) to add &quot;meta-raspberrypi&quot; layer manually, but again I failed.

My *hunch* is that all this problems are caused the fact that there is no &quot;build-xxxxx&quot; folder when I create a new project.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71674</commentid>
    <comment_count>1</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-03-24 07:07:21 +0000</bug_when>
    <thetext>I find that I can add layers via the &quot;Layer&quot; page and the &quot;Software recipes&quot; page, but not the &quot;Machine&quot; page, so that narrows the problem a bit. 

This indicated a temporary workaround, where I could add the &quot;meta-raspberrypi&quot; layer directly, which then allowed me to select the raspberry-pi Machine.

There are no obvious errors in the UI log nor the Toaster shell, unfortunately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71675</commentid>
    <comment_count>2</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-03-24 07:18:29 +0000</bug_when>
    <thetext>Hmm, and building &quot;quilt-native&quot; returns these bitbake error, which may be a problem in the core and not Toaster per se.

vvvvvvvvvvvvvvvvvvvv
Error executing a python function in &lt;code&gt;:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;&lt;code&gt;&apos;, lineno: 4, function: &lt;module&gt;
     0001:__anon_22__opt_dreyna_toaster_newer_poky__toaster_clones__git___git_yoctoproject_org_poky_master_meta_conf_machine_include_arm_feature_arm_thumb_inc(d)
     0002:__anon_25__opt_dreyna_toaster_newer_poky__toaster_clones__git___git_yoctoproject_org_poky_master_meta_classes_patch_bbclass(d)
     0003:__anon_167__opt_dreyna_toaster_newer_poky__toaster_clones__git___git_yoctoproject_org_poky_master_meta_classes_base_bbclass(d)
 *** 0004:__anon_679__opt_dreyna_toaster_newer_poky__toaster_clones__git___git_yoctoproject_org_poky_master_meta_classes_base_bbclass(d)
     0005:__anon_1352__opt_dreyna_toaster_newer_poky__toaster_clones__git___git_yoctoproject_org_poky_master_meta_classes_insane_bbclass(d)
     0006:__anon_250__opt_dreyna_toaster_newer_poky__toaster_clones__git___git_yoctoproject_org_poky_master_meta_classes_package_bbclass(d)
     0007:__anon_708__opt_dreyna_toaster_newer_poky__toaster_clones__git___git_yoctoproject_org_poky_master_meta_classes_package_rpm_bbclass(d)
     0008:__anon_25__opt_dreyna_toaster_newer_poky__toaster_clones__git___git_yoctoproject_org_poky_master_meta_classes_debian_bbclass(d)
File: &apos;/opt/dreyna/toaster_newer/poky/_toaster_clones/_git___git.yoctoproject.org_poky_master/meta/classes/base.bbclass&apos;, lineno: 580, function: __anon_679__opt_dreyna_toaster_newer_poky__toaster_clones__git___git_yoctoproject_org_poky_master_meta_classes_base_bbclass
     0576:    needsrcrev = False
     0577:    srcuri = d.getVar(&apos;SRC_URI&apos;)
     0578:    for uri in srcuri.split():
     0579:        (scheme, _ , path) = bb.fetch.decodeurl(uri)[:3]
 *** 0580:
     0581:        # HTTP/FTP use the wget fetcher
     0582:        if scheme in (&quot;http&quot;, &quot;https&quot;, &quot;ftp&quot;):
     0583:            d.appendVarFlag(&apos;do_fetch&apos;, &apos;depends&apos;, &apos; wget-native:do_populate_sysroot&apos;)
     0584:
File: &apos;/opt/dreyna/toaster_newer/poky/_toaster_clones/_git___git.yoctoproject.org_poky_master/bitbake/lib/bb/fetch2/__init__.py&apos;, lineno: 360, function: decodeurl
     0356:    &quot;&quot;&quot;
     0357:
     0358:    m = re.compile(&apos;(?P&lt;type&gt;[^:]*)://((?P&lt;user&gt;[^/;]+)@)?(?P&lt;location&gt;[^;]+)(;(?P&lt;parm&gt;.*))?&apos;).match(url)
     0359:    if not m:
 *** 0360:        raise MalformedUrl(url)
     0361:
     0362:    type = m.group(&apos;type&apos;)
     0363:    location = m.group(&apos;location&apos;)
     0364:    if not location:
Exception: bb.fetch2.MalformedUrl: The URL: &apos;${LINUX_GIT_URI}/${LINUX_GIT_PREFIX}${LINUX_GIT_REPO};branch=${LINUX_GIT_SRCREV};protocol=${LINUX_GIT_PROTOCOL}&apos; is invalid and cannot be interpreted
^^^^^^^^^^^^^^^^^^^</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71676</commentid>
    <comment_count>3</comment_count>
    <who name="BogDan Vatra">bogdan</who>
    <bug_when>2017-03-24 08:00:39 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I find that I can add layers via the &quot;Layer&quot; page and the &quot;Software recipes&quot;
&gt; page, but not the &quot;Machine&quot; page, so that narrows the problem a bit. 
&gt; 
&gt; This indicated a temporary workaround, where I could add the
&gt; &quot;meta-raspberrypi&quot; layer directly, which then allowed me to select the
&gt; raspberry-pi Machine.
&gt; 
&gt; There are no obvious errors in the UI log nor the Toaster shell,
&gt; unfortunately.

Strangely it doesn&apos;t work using Chrome 57.0.2987.110 (64-bit) but it works using firefox ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71847</commentid>
    <comment_count>4</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-03-29 05:03:55 +0000</bug_when>
    <thetext>This fails for me on my Firefox 64-bit, both Linux and Windows.

The problem is the fact in this page the data &quot;layer&quot; is not being interpreted as an object, which leads to the exception &quot;uncaught exception: xhrLayerUrl is undefined&quot;, as opposed to the Layers page.

The code looks the same except that the class &quot;layerbtn&quot; is missing in the failing code&apos;s aref.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72119</commentid>
    <comment_count>5</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-04-05 23:50:02 +0000</bug_when>
    <thetext>There were format errors in &quot;machine_btn.html&quot; that broke the object. Patch being submitted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72361</commentid>
    <comment_count>6</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-04-11 23:57:21 +0000</bug_when>
    <thetext>commit 2a40a0587e64a4bdf2ed64c4b84f0d6f4d602d7c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>