Project

General

Profile

Actions

Feature #28412

open

Reject plugin same ID with registered one

Added by Sho HASHIMOTO about 6 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Redmine can register plugin same ID with registered one.
Currently, below problems exist.

  • @registered_plugins[id] is overwritten.
  • /admin/plugins shows only one plugin
  • but load_path, view_path, ... are changed

I want to reject and log warning second or later plugins.

functional/settings_controller_test.rb was already registered foo plugin twice. I cleared on teardown to pass unit test.

This ticket related to #27705.


Files

redmine_plugin_register.patch (2.96 KB) redmine_plugin_register.patch Sho HASHIMOTO, 2018-03-24 03:38
Actions

Also available in: Atom PDF