Details
-
Bug
-
Status: Open
-
Medium
-
Resolution: Unresolved
-
Xporter DC 7.0.2
-
None
-
None
-
Jira Version: 9.12.12
Xporter Version: 7.0.2
Description
Issue Overview: A user is unable to perform an XLSX export via Xporter. The application logs reveal that the Xporter plugin code attempts to verify the version of Xray installed (XporterIntegrationUtils.checkAppVersion), but triggers a NullPointerException because the PluginAccessor cannot locate the Xray plugin, resulting in an unhandled crash.
Analysis So Far:
Root Cause Identified: The stack trace confirms the crash occurs at com.xpandit.jiraxporter.utils.XporterIntegrationUtils.checkAppVersion. The code fails to gracefully handle scenarios where the Xray plugin is completely absent from the Jira instance (i.e., it assumes the plugin might exist and tries to access its metadata).
Audit Log Discrepancy: The Xporter Audit Log reports the export as a "Success" because the failure occurs during the generation phase after the initial request initiation, and the exception is likely caught by the export view handler in a way that doesn't properly signal an error to the Audit Log.
Vpn impact: Client confirmed that the error occurs regardless of whether the user is connected to a VPN.
Impact: This appears to be a bug in the Xporter code regarding its dependency checks for Xray.
Summary of Analysis for L3S:
The stack trace confirms a NullPointerException triggered when XporterIntegrationUtils tries to retrieve plugin information for a non-existent Xray plugin.
This is a code-level defect where the integration check fails to verify the existence of the plugin before invoking getPluginInformation().
We request that Engineering review the checkAppVersion method to include a null-check (or Optional handling) for the Plugin object to prevent this crash in environments without Xray.
Steps to Reproduce
Ensure the Jira instance does not have the Xray plugin installed.
Attempt to perform an XLSX export from the Issue Navigator using Xporter.
Check the server logs during the export attempt.
Actual Result
The export fails, and the server logs register a java.lang.NullPointerException at com.xpandit.jiraxporter.utils.XporterIntegrationUtils.checkAppVersion. The UI likely displays an error or times out, while the Xporter Audit Log incorrectly labels the attempt as a "Success."
Expected Results
Xporter should perform the export successfully without attempting to verify Xray integration if Xray is not present, or at the very least, gracefully catch the exception and display a clear error to the user without crashing the export process.