Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225041 - Unencoded space in recent bugs URLs
Summary: Unencoded space in recent bugs URLs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: High normal
Assignee: Bugzilla Admins
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-05 19:32 UTC by Harald van Dijk (RETIRED)
Modified: 2011-10-30 23:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald van Dijk (RETIRED) gentoo-dev 2008-06-05 19:32:17 UTC
From http://bugs.gentoo.org/:

<li id="todaysbugs"><a href="/buglist.cgi?query_format=advanced&chfieldfrom=2008-06-04+19:28&chfieldto=2008-06-05 19:28&chfield=%5BBug+creation%5D&order=bugs.bug_id">View Bugs Reported in the last 24 hours</a></li>
<li id="todaysbugs"><a href="/buglist.cgi?query_format=advanced&chfieldfrom=2008-06-05+07:28&chfieldto=2008-06-05 19:28&chfield=%5BBug+creation%5D&order=bugs.bug_id">View Bugs Reported in the last 12 hours</a></li>

Do you see how the chfieldfrom date and time are separated by +, while the chfieldto date and time are separated by a space? Could you please make it a plus for both? It's invalid and breaks dillo, which instead of inserting %20 just drops the space, causing bugzie to report that the date string is invalid.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-20 21:18:08 UTC
The HTML contains this presently:

	<li id="todaysbugs"><a href="/buglist.cgi?query_format=advanced&chfieldfrom=2008-08-19+21:17&chfieldto=2008-08-20 21:17&chfield=%5BBug+creation%5D&order=bugs.bug_id">View Bugs Reported in the last 24 hours</a></li>

I think your browser may have been mucking it up.
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2008-08-20 21:59:19 UTC
"chfieldto=2008-08-20 21:17" is the problem... That's an unencoded space in the URL right there, which is invalid. It's not a browser bug, though it is unusual browser behaviour.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-20 22:26:38 UTC
test again, make sure you refresh.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-20 22:27:10 UTC
That's the source for the block:

  [% USE date %]
  [% dn = date.now %]
  [% d24ago = dn - 3600*24 %]
  [% d12ago = dn - 3600*12 %]
  [% tn = date.format(dn, '%Y-%m-%d+%H:%M') %]
  [% t24ago = date.format(d24ago, '%Y-%m-%d+%H:%M') %]
  [% t12ago = date.format(d12ago, '%Y-%m-%d+%H:%M') %]
        <li id="todaysbugs"><a href="/buglist.cgi?query_format=advanced&chfieldfrom=[% t24ago %]&chfieldto=[% tn %]&chfield=%5BBug+creation%5D&order=bugs.bug_id">View Bugs Reported in the last 24 hours</a></li>
        <li id="todaysbugs"><a href="/buglist.cgi?query_format=advanced&chfieldfrom=[% t12ago %]&chfieldto=[% tn %]&chfield=%5BBug+creation%5D&order=bugs.bug_id">View Bugs Reported in the last 12 hours</a></li>
Comment 5 Harald van Dijk (RETIRED) gentoo-dev 2008-08-20 22:47:26 UTC
Thanks, looking good now. Nice to be able to see that bug list in dillo :)