? ? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
26 Dec 2015

Description

An year after #5478, this PR is for normalize the joomla.org URI in Joomla code to use HTTPS.

In this PR all joomla.org domains (and subdomains) in joomla code were checked, and then checked if those serve in HTTP, HTTP and HTTPS or exclusively HTTPS (HTTP redirect to HTTPS).

For the ones that the change seems possible without issues (certificate errors, protocols errors, redirects to HTTP, mixed content, etc) the change is done in this PR.

Please note this is not a blind search -> replace.

List of joomla.org domains (found in code and completly https with this PR)
Domain Protocols Observations All URI in HTTPS?
joomla.org HTTP and HTTPS Forces HTTPS. Redirect to www.joomla.org :white_check_mark: (after this PR)
www.joomla.org HTTP and HTTPS Forces HTTPS :white_check_mark: (after this PR)
docs.joomla.org HTTP and HTTPS Forces HTTPS :white_check_mark: (after this PR)
developer.joomla.org HTTP and HTTPS Forces HTTPS :white_check_mark: (after this PR)
volunteers.joomla.org HTTP and HTTPS Forces HTTPS :white_check_mark: (after this PR)
events.joomla.org HTTP and HTTPS Forces HTTPS :white_check_mark: (after this PR)
issues.joomla.org HTTP and HTTPS Forces HTTPS :white_check_mark: (after this PR)
api.joomla.org HTTP and HTTPS Forces HTTPS :white_check_mark:
demo.joomla.org HTTP and HTTPS Forces HTTPS :white_check_mark:
contribute.joomla.org HTTP and HTTPS Forces HTTPS. Redirect to opensourcematters.org :white_check_mark: (after this PR)
help.joomla.org HTTP and HTTPS Forces HTTPS in both (/ and /proxy/) :white_check_mark: (after this PR)
cdn.joomla.org HTTP and HTTPS - :white_check_mark: (after this PR)
List of joomla.org domains (found in code but will have to wait for a future PR)
Domain Protocols Observations All URI in HTTPS?
update.joomla.org HTTP and HTTPS - PR related to this: #8645
shop.joomla.org HTTP and HTTPS HTTPS has Mixed content. PR related to this: #8653
community.joomla.org HTTP and HTTPS HTTPS has Mixed content. Site not ready yet.
resources.joomla.org HTTP and HTTPS HTTPS has Mixed content. Site not ready yet.
extensions.joomla.org HTTP and HTTPS HTTPS redirect to HTTP Site not ready yet.
forum.joomla.org HTTP and HTTPS HTTPS has protocol error. Site not ready yet.
opensourcematters.org HTTP - Site not ready yet.
feeds.joomla.org HTTP Feedburner Not ready yet.
build.joomla.org HTTP and HTTPS Jenkings. Certificate error Not ready yet.
joom.la HTTP and HTTPS Certificate error Not ready yet.
Other domain in code

There are other domains used only for Unit tests to simulate errors but doesn't really exist or are only used in unit tests, so those were not changed:

  • base.joomla.org
  • test.joomla.org
  • xommunity.joomla.org

How to test

Check the "Files changed" in this PR and verify the changes.

More info

For checking the domains that exist in Joomla code it was used several egrep linux commands:

  • egrep -R 'joomla\.org' /path/to/joomla/
  • egrep -R 'http:(//|\\/\\/|\\\\/\\\\/)subdomain\.joomla\.org' /path/to/joomla/
  • egrep -R 'https:(//|\\/\\/|\\\\/\\\\/)subdomain\.joomla\.org' /path/to/joomla/
  • and other combinations

See joomla/joomla-websites#20 for a list of Joomla domains and the HTTP to HTTPS site conversion process.

Suggestions or corrections are welcome.

