Re: [Trac] Issue with cookie parsing in Trac 1.6 and Python 3

2025-03-09 Thread Chris Shelton
Jun, This revised workaround seems to fix the issue that I was having, at least in my initial testing. I will also add a comment on the ticket to indicate that this fix is working for me. Chris On Sun, Mar 9, 2025 at 3:08 AM Jun Omae wrote: > Thanks for the submitting this issue on trac.edgewa

Re: [Trac] Issue with cookie parsing in Trac 1.6 and Python 3

2025-03-08 Thread Jun Omae
Thanks for the submitting this issue on trac.edgewall.org. Investigating your cookies, this is caused by whitespaces in the value of the cookies, not unnamed cookies. Also, the issue has been filed at https://github.com/python/cpython/issues/75637 7 years ago, but still not fixed. Could you p

Re: [Trac] Issue with cookie parsing in Trac 1.6 and Python 3

2025-03-08 Thread Chris Shelton
Jun, After some additional review of the cookies in my environment, I believe that the presence of forward slashes or spaces in the values of cookies are what is causing the issue that I am seeing. When I manually remove each cookie that contained any spaces or forward slashes in the value of the

Re: [Trac] Issue with cookie parsing in Trac 1.6 and Python 3

2025-03-07 Thread Jun Omae
On 2025/03/08 0:02, Chris Shelton wrote: > Jun, > > Thank you for your response.  I just tried your quick fix, and unfortunately > I am still seeing the login redirection errors when I have the additional > cookies present from the higher level domain.  > > I think that python3 SimpleCookie and

Re: [Trac] Issue with cookie parsing in Trac 1.6 and Python 3

2025-03-07 Thread Chris Shelton
Jun, Thank you for your response. I just tried your quick fix, and unfortunately I am still seeing the login redirection errors when I have the additional cookies present from the higher level domain. I think that python3 SimpleCookie and/or BaseCookie are also failing to parse anything when any

Re: [Trac] Issue with cookie parsing in Trac 1.6 and Python 3

2025-03-07 Thread Jun Omae
Hi, On 2025/03/07 1:50, Chris Shelton wrote: > After working through a plan to upgrade an old Trac installation from version > 0.12 to 1.6, due to the need to shift to python 3, I believe I have > discovered an issue with how Python 3 is parsing cookies when they are > "invalid" cookies present