A plugin can no longer listen for its own PluginUninstallingEvent since Atlassian Plugins 5

Description

Create a component that listens for its own PluginUninstallingEvent...

EXPECTED RESULT
The DO SOME CLEANUP HERE should be executed

ACTUAL RESULT
The plugin is disabled, and the component is destroyed, unregistering the event listener before it has chance to receive its PluginUninstallingEvent

Environment

None

Testing Notes

Add notes...

Activity

Show:
Andrew S
September 4, 2020, 1:53 AM

Instead of listening for events, could your component implement com.atlassian.sal.api.lifecycle.LifecycleAware?

The semantics would be slightly different in that you would be doing your cleanup when the plugin is stopped, not uninstalled, but maybe that’s better anyway? I guess it depends on what cleanup you’re doing.

George Mihailov
September 1, 2020, 2:59 AM

+1 …

Destan Sarpkaya
April 28, 2020, 11:08 AM

is there any way to vote for this issue? I don’t want to write +1 but…

Assignee

Unassigned

Reporter

Ashwal Dixit