You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ponymail.apache.org by Craig Russell <ap...@gmail.com> on 2022/03/22 03:04:52 UTC

URL without trailing colon

Hi,

During a recent discussion, there was a URL posted that was intended to display a 5 year time range:

https://lists.apache.org/list?members-notify@apache.org:lte=5y

But this URL displays a one month time range. Instead, this URL displays 5 years:

https://lists.apache.org/list?members-notify@apache.org:lte=5y:

I'm curious whether the trailing colon is really a good idea, considering that there is no ambiguity about what the user wants? I do understand that if there are several search terms, the terms need to be separated, but if there is only one search term why is it needed?

Thanks,
Craig

Craig L Russell
clr@apache.org


Re: URL without trailing colon

Posted by Craig Russell <ap...@gmail.com>.
Hi Daniel,

Thanks for following up. I tested your fix before I knew about it and it seems to work fine.

Craig

> On Mar 26, 2022, at 12:49 PM, Daniel Gruno <hu...@apache.org> wrote:
> 
> On 22/03/2022 04.04, Craig Russell wrote:
>> Hi,
>> During a recent discussion, there was a URL posted that was intended to display a 5 year time range:
>> https://lists.apache.org/list?members-notify@apache.org:lte=5y
>> But this URL displays a one month time range. Instead, this URL displays 5 years:
>> https://lists.apache.org/list?members-notify@apache.org:lte=5y:
>> I'm curious whether the trailing colon is really a good idea, considering that there is no ambiguity about what the user wants? I do understand that if there are several search terms, the terms need to be separated, but if there is only one search term why is it needed?
> 
> Hi Craig,
> I addressed this in 952d7f7, so it assumes "empty search string" when the colon is missing and correctly performs a date search.
> 
> HTH.
> 
>> Thanks,
>> Craig
>> Craig L Russell
>> clr@apache.org
> 

Craig L Russell
javadog.clr@gmail.com
1220 University Ave
San Jose, CA 95126






Re: URL without trailing colon

Posted by Daniel Gruno <hu...@apache.org>.
On 22/03/2022 04.04, Craig Russell wrote:
> Hi,
> 
> During a recent discussion, there was a URL posted that was intended to display a 5 year time range:
> 
> https://lists.apache.org/list?members-notify@apache.org:lte=5y
> 
> But this URL displays a one month time range. Instead, this URL displays 5 years:
> 
> https://lists.apache.org/list?members-notify@apache.org:lte=5y:
> 
> I'm curious whether the trailing colon is really a good idea, considering that there is no ambiguity about what the user wants? I do understand that if there are several search terms, the terms need to be separated, but if there is only one search term why is it needed?

Hi Craig,
I addressed this in 952d7f7, so it assumes "empty search string" when 
the colon is missing and correctly performs a date search.

HTH.

> 
> Thanks,
> Craig
> 
> Craig L Russell
> clr@apache.org
>