webone icon indicating copy to clipboard operation
webone copied to clipboard

Login problem on few phpBB forums in local mode

Open fietsknecht opened this issue 3 years ago • 15 comments

Login problem with https phpBB forums (maybe others as well, haven't tried yet). Username and password not recognized. Using local mode.

fietsknecht avatar Feb 01 '21 11:02 fietsknecht

Yes, seems that proxy in local mode does not correctly editing cookies and URLs to local mode style. I'll try to fix this in nearest next (v0.10.5) release.

Thanks for report.

atauenis avatar Feb 02 '21 08:02 atauenis

As testing saw, the latest codebase from Git no longer have this bug.

atauenis avatar Feb 04 '21 19:02 atauenis

OK, so it will be included in v.0.10.5 release? Unfortunately, I cannot compile the code myself.

fietsknecht avatar Feb 04 '21 19:02 fietsknecht

Yes, I'm planning to release v0.10.5 in this month. And it will work correctly in local mode.

atauenis avatar Feb 04 '21 19:02 atauenis

Great! Thanks for your excellent work!

fietsknecht avatar Feb 04 '21 19:02 fietsknecht

Published new version 0.10.5. It have no problems on my known phpBB 3.x forums (tested on phantom.sannata.org and rt20.mybb2.ru). The only exception is VOGONS, where still happens problem on log in (the forum admin seems to have enabled a bot protection, which is detecting attempts to log in via proxy).

atauenis avatar Feb 09 '21 12:02 atauenis

Hm, I still cannot login to atari-forum.com (phpBB 3.x AFAIK). My browser doesn't know port numbers so I have the proxy running on port 80 (not 8080) and from the browser connect to http://127.0.0.1/http:/atari-forum.com. Everthings seems to work, except login. Could this be related to the port number?

fietsknecht avatar Feb 09 '21 13:02 fietsknecht

Registered on Atari Forum, checked, really, it saying The submitted form was invalid. Try submitting again. on correct username and password.

I'll investigate this. However, the forum really have a bot-protecting plugin. When I tried to register on atari-forum.com using my e-mail on yandex.ru, the forum rejected it (however Yandex Mail is a legal and popular mailbox service in ex. USSR). So to register on it I'm forced to use another e-mail address.

atauenis avatar Feb 09 '21 13:02 atauenis

I have contacted the admin fo the forum about this. I am definitely using the correct user/pw so it may have something to do with their protection. I will let you know as soon as I know more.

fietsknecht avatar Feb 09 '21 13:02 fietsknecht

I've found difference between forums where login work, and where don't. Forums where all is working are running on phpBB 3.2, and which not working are running on phpBB 3.3. Atari Forum is using phpBB 3.3 too.

Tested it in normal mode of proxy with Firefox 3.6.28, login working. AtariForum firefox 3 6

Then reopened it in latest Chrome, and found the error. PhpBB 3.3 is using .example.com domain for cookies, while phpBB 3.0-3.2 used example.com. I'd forget to implement patching this kind of cookies, so this is (probably) the reason why phpBB 3.3 forums are not usable with WebOne in local mode. AtariForum cookie

I'll fix this in next version.

atauenis avatar Feb 09 '21 20:02 atauenis

Seems, this is caused not only by the cookie domain. Fixed it, the alert in DevTools disappeared, but cookies still don't appear in Application tab of DevTools and the bug still present. So this problem will take a time to investigate and fix.

atauenis avatar Feb 23 '21 11:02 atauenis

Thanks for your efforts, I really appreciate it. It would be wonderful if you could get it to work.

fietsknecht avatar Feb 27 '21 16:02 fietsknecht

Huh, probably found the source of problem. Somewhere Set-Cookie HTTP header becames be in a strange format with multiple cookies per HTTP header. And browser is saving only first cookie. Now I am working on rewrite of cookie processing to get this problem out.

atauenis avatar Oct 01 '21 09:10 atauenis

Ah, looking forward to that. Just tried the latest 0.11.1 but the issue is still there. Take your time.

fietsknecht avatar Oct 03 '21 19:10 fietsknecht

Yes, I'm fixed Set-Cookie header format, this solved some other problems, but not this. And I'm stumped again.

atauenis avatar Oct 04 '21 06:10 atauenis