-
Notifications
You must be signed in to change notification settings - Fork 102
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
WWSympa is not always respecting wwsympa_url #517
Comments
This seems to be down to the authority handling in Sympa::get_url. For instance if I modify wwsympa.fcgi@1512 to pass default this resolves the redirect on login:
Similarly if I modify do_arc:
this resolves the redirect setup for accessing the archives. |
Hi @mivance-atvi, does this help? A change on 6.2.15: Lines 154 to 167 in 5951669
|
Hi @ikedas , it's not clear to me what to do with this, nor what effect it should have from looking at the Sympa source. I tried setting 'http_host' in sympa.conf to be similar to the originating server e.g. 'acme.activision.com' which is what I see in the HTTP 'Host:' field on successful page loads, but it did not change the behavior. Nor did having the '/wws' base path appended. In my tests, on a successful load 'Referer:' will look like 'https://acme.activision.com/wws/lists'. On an unsuccessful load the bad redirect will show a 302 with 'Location:' set to 'https://acme-sympa/wws/arc/acme/2018-11/', and then this will be a failed connection. Looking at the source it's not clear to me what functionality http_host provides beyond identifying a robot config (not an issue for us as we only have a single "domain") and then overriding the cookie_domain in wwsympa.fcgi. |
Hi @mivance-atvi , There are two ideas to tweak WWSympa with proxy. (A) rewriting all and (B) passing through all. For generalization, these host names (domain) are used in below:
Note: Following settings have not been verified. (A) Rewrite "Host:", "Location:" and cookie domain
sympa.conf:
Note that nginx conf:
(B) Pass through host names
sympa.conf:
Note that nginx conf:
"Host:", "Location:" and domain of "Set-Cookie:" won't be rewritten. |
Hi @ikedas thanks for the extra info. FWIW setup (A) does not work. However setup (B) does. It's not clear to me if the former is a legitimate bug. Regardless we'll go forward with (B) for now, thank you again. |
@mivance-atvi, thanks for confirming. I'll investigate (A) later, and will add instruction on both (A) and (B) to documentation. |
Let's continue on sympa-community/sympa-community.github.io#35. This issue is closed. |
We recently upgraded our VMs from Ubuntu Xenial LTS to current Ubuntu Bionic LTS. Our Sympa VM was one of these and this had a concomitant upgrade in Sympa. We have two problems with the current release:
For (2), imagine we have a proxy/forwarding server at acme.activision.com that is internally public facing, and a private VM at acme-sympa.local that runs the Sympa instance. We forward acme.activision.com/wws to acme-sympa. Thus, if we visit:
https://acme.activision.com/wws/info/ai
we get a proper page. If we then attempt to access the archive at
https://acme.activision.com/wws/arc/ai
we instead get a redirect to
https://acme-sympa/wws/arc/ai/2017-03/
which does not exist as something that can be resolved.
We had a similar problem to this last year when we upgraded from 14.x to 16.x, see the email "generation of incorrect links in archive pages only" on sympa-users. In that case we discovered this patch which fixed the issue:
https://sourcesup.renater.fr/scm/viewvc.php/branches/sympa-6.2-branch/src/cgi/wwsympa.fcgi.in?root=sympa&r1=12687&r2=12686&pathrev=12687
However our new version of Sympa already contains this patch.
Note that if I manually navigate to
https://acme.activision.com/wws/arc/ai/2017-03/
And then click on archive links these generate correctly loaded URLS such as
https://acme.activision.com/wws/arc/ai/2017-03/msg00001.html
which load just fine.
Version
Version: 6.2.24~dfsg-1
Installation method
Ubuntu packages.
Expected behavior
Redirect URLs are generated correctly that respect wwsympa_url.
Actual behavior
Incorrect URL redirects are generated.
Additional information
You can see our configuration bits here:
I've also set log_level in sympa.conf and see the direct generation but nothing else particularly interesting. E.g.
Here is our minimal nginx setup for the proxy passthrough:
The text was updated successfully, but these errors were encountered: