Can't access plugins install at server level in context web admin

Description

You can only install an extension at either the server or web level, even when set to all

this means you can't install the log viewer in a web context if it's in the server context

here is a patch to allow the web context admin to also run any plugins from the server context

https://github.com/lucee/Lucee/pull/901/files

Environment

None

Activity

Show:
Zac Spitzer
March 27, 2020, 11:38 AM

just to be clear, you're installing at the server level?

this is painful to work on due to LDEV-2780, and

Zac Spitzer
March 27, 2020, 12:02 PM

just updated the patch

  • use a separate cache for server and web plugins (avoids path confusion)

  • always set the server plugin mapping, even when it's not used (i.e at server level) previous server admin sets different mappings to the web admin

https://github.com/lucee/Lucee/pull/901/commits/168f6d2b65858371081312002c2b6cb81d6a264b

Pothys - MitrahSoft
April 1, 2020, 8:30 AM

Hai , Any update for this issue? Is this completed.

Zac Spitzer
April 1, 2020, 9:25 AM

it's been working for me for a few days

just added this last step, previously the updates were only for the current context

track admin plugin refresh required across contexts

  • use a lock when clearing application plugin cache

  • track last updated in server.lucee_admin_plugins_last_updated and application.lucee_admin_plugins_last_updated and reload if updated

https://github.com/zspitzer/Lucee/commit/b5000c1b38d0f9dc516e712c49408f57991ea197

Zac Spitzer
May 19, 2020, 12:23 PM

merged

Fixed

Assignee

Pothys - MitrahSoft

Reporter

Zac Spitzer

Priority

New

Fix versions

Affects versions

Configure