Issue
A vulnerability scanner flags JAR files that belong to a classic (V1) connector you don't use, for example sharepoint-exporter.jar from the SharePoint connector. You want to remove the connector and its files from Fusion 4.x completely, and you want to know whether Fusion has to be restarted.
Environment
Fusion 4.x (self-hosted), classic (V1) connectors running in the connectors-classic service.
Cause
In Fusion 4.x, classic (V1) connectors are installed as plugin:connector blobs in the blob store. Each node then unpacks them into folders under the Fusion installation. When the connectors-classic service starts, it reconciles the plugins on disk against the plugin:connector blobs in the blob store, and any connector that still has a blob is reinstalled.
Because of this, deleting only the JAR file that the scanner flagged is not enough. As long as the connector's blob exists, the connector is reinstalled on the next service start. The connector's files can also exist in more than one place on disk: the plugin folders, the bootstrap plugins folder, and data directories used by the connector.
Resolution
If no datasources use the connector, you can safely remove it. Follow these steps to remove both the connector's references in Fusion and its files on disk. Try the procedure in a non-production environment first.
1. Delete the connector's datasources
In Fusion, delete any existing datasources that use the connector you're removing (for example, all SharePoint datasources).
2. Remove the connector plugin from the blob store
- In the Fusion UI, go to System > Blobs.
- Under Connector Plugin, select the connector (for example, the SharePoint connector plugin).
- Click Delete Blob. When Fusion prompts you to confirm, click Yes, Delete.
This removes the connector's metadata from Fusion.
You can also delete the blob with the Blob Store API:
curl -u USERNAME:PASSWORD "http://FUSION_HOST:8764/api/blobs?resourceType=plugin:connector"
curl -u USERNAME:PASSWORD -X DELETE "http://FUSION_HOST:8764/api/blobs/<blob-id>"
3. Remove the connector's files on every node
On each Fusion node, look for JARs or directories related to the connector in the following locations and delete them. The paths are relative to the version-numbered Fusion home directory, for example ./fusion/4.2.6:
apps/connectors/connectors-classic/plugins: the connector's plugin folder, named after the connector (for example,lucid.sharepoint)apps/connectors/connectors-classic/plugins-staging: any staging folders for the connectorapps/connectors/bootstrap-plugins: the connector's bootstrap zip, if presentdata/connectors/connectors-classic: the connector's data andcrawldbdirectories, named after the connector
4. Restart only the connectors-classic service
Restart the connectors-classic service on each node to apply the changes. You don't need a full Fusion restart: other services, such as Solr, the API, the proxy and the UI, do not need to be restarted.
After the restart, re-run your vulnerability scan to confirm the connector's JARs are gone.
Notes
- Do this only for connectors you don't use. Any datasource that relies on a removed connector stops working.
- If you need the connector again later, reinstall it from the blob store as described in the Fusion 4.x connector installation documentation.