From f7b415b0354a32f36d37366b19e90f3834a01a69 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 21 Aug 2018 09:35:46 -0400 Subject: bump version to 20180820.1 --- Bugzilla.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla.pm b/Bugzilla.pm index 4d5e559d9..44286c75b 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -13,7 +13,7 @@ use warnings; use Bugzilla::Logging; -our $VERSION = '20180808.1'; +our $VERSION = '20180820.1'; use Bugzilla::Auth; use Bugzilla::Auth::Persist::Cookie; -- cgit v1.2.3-24-g4f1b From 8f0d6063aa670f01ab1ac25d682589d1978c6e83 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Fri, 24 Aug 2018 16:33:44 -0400 Subject: Bug 1399721 - change canonical from bugzil.la to bugzilla.mozilla.org --- Bugzilla/Install/Localconfig.pm | 17 +++++++++++------ README.rst | 5 ++++- .../hook/global/header-additional_header.html.tmpl | 2 +- template/en/default/setup/strings.txt.pl | 4 ++++ 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/Bugzilla/Install/Localconfig.pm b/Bugzilla/Install/Localconfig.pm index e524535ac..6650eca27 100644 --- a/Bugzilla/Install/Localconfig.pm +++ b/Bugzilla/Install/Localconfig.pm @@ -163,6 +163,10 @@ use constant LOCALCONFIG_VARS => ( name => 'urlbase', default => _migrate_param( "urlbase", "" ), }, + { + name => 'canonical_urlbase', + default => '', + }, { name => 'attachment_base', default => _migrate_param( "attachment_base", '' ), @@ -294,13 +298,14 @@ sub _read_localconfig_from_file { sub read_localconfig { my ($include_deprecated) = @_; + my $config = $ENV{LOCALCONFIG_ENV} + ? _read_localconfig_from_env() + : _read_localconfig_from_file($include_deprecated); - if ($ENV{LOCALCONFIG_ENV}) { - return _read_localconfig_from_env(); - } - else { - return _read_localconfig_from_file($include_deprecated); - } + # Use the site's URL as the default Canonical URL + $config->{canonical_urlbase} //= $config->{urlbase}; + + return $config; } # diff --git a/README.rst b/README.rst index 985be314e..05eb1df1f 100644 --- a/README.rst +++ b/README.rst @@ -252,9 +252,12 @@ BUGZILLA_UNSAFE_AUTH_DELEGATION BMO_urlbase The public url for this instance. Note that if this begins with https:// - abd BMO_inbound_proxies is set to '*' Bugzilla will believe the connection to it + and BMO_inbound_proxies is set to '*' Bugzilla will believe the connection to it is using SSL. +BMO_canonical_urlbase + The public url for the production instance, if different from urlbase above. + BMO_attachment_base This is the url for attachments. When the allow_attachment_display parameter is on, it is possible for a diff --git a/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl b/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl index f1896dccc..0566f48b3 100644 --- a/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl +++ b/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl @@ -21,7 +21,7 @@ [% IF bug %] - + [% END %] [%# *** Bug List Navigation *** %] diff --git a/template/en/default/setup/strings.txt.pl b/template/en/default/setup/strings.txt.pl index adb79884a..cb0ac4fe9 100644 --- a/template/en/default/setup/strings.txt.pl +++ b/template/en/default/setup/strings.txt.pl @@ -232,6 +232,10 @@ Only the keys listed below can be overridden. END localconfig_urlbase => <<'END', The URL that is the common initial leading part of all URLs. +END + localconfig_canonical_urlbase => <<'END', +The URL that is the canonical initial leading part of all URLs. +This will be the production url for a dev site, for instance. END localconfig_use_suexec => <<'END', Set this to 1 if Bugzilla runs in an Apache SuexecUserGroup environment. -- cgit v1.2.3-24-g4f1b