discourse/lib/plugin
ducks 6971fffa32
FIX: crash in Admin::PluginsController when plugin has nil commit URL path (#35186)
The `discourse_owned?` method in `lib/plugin/instance.rb` was calling
`.split` on `parsed_commit_url.path` without checking if the path could
be nil. This caused a 500 error on `/admin/plugins` when any plugin had
a commit URL that parsed successfully but returned a nil path (e.g.,
plugins without a git remote configured).

Added a nil check for `parsed_commit_url.path` to gracefully handle this
edge case and prevent the crash. Also added a test case to verify the
method returns false when the parsed URL has a nil path.
2025-10-06 14:39:23 +00:00
..
filter.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
filter_manager.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
instance.rb FIX: crash in Admin::PluginsController when plugin has nil commit URL path (#35186) 2025-10-06 14:39:23 +00:00
metadata.rb DEV: Add discourse-doc-categories to metadata (#34920) 2025-09-26 17:12:21 +08:00