<?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>8054</bug_id>
          
          <creation_ts>2015-07-27 13:44:27 +0000</creation_ts>
          <short_desc>libtoaster build AJAX POST request returns HTML instead of JSON</short_desc>
          <delta_ts>2015-09-03 10:46:07 +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>1.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Damian">alexandru.damian</reporter>
          <assigned_to name="Elliot Smith">elliot.smith</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</cc>
          
          <qa_contact name="Alexandru Roman">alexandru.costinx.roman</qa_contact>
          <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>52625</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-07-27 13:44:27 +0000</bug_when>
    <thetext>The libtoaster build post request needs to get JSON data instead of the HTML, but the POST to build/ issues a redirect to a GET that returns HTML.

The AJAX calls need to specify &quot;format=json&quot; URL parameter as to make sure that the data is returned in a format that is understood by the javascript code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52626</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-07-27 13:45:25 +0000</bug_when>
    <thetext>Patch submitted for review:

https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=adamian/20150727_bug_fixes_review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53618</commentid>
    <comment_count>2</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2015-09-02 10:34:16 +0000</bug_when>
    <thetext>I don&apos;t think this patch or bug are relevant any more, as the button for starting a build ignores the return value anyway. It doesn&apos;t make any difference if you change the parameter to &quot;format=json&quot; or not.

I suggest closing this (though I&apos;m not sure what status to assign; &quot;RESOLVED&quot;?).

However, there are parts of the original branch (adamian/20150727_bug_fixes_review) which don&apos;t relate to this bug, which I&apos;ve separated into two other branches:

1. elliot/submit/adamian/hide_builds-8236 - This hides &quot;in progress&quot; builds on the &quot;all builds&quot; and &quot;project builds&quot; pages; I&apos;ll submit it separately.

2. elliot/toaster/alex-leftovers - Bits and pieces of refactoring and lint cleanup. I think we should raise separate issues for this kind of work, rather than mixing it into a branch which fixes bugs. I will just park this for now, as I&apos;m not sure how valuable it is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53621</commentid>
    <comment_count>3</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2015-09-02 11:00:05 +0000</bug_when>
    <thetext>The part of the branch which fixes this bug (isolated in elliot/submit/adamian/json_post-8054) has no effect on behaviour. Closing this bug as a consequence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53664</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2015-09-03 10:46:07 +0000</bug_when>
    <thetext>Verified</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>