Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

MIT personal websites are redirected to an incorrect URL  #14397

Closed

Description

@cpitclaudel

Type: ruleset issue
Domain: mit.edu

The ruleset in MIT.xml says this:

<rule from="^http://(www\.)?mit\.edu/" to="https://web.mit.edu/" />

This translates e.g. http://www.mit.edu/~cpitcla/test (which works) into https://web.mit.edu/~cpitcla/test (404). Working HTTPS URLs for that page include https://www.mit.edu/~cpitcla/test (no need to rewrite the www part into web) and https://web.mit.edu/cpitcla/www/test (no ~, extra www).

This is documented here: http://kb.mit.edu/confluence/pages/viewpage.action?pageId=3907090 .

It looks like the issue was introduced by #14169 or #12002 maybe?

+	<rule from="^http://(www\.)?mit\.edu/" to="https://web.mit.edu/" />

Activity

  1. jeremyn commented on Jan 23, 2018

    @jeremyn
    Contributor

    Yes, the rule in MIT.xml here that you mentioned will rewrite http://www.mit.edu/~cpitcla/test to https://web.mit.edu/~cpitcla/test . That is a bad rewrite and should be fixed.

  2. Bisaloo commented on Jan 23, 2018

    @Bisaloo
    Collaborator

    I get different content for http://www.mit.edu/~cpitcla/test and https://www.mit.edu/~cpitcla/test or https://web.mit.edu/cpitcla/www/test. Over https, I get:

    certificate error
    A client certificate was invalid or not provided.

  3. cpitclaudel commented on Jan 23, 2018

    @cpitclaudel
    Author

    @Bisaloo Thanks for testing; looks like the https version is only available with MIT client certificates. I can confirm that using curl instead of my browser.

  4. added a commit that references this issue on Jan 24, 2018
    2233ca8
  5. J0WI commented on Jan 24, 2018

    @J0WI
    Contributor

    Thanks for your report. I just published a fix (#14417) which hopefully gets merged before the new release is made (#14336).

  6. added a commit that references this issue on Jan 24, 2018
    27b6a29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions