Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When bundles get redeployed, some objects/references do not get redeployed correctly #175

Open
yregaieg opened this issue Jan 10, 2018 · 2 comments
Assignees
Labels

Comments

@yregaieg
Copy link
Contributor

I'm submitting a ... (check one with "x")

[X] bug report
[ ] feature request
[ ] question

Expected Behavior

When bundles get redeployed, I expect extensions such as Behaviours and Actions to be correctly undeployed and then re-deployed

Current Behavior

When bundles having Behaviours and Actions get redeployed without being explicitly deleted first, that often results in problems when dealing with the concerned features (Behaviours running multiple times, action with forms not being available through the share interface..)

Possible Solution

When installing a bundle, check first if an other bundle with the same ID does exist, in which case delete (undeploy) it before going forward with the process

Steps to Reproduce (for bugs)

  1. Create a bundle with Behaviours, Actions having forms
  2. Deploy and re-deploy the bundle over and over again
  3. try to access the action form through share / trigger an action that would trigger a behaviour from your bundle
  4. The form is not shown (an error is shown instead) / the Behaviour will (possibly) execute multiple times even though there was a single trigger

Context

This bug is particularly annoying when hot re-deployment are made to production systems and then some feature become either unusable or blocking until system is restarted (or the DE bundle is deleted explicitly then redeployed, which does not always works)

Your Environment

  • Alfresco version used: 5.1 EE
  • DE version used: 1.4.2
@yregaieg yregaieg added the bug label Jan 10, 2018
@yregaieg yregaieg changed the title BUG: When bundles get redeployed, some objects/references do not get redeployed correctly When bundles get redeployed, some objects/references do not get redeployed correctly Jan 10, 2018
@kerkhofsd
Copy link
Contributor

Are the Behaviours and Actions registered the 'Dynamic Extensions' way, by using the corresponding annotations?
I have had similar issues with Behaviours where I used the policyComponent directly to register my behaviour.

@yregaieg
Copy link
Contributor Author

That was ages ago, sorry I don't recall if this was related to annotation based behaviours but indeed if the behaviour is bound manually using policyComponent, I would expect the reference to remain unless the developer de-register it explicitely when bundle is unloaded... So I guess this one was meant for Annotation based behaviours ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants