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

Split request URI into SCRIPT_NAME and PATH_INFO by Sympa itself #910

Merged
merged 6 commits into from
Mar 14, 2020

Conversation

ikedas
Copy link
Member

@ikedas ikedas commented Mar 13, 2020

  • WWSympa: Since CGI of some HTTP servers might split script-path and extra-path of script-URI inproperly, we'd be better to reconstruct them: SCRIPT_NAME and PATH_INFO.
    Note that we shouldn't use non-standard CGI environment varialbes such as REQUEST_URI.
  • Additional environment variable SYMPA_DOMAIN stands for available mail domain (a.k.a. "robot").
  • If no robot providing web service was found according to client's request, error response will be returned.

This may fix #879 .

ikedas added 6 commits March 11, 2020 17:55
  extra-path of script-URI inproperly, we'd be better to reconstruct them:
  SCRIPT_NAME and PATH_INFO.
  Note that we shouldn't use non-standard CGI environment varialbes such as
  REQUEST_URI.
- Additional environment variable SYMPA_DOMAIN stands for available
  mail domain (a.k.a. "robot").
- If no robot providing web service was found according to client's request,
  error response will be returned.
@ikedas ikedas merged commit d2a043d into sympa-community:sympa-6.2 Mar 14, 2020
@ikedas ikedas deleted the issue-879_trial-2 branch March 14, 2020 01:05
ikedas added a commit that referenced this pull request Mar 18, 2020
Replace `http_host` parameter with `wwsympa_url_local` parameter (addition to #910)
mmilata added a commit to mmilata/nixpkgs that referenced this pull request Jun 10, 2020
Our regex for splitting HTTP path into SCRIPT_NAME and PATH_INFO was
incorrect when webLocation was set to "/". Since Sympa 6.2.56 this has
caused the web interface to return "421 Misdirected Request".

Since 6.2.56 Sympa can do the splitting on its own so we can simply
remove it from nginx configuration.

See also:
- sympa-community/sympa#879
- sympa-community/sympa#910
- sympa-community/sympa-community.github.io#53
mmilata added a commit to mmilata/nixpkgs that referenced this pull request Jun 10, 2020
Our regex for splitting HTTP path into SCRIPT_NAME and PATH_INFO was
incorrect when webLocation was set to "/". Since Sympa 6.2.56 this has
caused the web interface to return "421 Misdirected Request".

Since 6.2.56 Sympa can do the splitting on its own so we can simply
remove it from nginx configuration.

See also:
- sympa-community/sympa#879
- sympa-community/sympa#910
- sympa-community/sympa-community.github.io#53

(cherry picked from commit bd4e4dd)
sorki pushed a commit to otevrenamesta/nixpkgs that referenced this pull request Mar 10, 2021
Our regex for splitting HTTP path into SCRIPT_NAME and PATH_INFO was
incorrect when webLocation was set to "/". Since Sympa 6.2.56 this has
caused the web interface to return "421 Misdirected Request".

Since 6.2.56 Sympa can do the splitting on its own so we can simply
remove it from nginx configuration.

See also:
- sympa-community/sympa#879
- sympa-community/sympa#910
- sympa-community/sympa-community.github.io#53

(cherry picked from commit bd4e4dd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple component wwsympa_url with mod_proxy_fcgi is broken
1 participant