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

Issue 30291 osgi actionlet reinit failure #30292

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

wezell
Copy link
Contributor

@wezell wezell commented Oct 8, 2024

This pull request forces OSGI to init BEFORE an actionlet is registered. It changes to the WorkflowAPIImpl class to improve OSGI initialization and error handling. The most important changes include adding a new import for OSGIUtil, modifying the registerBundleService method to ensure OSGI is initialized, and adding error handling for null BundleContext.

Improvements to OSGI Initialization and Error Handling:

This PR fixes: #30291

@wezell wezell force-pushed the issue-30291-osgi-actionlet-reinit-failure branch from 55fc7f8 to 87f5447 Compare October 9, 2024 12:33
@wezell wezell added this pull request to the merge queue Oct 9, 2024
Copy link
Contributor

@swicken-dotcms swicken-dotcms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No suggestions here, looks good

Merged via the queue into main with commit a628ec4 Oct 9, 2024
34 of 35 checks passed
@wezell wezell deleted the issue-30291-osgi-actionlet-reinit-failure branch October 9, 2024 18:32
spbolton pushed a commit that referenced this pull request Nov 11, 2024
This pull request forces OSGI to init BEFORE an actionlet is registered.
It changes to the `WorkflowAPIImpl` class to improve OSGI initialization
and error handling. The most important changes include adding a new
import for `OSGIUtil`, modifying the `registerBundleService` method to
ensure OSGI is initialized, and adding error handling for null
`BundleContext`.

### Improvements to OSGI Initialization and Error Handling:

*
[`dotCMS/src/main/java/com/dotmarketing/portlets/workflows/business/WorkflowAPIImpl.java`](diffhunk://#diff-5a5ef615df4ac7495073609cffd31eabd85513c4c81dd48cc82b5c6fd0523934R143):
Added import for `org.apache.felix.framework.OSGIUtil`.
*
[`dotCMS/src/main/java/com/dotmarketing/portlets/workflows/business/WorkflowAPIImpl.java`](diffhunk://#diff-5a5ef615df4ac7495073609cffd31eabd85513c4c81dd48cc82b5c6fd0523934L370-R387):
Modified `registerBundleService` method to initialize OSGI framework and
added error handling for cases where OSGI is not initialized or
`BundleContext` is null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OSGi does not always init properly when adding Workflow Actionlets
4 participants