Andy Allan [Wed, 25 Nov 2026 14:06:48 +0000 (14:06 +0000)]
Avoid redirecting to error pages
When access was denied, or a parameter was invalid, we redirected to a
separate /403 or /400 URL to show the error page. This meant the URL in
the browser no longer showed the page the user had asked for.
Instead we render the error page in response to the original request.
The error page templates now refer to their shared contact partial by
its full path, so that they can be rendered from any controller.
Since the bad request page is no longer a redirect, it's now shown for
invalid parameters on any request method, not just GET. This also
removes the need for the brakeman ignore file.
Andy Allan [Wed, 25 Nov 2026 14:16:50 +0000 (14:16 +0000)]
Stop catching unanticipated exceptions in API calls
api_call_handle_error rescued any unexpected exceptions and returned their
class and message to the client as 500 responses. The message can contain
internal details, such as SQL from database errors, that shouldn't be
shared with clients.
Additionally, catching these exceptions meant they were only written to
the logs, and the exception never reached Sentry.
If the exception happened before authorization, then the check_authorization
also raised, so Sentry saw a misleading CanCan::AuthorizationNotPerformed
error instead of the real one.
Let these exceptions propagate instead, so that they are reported correctly,
and are rendered by ErrorsController like any other unhandled exception.
Andy Allan [Wed, 25 Nov 2026 14:16:50 +0000 (14:16 +0000)]
Add support for API errors to the error handler
Anticipated API errors are generally handled by api_call_handle_error.
However, internal_server_errors might be coming from before or after the
controller (e.g. in middleware, routing, or rescue_from handlers), so
can't all be caught with around_action. These are passed to
ErrorsController, and we can use the original path to ensure they get
the right response.
Andy Allan [Wed, 25 Nov 2026 15:32:35 +0000 (15:32 +0000)]
Include the reason phrase in the status of XML error responses
Since f0d7c4a8d6 the status has been looked up in HTTP_STATUS_CODES
using the symbol rather than the numeric code, so the reason phrase
has been missing (e.g. "409 " instead of "409 Conflict").
This restores the format produced by interpret_status before 2011,
which Potlatch 2 matches on to show specific conflict, deleted and
in-use errors.
Tom Hughes [Tue, 24 Nov 2026 22:32:32 +0000 (22:32 +0000)]
Enable some MissingIndexChecker consistency checks
Since https://github.com/djezzzl/database_consistency/pull/330 we
no longer get false positives for relationships that rely on the
primary key on the target side.
Syogo-Suganoya [Tue, 17 Nov 2026 10:50:41 +0000 (19:50 +0900)]
Encode tag values substituted into tag2link query strings
Values were inserted into tag2link URL templates unencoded, so in
query strings a "+" was decoded as a space by the target site, and
characters such as "&" or "#" could break up the query. Values that
end up in the query are now percent-encoded, while those in the path
are left as they were.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Andy Allan [Wed, 18 Nov 2026 16:37:15 +0000 (16:37 +0000)]
Normalise avatars when they are uploaded
Re-encode newly uploaded avatars before they are stored, so that the
original upload is never stored or served. The stored image fits within
512x512 pixels, is rotated upright, converted to sRGB, has only the
first frame of any animation, and has all metadata (such as EXIF GPS
location) stripped. Non-web formats are stored as PNG, and the filename
is replaced, since it's visible in avatar URLs.
This is done synchronously, since processing a large photo takes well
under 100ms, and doing it in the background would mean the original
reaching storage (and any backups of it) first.
Updates `sass-embedded` from 1.108.1 to 1.108.2
- [Commits](https://github.com/sass-contrib/sass-embedded-host-ruby/compare/v1.108.1...v1.108.2)
Updates `omniauth` from 2.3.1 to 2.4.1
- [Release notes](https://github.com/omniauth/omniauth/releases)
- [Changelog](https://github.com/omniauth/omniauth/blob/master/CHANGELOG.md)
- [Commits](https://github.com/omniauth/omniauth/compare/v2.3.1...v2.4.1)
Updates `dalli` from 5.3.2 to 5.3.3
- [Release notes](https://github.com/petergoldstein/dalli/releases)
- [Changelog](https://github.com/petergoldstein/dalli/blob/main/CHANGELOG.md)
- [Commits](https://github.com/petergoldstein/dalli/compare/v5.3.2...v5.3.3)
Updates `opentelemetry-instrumentation-all` from 0.100.0 to 0.101.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-ruby-contrib/releases)
- [Commits](https://github.com/open-telemetry/opentelemetry-ruby-contrib/compare/opentelemetry-instrumentation-all/v0.100.0...opentelemetry-instrumentation-all/v0.101.0)
Updates `aws-sdk-s3` from 1.239.0 to 1.242.0
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)
Updates `i18n-tasks` from 1.2.0 to 1.2.1
- [Release notes](https://github.com/glebm/i18n-tasks/releases)
- [Changelog](https://github.com/glebm/i18n-tasks/blob/main/CHANGES.md)
- [Commits](https://github.com/glebm/i18n-tasks/compare/v1.2.0...v1.2.1)
Updates `overcommit` from 0.75.0 to 0.76.0
- [Release notes](https://github.com/sds/overcommit/releases)
- [Changelog](https://github.com/sds/overcommit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sds/overcommit/compare/v0.75.0...v0.76.0)
Updates `puma` from 8.0.2 to 8.1.1
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/main/History.md)
- [Commits](https://github.com/puma/puma/compare/v8.0.2...v8.1.1)
Updates `aws-partitions` from 1.1305.0 to 1.1308.0
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-partitions/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)
Updates `aws-sdk-core` from 3.268.0 to 3.270.0
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-core/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)
Updates `aws-sdk-kms` from 1.143.0 to 1.145.0
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-kms/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)
Updates `brotli` from 0.9.2 to 0.9.3
- [Commits](https://github.com/miyucy/brotli/compare/v0.9.2...v0.9.3)
Updates `opentelemetry-instrumentation-action_pack` from 0.18.1 to 0.19.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-ruby-contrib/releases)
- [Commits](https://github.com/open-telemetry/opentelemetry-ruby-contrib/compare/opentelemetry-instrumentation-action_pack/v0.18.1...opentelemetry-instrumentation-action_pack/v0.19.0)
Updates `opentelemetry-instrumentation-anthropic` from 0.5.0 to 0.6.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-ruby-contrib/releases)
- [Commits](https://github.com/open-telemetry/opentelemetry-ruby-contrib/compare/opentelemetry-instrumentation-anthropic/v0.5.0...opentelemetry-instrumentation-anthropic/v0.6.0)
Updates `opentelemetry-instrumentation-grape` from 0.7.2 to 0.7.3
- [Release notes](https://github.com/open-telemetry/opentelemetry-ruby-contrib/releases)
- [Commits](https://github.com/open-telemetry/opentelemetry-ruby-contrib/compare/opentelemetry-instrumentation-grape/v0.7.2...opentelemetry-instrumentation-grape/v0.7.3)
Updates `opentelemetry-semantic_conventions` from 1.44.0 to 1.45.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-ruby/releases)
- [Commits](https://github.com/open-telemetry/opentelemetry-ruby/compare/opentelemetry-semantic_conventions/v1.44.0...opentelemetry-semantic_conventions/v1.45.0)
Updates `process_executer` from 4.1.1 to 4.1.3
- [Release notes](https://github.com/main-branch/process_executer/releases)
- [Changelog](https://github.com/main-branch/process_executer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/main-branch/process_executer/compare/v4.1.1...v4.1.3)
Updates `rack-protection` from 4.2.1 to 4.2.2
- [Changelog](https://github.com/sinatra/sinatra/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sinatra/sinatra/compare/v4.2.1...v4.2.2)
Updates `leaflet.locatecontrol` from 0.90.1 to 0.91.0
- [Changelog](https://github.com/domoritz/leaflet-locatecontrol/blob/gh-pages/CHANGELOG.md)
- [Commits](https://github.com/domoritz/leaflet-locatecontrol/compare/v0.90.1...v0.91.0)
Updates `maplibre-gl` from 5.24.0 to 5.24.1
- [Release notes](https://github.com/maplibre/maplibre-gl-js/releases)
- [Changelog](https://github.com/maplibre/maplibre-gl-js/blob/v5.24.1/CHANGELOG.md)
- [Commits](https://github.com/maplibre/maplibre-gl-js/compare/v5.24.0...v5.24.1)
Updates `osm-community-index` from 6.2.0 to 7.0.0
- [Release notes](https://github.com/osmlab/osm-community-index/releases)
- [Changelog](https://github.com/osmlab/osm-community-index/blob/main/CHANGELOG.md)
- [Commits](https://github.com/osmlab/osm-community-index/compare/v6.2.0...v7.0.0)
Updates `terra-draw` from 1.39.0 to 1.40.0
- [Release notes](https://github.com/JamesLMilner/terra-draw/releases)
- [Changelog](https://github.com/JamesLMilner/terra-draw/blob/main/release.js)
- [Commits](https://github.com/JamesLMilner/terra-draw/compare/terra-draw@1.39.0...terra-draw@1.40.0)
Updates `@stylistic/eslint-plugin` from 5.10.0 to 6.0.0
- [Release notes](https://github.com/eslint-stylistic/eslint-stylistic/releases)
- [Commits](https://github.com/eslint-stylistic/eslint-stylistic/commits/v6.0.0/packages/eslint-plugin)
Updates `eslint` from 10.14.0 to 10.15.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.14.0...v10.15.0)
Syogo-Suganoya [Wed, 18 Nov 2026 11:29:15 +0000 (20:29 +0900)]
Disable the rich text help tab while it is hidden
The help tab is only shown on small screens, but Bootstrap's arrow key
navigation between tabs skips disabled tabs rather than hidden ones, so
arrowing past "Preview" on wider screens selected the invisible help tab
and left neither visible tab selected, with no way back by keyboard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Updates `activerecord-postgis` from 0.6.1 to 0.6.2
- [Release notes](https://github.com/seuros/activerecord-postgis/releases)
- [Changelog](https://github.com/seuros/activerecord-postgis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seuros/activerecord-postgis/compare/activerecord-postgis/v0.6.1...activerecord-postgis/v0.6.2)
Updates `sass-embedded` from 1.107.1 to 1.108.1
- [Commits](https://github.com/sass-contrib/sass-embedded-host-ruby/compare/v1.107.1...v1.108.1)
Updates `sanitize` from 7.0.1 to 7.0.2
- [Release notes](https://github.com/rgrove/sanitize/releases)
- [Changelog](https://github.com/rgrove/sanitize/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rgrove/sanitize/compare/v7.0.1...v7.0.2)
Updates `dalli` from 5.2.5 to 5.3.2
- [Release notes](https://github.com/petergoldstein/dalli/releases)
- [Changelog](https://github.com/petergoldstein/dalli/blob/main/CHANGELOG.md)
- [Commits](https://github.com/petergoldstein/dalli/compare/v5.2.5...v5.3.2)
Updates `opentelemetry-instrumentation-all` from 0.99.0 to 0.100.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-ruby-contrib/releases)
- [Commits](https://github.com/open-telemetry/opentelemetry-ruby-contrib/compare/opentelemetry-instrumentation-all/v0.99.0...opentelemetry-instrumentation-all/v0.100.0)
Updates `aws-sdk-s3` from 1.237.0 to 1.239.0
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)
Updates `noticed` from 3.1.0 to 3.1.1
- [Release notes](https://github.com/excid3/noticed/releases)
- [Changelog](https://github.com/excid3/noticed/blob/main/CHANGELOG.md)
- [Commits](https://github.com/excid3/noticed/compare/v3.1.0...v3.1.1)
Updates `herb` from 0.11.1 to 0.11.2
- [Release notes](https://github.com/marcoroth/herb/releases)
- [Commits](https://github.com/marcoroth/herb/compare/v0.11.1...v0.11.2)
Updates `i18n-tasks` from 1.1.2 to 1.2.0
- [Release notes](https://github.com/glebm/i18n-tasks/releases)
- [Changelog](https://github.com/glebm/i18n-tasks/blob/main/CHANGES.md)
- [Commits](https://github.com/glebm/i18n-tasks/compare/v1.1.2...v1.2.0)
Updates `overcommit` from 0.74.0 to 0.75.0
- [Release notes](https://github.com/sds/overcommit/releases)
- [Changelog](https://github.com/sds/overcommit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sds/overcommit/compare/v0.74.0...v0.75.0)
Updates `minitest` from 6.0.6 to 6.1.0
- [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc)
- [Commits](https://github.com/minitest/minitest/compare/v6.0.6...v6.1.0)
Updates `aws-partitions` from 1.1301.0 to 1.1305.0
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-partitions/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)
Updates `aws-sdk-core` from 3.264.0 to 3.268.0
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-core/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)
Updates `aws-sdk-kms` from 1.139.0 to 1.143.0
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-kms/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)
Updates `faraday-http-cache` from 2.8.0 to 3.0.0
- [Release notes](https://github.com/plataformatec/faraday-http-cache/releases)
- [Changelog](https://github.com/sourcelevel/faraday-http-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/plataformatec/faraday-http-cache/compare/v2.8.0...v3.0.0)
Updates `googleapis-common-protos-types` from 1.24.0 to 1.25.0
- [Release notes](https://github.com/googleapis/common-protos-ruby/releases)
- [Commits](https://github.com/googleapis/common-protos-ruby/compare/googleapis-common-protos-types/v1.24.0...googleapis-common-protos-types/v1.25.0)
Updates `hashdiff` from 1.2.1 to 1.2.2
- [Changelog](https://github.com/liufengyun/hashdiff/blob/master/changelog.md)
- [Commits](https://github.com/liufengyun/hashdiff/compare/v1.2.1...v1.2.2)
Updates `irb` from 1.18.0 to 1.19.0
- [Release notes](https://github.com/ruby/irb/releases)
- [Commits](https://github.com/ruby/irb/compare/v1.18.0...v1.19.0)
Updates `nap` from 1.1.1 to 1.2.0
- [Release notes](https://github.com/Fingertips/nap/releases)
- [Commits](https://github.com/Fingertips/nap/compare/v1.1.1...v1.2.0)
Updates `oauth` from 1.1.8 to 1.1.9
- [Release notes](https://github.com/ruby-oauth/oauth/releases)
- [Changelog](https://github.com/ruby-oauth/oauth/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ruby-oauth/oauth/compare/v1.1.8...v1.1.9)
Updates `opentelemetry-instrumentation-net_http` from 0.29.2 to 0.30.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-ruby-contrib/releases)
- [Commits](https://github.com/open-telemetry/opentelemetry-ruby-contrib/compare/opentelemetry-instrumentation-net_http/v0.29.2...opentelemetry-instrumentation-net_http/v0.30.0)
Updates `prism` from 1.9.0 to 2.1.0
- [Release notes](https://github.com/ruby/prism/releases)
- [Changelog](https://github.com/ruby/prism/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ruby/prism/compare/v1.9.0...v2.1.0)