<?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>11930</bug_id>
          
          <creation_ts>2017-08-14 21:38:59 +0000</creation_ts>
          <short_desc>Gateway timeout error searching for recipes without keyword</short_desc>
          <delta_ts>2017-12-06 17:29:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Layer Index</product>
          <component>Layer Index</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>normal</bug_severity>
          <target_milestone>2.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Amanda Brindle">amanda.r.brindle</assigned_to>
          <cc>brian.avery</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>75843</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-08-14 21:38:59 +0000</bug_when>
    <thetext>If you go to http://layers.openembedded.org , click on Recipes and then hit Search without entering a keyword, it&apos;s theoretically supposed to let you browse through the entire list of recipes, but instead after a minute or so you get a &quot;502 Bad gateway&quot; error. I suspect that the query is now taking too long and exceeds the time allowed by the caching proxy.

We could try to optimise the query so it&apos;s faster, but as the list is extremely long and not practically browsable, I suspect the easiest thing to do is simply require the user to enter a keyword for the recipe search. We should do that with javascript so you don&apos;t have to wait for the page to submit. See how we handle mandatory fields on the layer submission page for the HTML/CSS part of this.

Note: the machine / distro search pages don&apos;t suffer from this issue, and there it is actually useful to be able to browse through the whole list, though it has been pointed out that having to know that you can click on Search without a keyword to browse the list is poor design. We should take this opportunity to add a browse button next to the search button on those pages that explicitly returns all results and solve that problem as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78517</commentid>
    <comment_count>1</comment_count>
    <who name="Amanda Brindle">amanda.r.brindle</who>
    <bug_when>2017-12-05 18:00:39 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/layerindex-web/commit/?id=a64bfed81b3827503ff825090f1fb4b94e1cd9bd</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>