Re: [Trac] max_daysback parameter in trac.ini

Jun Omae <[email protected]> Thu, 25 Dec 2025 02:59:12 +0900
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <CAEVLMagQUh96etrfbx5Uq55yhc+HZPb-9iyTJ4q2_Oe9xC+Vzw@mail.gmail.com>
--0000000000009a4e470646b66b1f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,

It seems that the issue is introduced in Trac 1.2,
https://github.com/edgewall/trac/commit/7180d2f87a961161a09551da60e0deed6b8=
6441a

I'll fix it later. Thanks for the reporting!


Jun Omae <[email protected]> (=E5=A4=A7=E5=89=8D =E6=BD=A4)


On Thu, Dec 25, 2025 at 2:23 Mama 4903 <[email protected]> wrote:

> I would like to set the value of the `max_daysback` parameter to -1 to
> have unlimited daysback, but it seems this is impossible in the code
> because of the line:
>
> `daysback =3D req.args.as_int('daysback', default, min=3D1,
> max=3Dself.max_daysback)`
>
> Even if `max_daysback` is -1, the maximum allowed value for `daysback`
> will be -1. However, the minimum value is fixed at 1 (`min=3D1`), so
> `daysback` can never be greater than -1, making it impossible to select a
> value greater than 1.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> To view this discussion visit
> https://groups.google.com/d/msgid/trac-users/41c4a313-9666-4f23-a913-ff1c=
b50f094fn%40googlegroups.com
> <https://groups.google.com/d/msgid/trac-users/41c4a313-9666-4f23-a913-ff1=
cb50f094fn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>
> .
>

--=20
You received this message because you are subscribed to the Google Groups "=
Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion visit https://groups.google.com/d/msgid/trac-users/=
CAEVLMagQUh96etrfbx5Uq55yhc%2BHZPb-9iyTJ4q2_Oe9xC%2BVzw%40mail.gmail.com.

--0000000000009a4e470646b66b1f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Hi,</div><div dir=3D"auto"><br></div><div dir=3D"auto">It=
 seems that the issue is introduced in Trac 1.2,</div><div dir=3D"auto" sty=
le=3D"border-color:rgb(0,0,0)!important"><div style=3D"border-color:rgb(0,0=
,0)!important"><a href=3D"https://github.com/edgewall/trac/commit/7180d2f87=
a961161a09551da60e0deed6b86441a">https://github.com/edgewall/trac/commit/71=
80d2f87a961161a09551da60e0deed6b86441a</a></div><div dir=3D"auto"><br></div=
>I&#39;ll fix it later. Thanks for the reporting!</div><div dir=3D"auto"><b=
r clear=3D"all"><br clear=3D"all"><div dir=3D"auto"><div dir=3D"ltr" class=
=3D"gmail_signature" data-smartmail=3D"gmail_signature">Jun Omae &lt;<a hre=
f=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt; =
(=E5=A4=A7=E5=89=8D =E6=BD=A4)</div></div></div><div><br></div><div><br><di=
v class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gma=
il_attr">On Thu, Dec 25, 2025 at 2:23 Mama 4903 &lt;<a href=3D"mailto:mael.=
[email protected]">[email protected]</a>&gt; wrote:<br></div=
><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border=
-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:=
rgb(204,204,204)">I would like to set the value of the `max_daysback` param=
eter to -1 to have unlimited daysback, but it seems this is impossible in t=
he code because of the line:=C2=A0<div><br>`daysback =3D req.args.as_int(&#=
39;daysback&#39;, default, min=3D1, max=3Dself.max_daysback)`<div><br>Even =
if `max_daysback` is -1, the maximum allowed value for `daysback` will be -=
1. However, the minimum value is fixed at 1 (`min=3D1`), so `daysback` can =
never be greater than -1, making it impossible to select a value greater th=
an 1.</div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;Trac Users&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:trac-users+unsubscribe-/[email protected]" target=
=3D"_blank">trac-users+unsubscribe-/[email protected]</a>.<br>
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
trac-users/41c4a313-9666-4f23-a913-ff1cb50f094fn%40googlegroups.com?utm_med=
ium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank">https://groups.googl=
e.com/d/msgid/trac-users/41c4a313-9666-4f23-a913-ff1cb50f094fn%40googlegrou=
ps.com</a>.<br>
</blockquote></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Trac Users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:trac-users+unsubscribe-/[email protected]">trac-use=
rs+unsubscribe-/[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
trac-users/CAEVLMagQUh96etrfbx5Uq55yhc%2BHZPb-9iyTJ4q2_Oe9xC%2BVzw%40mail.g=
mail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/=
d/msgid/trac-users/CAEVLMagQUh96etrfbx5Uq55yhc%2BHZPb-9iyTJ4q2_Oe9xC%2BVzw%=
40mail.gmail.com</a>.<br />

--0000000000009a4e470646b66b1f--