<?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>7577</bug_id>
          
          <creation_ts>2015-04-07 16:23:46 +0000</creation_ts>
          <short_desc>The calendar filter breaks the all builds page</short_desc>
          <delta_ts>2015-06-10 12:17:43 +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>VERIFIED</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>1.9 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="Michael Wood">michael.g.wood</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>cristina-danielax.agurida</cc>
    
    <cc>jessica.zhang</cc>
          
          <qa_contact name="Cristina Agurida">cristina-danielax.agurida</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>50127</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2015-04-07 16:23:46 +0000</bug_when>
    <thetext>When I try to use the &quot;Build date range&quot; option in the all builds page, I get the error below.

Environment:


Request Method: GET
Request URL: http://192.168.2.39:8000/toastergui/builds/?count=10&amp;orderby=completed_on%3A-&amp;search=&amp;last_date_from=07%2F04%2F2015&amp;date_from_updated=01%2F04%2F2015&amp;filter=daterange&amp;date_to_updated=02%2F04%2F2015&amp;last_date_to=07%2F04%2F2015&amp;page=1

Django Version: 1.6
Python Version: 2.7.6
Installed Applications:
(&apos;django.contrib.auth&apos;,
 &apos;django.contrib.contenttypes&apos;,
 &apos;django.contrib.messages&apos;,
 &apos;django.contrib.sessions&apos;,
 &apos;django.contrib.admin&apos;,
 &apos;django.contrib.staticfiles&apos;,
 &apos;django.contrib.humanize&apos;,
 &apos;orm&apos;,
 &apos;toastermain&apos;,
 &apos;south&apos;,
 &apos;bldcontrol&apos;,
 &apos;bldviewer&apos;,
 &apos;toastergui&apos;)
Installed Middleware:
(&apos;django.middleware.common.CommonMiddleware&apos;,
 &apos;django.contrib.sessions.middleware.SessionMiddleware&apos;,
 &apos;django.middleware.csrf.CsrfViewMiddleware&apos;,
 &apos;django.contrib.auth.middleware.AuthenticationMiddleware&apos;,
 &apos;django.contrib.messages.middleware.MessageMiddleware&apos;)


Traceback:
File &quot;/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py&quot; in get_response
  114.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File &quot;/home/yocto/master/bitbake/lib/toaster/toastergui/views.py&quot; in builds
  1891.             context, pagesize, orderby = _build_list_helper(request, buildrequests, True)
File &quot;/home/yocto/master/bitbake/lib/toaster/toastergui/views.py&quot; in _build_list_helper
  1935.         (filter_string, search_term, ordering_string) = _search_tuple(request, BuildRequest)
File &quot;/home/yocto/master/bitbake/lib/toaster/toastergui/views.py&quot; in _search_tuple
  233.         raise BaseException(&quot;Invalid filter &quot; + str(invalid))

Exception Type: BaseException at /toastergui/builds/
Exception Value: Invalid filter We have an invalid number of separators: daterange -&gt; [u&apos;daterange&apos;]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50129</commentid>
    <comment_count>1</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2015-04-07 16:30:24 +0000</bug_when>
    <thetext>I can only reproduce this on Chrome, by the way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50890</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2015-05-11 09:43:21 +0000</bug_when>
    <thetext>
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1fe445d0b5d345a7b0fc490441abcd50d260a682</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51612</commentid>
    <comment_count>3</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2015-06-10 12:17:43 +0000</bug_when>
    <thetext>Verified on master: 926de56da9469e3d4ea8349d8e7c9777ae6f93c1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>