Re: [Trac] max_daysback parameter in trac.ini

Jun Omae <[email protected]> Fri, 26 Dec 2025 15:05:27 +0900
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------CDk8GF0dG2OTHgakGh0OYzv4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

The issue has been filed in https://trac.edgewall.org/ticket/13886.

On 2025/12/25 2:59, Jun Omae wrote:
> Hi,
>
> It seems that the issue is introduced in Trac 1.2,
> https://github.com/edgewall/trac/commit/7180d2f87a961161a09551da60e0deed6=
b86441a
>
> 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]> wrot=
e:
>
>     I would like to set the value of the `max_daysback` parameter to -1 t=
o have unlimited daysback, but it seems this is impossible in the code beca=
use of the line:=C2=A0
>
>     `daysback =3D req.args.as_int('daysback', default, min=3D1, max=3Dsel=
f.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 `day=
sback` can never be greater than -1, making it impossible to select a value=
 greater than 1.
>     --=20
>     You received this message because you are subscribed to the Google Gr=
oups "Trac Users" group.
>     To unsubscribe from this group and stop receiving emails from it, sen=
d 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-ff1cb50f094fn%40googlegroups.com <https://gro=
ups.google.com/d/msgid/trac-users/41c4a313-9666-4f23-a913-ff1cb50f094fn%40g=
ooglegroups.com?utm_medium=3Demail&utm_source=3Dfooter>.
>
--=20
Jun Omae <[email protected]> (=E5=A4=A7=E5=89=8D =E6=BD=A4)

--=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/=
080888a8-c695-4e11-9edc-24d485fd457f%40gmail.com.

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

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8=
">
  </head>
  <body>
    <p class=3D"moz-cite-prefix">The issue has been filed in <a
        moz-do-not-send=3D"true"
        href=3D"https://trac.edgewall.org/ticket/13886"
        class=3D"moz-txt-link-freetext">https://trac.edgewall.org/ticket/13=
886</a>.</p>
    <div class=3D"moz-cite-prefix">On 2025/12/25 2:59, Jun Omae wrote:<br>
    </div>
    <blockquote type=3D"cite"
cite=3D"mid:CAEVLMagQUh96etrfbx5Uq55yhc+HZPb-9iyTJ4q2_Oe9xC+Vzw-JsoAwUIsXotQFR93xxRIaA@public.gmane.org=
com">
      <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF=
-8">
      <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" style=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/7180d2f87a961161a09551da60e=
0deed6b86441a"
            moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">https:=
//github.com/edgewall/trac/commit/7180d2f87a961161a09551da60e0deed6b86441a<=
/a></div>
        <div dir=3D"auto"><br>
        </div>
        I'll fix it later. Thanks for the reporting!</div>
      <div dir=3D"auto"><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
              href=3D"mailto:[email protected]" target=3D"_blank"
              moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">jun6=
[email protected]</a>&gt;
            (=E5=A4=A7=E5=89=8D =E6=BD=A4)</div>
        </div>
      </div>
      <div><br>
      </div>
      <div><br>
        <div class=3D"gmail_quote gmail_quote_container">
          <div dir=3D"ltr" class=3D"gmail_attr">On Thu, Dec 25, 2025 at 2:2=
3
            Mama 4903 &lt;<a href=3D"mailto:[email protected]"
              moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">mael=
[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:s=
olid;padding-left:1ex;border-left-color:rgb(204,204,204)">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:=C2=A0
            <div><br>
              `daysback =3D req.args.as_int('daysback', 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
                than 1.</div>
            </div>
            -- <br>
            You received this message because you are subscribed to the
            Google Groups "Trac Users" group.<br>
            To unsubscribe from this group and stop receiving emails
            from it, send an email to <a
              href=3D"mailto:trac-users+unsubscribe-/[email protected]"
              target=3D"_blank" moz-do-not-send=3D"true"
              class=3D"moz-txt-link-freetext">trac-users+unsubscribe@google=
groups.com</a>.<br>
            To view this discussion visit <a
href=3D"https://groups.google.com/d/msgid/trac-users/41c4a313-9666-4f23-a91=
3-ff1cb50f094fn%40googlegroups.com?utm_medium=3Demail&amp;utm_source=3Dfoot=
er"
              target=3D"_blank" moz-do-not-send=3D"true">https://groups.goo=
gle.com/d/msgid/trac-users/41c4a313-9666-4f23-a913-ff1cb50f094fn%40googlegr=
oups.com</a>.<br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <pre class=3D"moz-signature" cols=3D"0">--=20
Jun Omae <a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:[email protected]=
m">&lt;[email protected]&gt;</a> (=E5=A4=A7=E5=89=8D =E6=BD=A4)</pre>
  </body>
</html>

<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/080888a8-c695-4e11-9edc-24d485fd457f%40gmail.com?utm_medium=3Dem=
ail&utm_source=3Dfooter">https://groups.google.com/d/msgid/trac-users/08088=
8a8-c695-4e11-9edc-24d485fd457f%40gmail.com</a>.<br />

--------------CDk8GF0dG2OTHgakGh0OYzv4--