avatar andrepereiradasilva andrepereiradasilva - open - 26 Dec 2015
avatar andrepereiradasilva andrepereiradasilva - change - 26 Dec 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Dec 2015
Labels Added: ? ?
avatar wojsmol
wojsmol - comment - 26 Dec 2015

@andrepereiradasilva regarding cdn see first post of joomla/joomla-websites#20

avatar mbabker
mbabker - comment - 26 Dec 2015

For help.joomla.org the help screen proxy (/proxy on that subdomain)
already defaults to HTTPS and the rest of the site is effectively offline
but the htaccess should be forcing HTTPS on the landing page last I
remember. So that's fine to change any leftover links. Though those links
should probably change to something suitable in the docs wiki.

On Saturday, December 26, 2015, andrepereiradasilva <
notifications@github.com> wrote:

Description

An year after #5478 #5478,
this PR is for normalize the joomla.org URI in Joomla code to use https.

In this PR all joomla.org domains (and subdomains) in joomla code were
checked, and then checked if those serve in HTTP, HTTP and HTTPD or
exclusively HTTPS (HTTP redirect to HTTPS).

For the ones that the change seems possible without issues (certificate
errors, protocols errors, redirects to HTTP, mixed content, etc) the change
is done in this PR.

Please note this is not a blind search -> replace.
List of joomla.org domains Domain Protocols Observations All URI in HTTPS?
joomla.org HTTP and HTTPS Both redirect to www.joomla.org image:
:white_check_mark:
www.joomla.org HTTP and HTTPS HTTP
redirect to HTTPS image: :white_check_mark:
docs.joomla.org HTTP and HTTPS HTTP redirect to HTTPS image:
:white_check_mark:
developer.joomla.org HTTP and HTTPS HTTP
redirect to HTTPS image: :white_check_mark:
volunteers.joomla.org HTTP and HTTPS HTTP redirect to HTTPS image:
:white_check_mark:
issues.joomla.org HTTP and HTTPS HTTP
redirect to HTTPS image: :white_check_mark:
api.joomla.org HTTP and HTTPS HTTP redirect to HTTPS [image:
:white_check_mark:] demo.joomla.org HTTP and HTTPS HTTP redirect to HTTPS [image:
:white_check_mark:] contribute.joomla.org HTTP and HTTPS Both redirect to
opensourcematters.org image: :white_check_mark:
update.joomla.org HTTP and HTTPS - PR related to this: #8645
#8645 help.joomla.org HTTP and
HTTPS - Code not ready yet? Same as above? shop.joomla.org HTTP and HTTPS HTTPS
has Mixed content. PR related to this: #8653
#8653 community.joomla.org HTTP
and HTTPS HTTPS has Mixed content. Site not ready yet.
resources.joomla.org HTTP and HTTPS HTTPS has Mixed content. Site not
ready yet. extensions.joomla.org HTTP and HTTPS HTTPS redirect to HTTP Site
not ready yet. forum.joomla.org HTTP and HTTPS HTTPS has protocol error. Site
not ready yet. feeds.joomla.org HTTP Feedburner Not ready yet.
build.joomla.org HTTP and HTTPS Jenkings. Certificate error Not ready yet. Other
domain in code

There are other domains used only for Unit tests to simulate errors but
doesn't really exist or are only used in unit tests, so those were not
changed:

  • cdn.joomla.org
  • base.joomla.org
  • test.joomla.org
  • xommunity.joomla.org

How to test

Check the "Files changed" in this PR and verify the changes.
More info

For checking the domains that exist in Joomla code it was used several
egrep linux commands:

  • egrep -R 'joomla.org' /path/to/joomla/
  • egrep -R 'http:(//|\/\/)subdomain.joomla.org' /path/to/joomla/
  • egrep -R 'https:(//|\/\/)subdomain.joomla.org' /path/to/joomla/
  • and other combinations

Suggestions or corrections are welcome.

You can view, comment on, or merge this pull request online at:

