Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login problem on few phpBB forums in local mode #21

Open
fietsknecht opened this issue Feb 1, 2021 · 15 comments
Open

Login problem on few phpBB forums in local mode #21

fietsknecht opened this issue Feb 1, 2021 · 15 comments
Labels
bug Something isn't working

Comments

@fietsknecht
Copy link

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

@atauenis atauenis added the bug Something isn't working label Feb 2, 2021
@atauenis
Copy link
Owner

atauenis commented Feb 2, 2021

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
Copy link
Owner

atauenis commented Feb 4, 2021

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

@atauenis atauenis closed this as completed Feb 4, 2021
@fietsknecht
Copy link
Author

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

@atauenis
Copy link
Owner

atauenis commented Feb 4, 2021

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

@fietsknecht
Copy link
Author

Great! Thanks for your excellent work!

@atauenis
Copy link
Owner

atauenis commented Feb 9, 2021

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).

@fietsknecht
Copy link
Author

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?

@atauenis
Copy link
Owner

atauenis commented Feb 9, 2021

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 atauenis reopened this Feb 9, 2021
@atauenis atauenis changed the title https login problem Login problem on few phpBB forums Feb 9, 2021
@fietsknecht
Copy link
Author

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.

@atauenis
Copy link
Owner

atauenis commented Feb 9, 2021

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
Copy link
Owner

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.

@fietsknecht
Copy link
Author

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

@atauenis atauenis changed the title Login problem on few phpBB forums Login problem on few phpBB forums in local mode May 18, 2021
@atauenis
Copy link
Owner

atauenis commented Oct 1, 2021

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.

@fietsknecht
Copy link
Author

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

@atauenis
Copy link
Owner

atauenis commented Oct 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants