* Detect at installation/upgrade time how the database refers to the utf8 variant Bugzilla wants to use so that we don't accidentally reconvert the database to the same encoding it's already using on every run on checksetup.pl
a=dylan
Dave Miller [Mon, 26 Aug 2024 01:38:11 +0000 (21:38 -0400)]
Bug 1905521: Temporary fix for deprecated Postgres Docker image (#137)
Docker in Ubuntu 22.04 and 24.04 no longer supports version 1 docker images, which the Postgres 9 image we use to run tests is. Long term fix is to up our minimum Postgres requirement to Postgres 12. Short term fix here is to run the Pg test on ubuntu-20.04 instead of ubuntu-latest.
a=dylan
Dave Miller [Sun, 28 Apr 2024 05:54:14 +0000 (01:54 -0400)]
Bug 1893844: configurable logging with a sensible default (#126)
* Adds a localconfig var called "logging_method" which points at a config file in the conf directory (which config file to use, there are several that preconfigure log4perl to log various different ways).
* Set the default to syslog.
Martin Renvoize [Fri, 22 Mar 2024 08:28:27 +0000 (08:28 +0000)]
Bug 1853138/Bug 1886954 - Switch to Email::Sender and Email::Address::XS (#103)
* Bug 1853138 - Switch to Email::Address::XS
* Bug 1886954 - Port bug 502625 to Harmony - Replace Email::Send with Email::Sender
Co-authored-by: Frédéric Buclin <LpSolit@gmail.com> Co-authored-by: Dylan William Hardison <dylan@hardison.net> Co-authored-by: Dave Miller <justdave@bugzilla.org>
Emma Humphries [Thu, 29 Feb 2024 16:25:16 +0000 (08:25 -0800)]
1879461: Runtime errors when building documentation (#105)
* 1879461: Python runtime error when building documentation
This commit updates the Sphinx config file, fixing runtime errors, and adds proper configuration for ReadTheDocs.
* use a supported docker image
* new cci docker images already contain docker-compose, no need to install it
* compose is a subcommand of docker now
* cci cimg doesn't like us using /app, docs suggest putting our code in /tmp
* remove install_deps because we aren't installing any anymore
Dave Miller [Thu, 4 Jan 2024 21:04:00 +0000 (16:04 -0500)]
Bug 1851398: Allow testserver.pl to work with self-signed certs (#101)
* Bug 1851398: Allow testserver.pl to work with self-signed certs, and properly test dependencies for https.
* Backports the existing fix from bug 662161 on trunk to the Harmony branch.
Dylan Hardison [Sun, 18 Dec 2022 21:22:52 +0000 (13:22 -0800)]
this changes makes api_field_* variables lazy
api_field_types and api_field_names rely on values from the
Bugzilla->fields definition. This in turn requires checking the schema
of the bugs table at run time. That means trying to access these when a
database is not configured, or before schema migrations have happened is
an error.
This changes those variables to hold functions (sub refs) that are
comptued when called. The help performance not degrade, we make use of
the Bugzilla::request_cache to only re-compute this once per request.
Many places in Bugzilla still link to createaccount.cgi. It is
probably worthwhile to still have a stand-alone sign-up page.
Simply reuse the mini-form to enable doing so using the new sign-up
flow.
* Make "Sign Up" link to createaccount.cgi
This fixes:
1. middle-clicking to open the form in a new tab
2. signing up without having to enable JavaScript
3. consistency with the "Log In" link, which already does something similar.
Dylan Hardison [Mon, 15 Mar 2021 14:30:01 +0000 (10:30 -0400)]
default security group name is undef when it does not exist (#81)
The BMO extension provides a default security group to products. I think
this is a good feature that should be core'd. In the meantime, there is
no default security group for the initial data set, so this makes it so
that when there isn't one, when the name is looked up it isn't an error.
* template/en/default/global/ip-blocked.html.tmpl: Use use_login_page
This fixes the warning "Use of uninitialized value $args[1] in join or
string at .../Bugzilla/Token.pm line 270", and removes the
likely-broken mini login form on the "IP blocked" page.
* index.cgi: Disable use_login_page for the front page
This seems to be only useful for very high-traffic
installations (BMO).
De-hardcode OpenGraph social image (og:image URL) (#78)
Add a configuration panel for the OpenGraph extension where users can
configure a desired image instead. If none is configured (default),
don't emit an og:image tag.
* no bug - fix broken build script when no new commits to master since last prod deploy
* no bug - remove warning "Odd number of elements"
The callback jwt_claims is called in list context.
Without an explicit return, when the if (!...) does not match it will
return a single false item. This causes the "Odd number of elements..."
perl warning.
Adding a `return` will prevent the warning and is also probably the
intent of the code.
* Bug 1645768 - Please add 'See Also' support for GitLab
* no bug - Updated tasks.json to include some admin tasks
* no bug - Fix build data script to help find the Mozilla CA cert
* Bug 1651591 - remove preloading of fonts and ga; r=dkl
Font preloading has been broken for more than a year, and doesn't appear
to work correctly even when provided URLs which exist; removed.
google-analytics likely does little to improve page load time
performance against all the other assets, is loaded async, and exists
outside of the GoogleAnalytics making it easy to miss when updating that
extension (eg. the preloading doesn't honour DNT); also removed.
* Bug 1535000 - Allow anyone with edit-comments to edit any bug's comment 0
* Bug 1652863 - setting the needinfo flag when filing a new bug in Core or Toolkit does not cause the textbox for user information to pop up
* Bug 1657778 - Offer link to Bugzilla for filing security issues in Fenix and iOS
* no bug - Show Bounty Attachments to the Bug Reporter
This will allow most bug bounty recipients to view the amount of their bounty. It will not show it to reporters if we filed the bug for them, however those are less liekly to be repeat filers.
* Bug 1658846 - Allow users to enable and disable their webhooks
Co-authored-by: dklawren <dklawren@users.noreply.github.com> Co-authored-by: byron jones <byron@glob.com.au> Co-authored-by: Emma Humphries <emceeaich@users.noreply.github.com> Co-authored-by: David Lawrence <dkl@mozilla.com> Co-authored-by: Lisset Cuevas <lisset.cuevasj@gmail.com> Co-authored-by: Michael Kohler <me@michaelkohler.info> Co-authored-by: Tom Ritter <tom@ritter.vg>
This adds a github workflow action that runs the basic tests under
ubuntu. It also saves the local/ (local::lib) directory as an artifact
as a benefit to building ubuntu-based installations (such as docker
containers).