#8791
Commit Summary

  • Merge remote-tracking branch 'refs/remotes/joomla/staging' into staging
  • Merge remote-tracking branch 'refs/remotes/joomla/staging' into staging
  • Merge remote-tracking branch 'refs/remotes/joomla/staging' into staging
  • Merge branch 'staging' of https://github.com/andrepereiradasilva/joomla-cms into staging
  • Merge remote-tracking branch 'refs/remotes/joomla/staging' into more-https-links
  • From http to https

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#8791.

avatar andrepereiradasilva andrepereiradasilva - change - 26 Dec 2015
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 26 Dec 2015
Title
Replace joomla.org (and subdomains) HTTP links for HTTPS links (where possible)
Replace leftover joomla.org (and subdomains) HTTP links for HTTPS links (where possible)
avatar mbabker
mbabker - comment - 26 Dec 2015

Yes those can change.

On Saturday, December 26, 2015, andrepereiradasilva <
notifications@github.com> wrote:

@mbabker https://github.com/mbabker
The ones that are left from help.joomla.org domain in joomla code are:

-
https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/help/help.php#L187
-
https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_config/controller/application/refreshhelp.php#L41
-
https://github.com/joomla/joomla-cms/blob/staging/tests/unit/suites/libraries/cms/help/JHelpTest.php#L118

I think those can also be changed to HTTPS without issues. Do you agree?


Reply to this email directly or view it on GitHub
#8791 (comment).

avatar andrepereiradasilva andrepereiradasilva - change - 26 Dec 2015
The description was changed
Title
Replace joomla.org (and subdomains) HTTP links for HTTPS links (where possible)
Replace leftover joomla.org (and subdomains) HTTP links for HTTPS links (where possible)
avatar mbabker
mbabker - comment - 26 Dec 2015

As for the test case involving cdn.joomla.org it's validating a behavior in that class' API and not reliant on a "real" page. You can try changing it to HTTPS but I think the protocol is dependent on the injected config values in that test case IIRC so it might end up failing without additional changes.

avatar andrepereiradasilva andrepereiradasilva - change - 26 Dec 2015
The description was changed
avatar andrepereiradasilva
andrepereiradasilva - comment - 26 Dec 2015

@mbabker thanks for your comments

Made the two changes and travis accepted them without problems.

We also have the joom.la domain (only in https://github.com/joomla/joomla-cms/blob/staging/tests/unit/suites/libraries/joomla/application/JApplicationWebTest.php) that i think is some kind of URI shortener service, right?

By the way, the certificate is incorrect in that domain.

avatar infograf768
infograf768 - comment - 27 Dec 2015

Looking at this patch and specially the tests/unit/stubs/database/...
I found 27 occurences of these unknown characters

�*�

avatar mbabker
mbabker - comment - 27 Dec 2015

It's some kind of quirk unrelated to this patch (it's actually a \u0 character according to Chrome). This screenshot is me putting an echo serialize($item);die; line in before rows are written to the table where those characters are being found.

screen shot 2015-12-27 at 11 15 35 am

avatar mbabker
mbabker - comment - 27 Dec 2015

It's PHP's behavior actually... http://php.net/manual/en/function.serialize.php

Object's private members have the class name prepended to the member name; protected members have a '*' prepended to the member name. These prepended values have null bytes on either side.

avatar infograf768
infograf768 - comment - 27 Dec 2015

Thanks Michael.

avatar andrepereiradasilva
andrepereiradasilva - comment - 27 Dec 2015

Ok. So all fine.

avatar andrepereiradasilva andrepereiradasilva - change - 27 Dec 2015
The description was changed
avatar andrepereiradasilva
andrepereiradasilva - comment - 12 Mar 2016

closed as comments above, new PR will be made.

avatar andrepereiradasilva andrepereiradasilva - change - 12 Mar 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-03-12 16:30:47
Closed_By andrepereiradasilva

Add a Comment

Login with GitHub to post a comment