Deployment Error: “Invalid file path: Path traversal detected” When Uploading a Snapshot

Deployment Error: “Invalid file path: Path traversal detected” When Uploading a Snapshot

Summary: In Configuration Manager for Jira (CMJ), uploading a snapshot from a local machine may fail with the message Invalid file path: Path traversal detected. In the cases reviewed, this was caused by a product bug affecting file upload in CMJ 8.0.0. The issue did not affect deployments when the snapshot was loaded from the server file system, and it was resolved in a later CMJ release.

This article explains the known behavior, how to confirm whether you are hitting the same issue, and which workaround or fix to use.

Environment

  • Product: Configuration Manager for Jira (CMJ)

  • Platform: Jira Data Center

  • Scenario: Deploying a CMJ snapshot from a downloaded file using the Choose File option

  • Affected version observed: CMJ 8.0.0

  • Jira versions reported in support cases: Jira 10.3.7 and Jira 10.3.16

Problem

When trying to deploy a CMJ snapshot by selecting a ZIP file from a local machine, CMJ shows this error:

Invalid file path: Path traversal detected

Customers reported the following behavior:

  • The error appears immediately after choosing the snapshot file for upload.

  • The snapshot itself is valid and can deploy successfully when loaded from the server or current instance instead of the browser upload dialog.

  • No useful CMJ error may appear in atlassian-jira.log.

  • The issue can affect snapshots without attachments and with valid ZIP integrity.

Important: This symptom can look like a corrupt file, invalid filename, or browser upload problem. However, if the same snapshot deploys successfully from the Jira server file system, the root cause is likely the known upload bug rather than snapshot corruption.

Cause

In the reviewed support cases, this issue was confirmed as a bug in CMJ 8.0.0 affecting snapshot upload during deployment.

The problem is specific to the browser-based file upload path. It does not necessarily mean:

  • the snapshot ZIP is damaged,

  • the file path on the user's Windows machine is unsafe, or

  • the snapshot structure is invalid.

If the same snapshot works when deployed from a path on the target Jira server, that strongly indicates the upload mechanism is the issue.

Solution

The recommended fix is to upgrade CMJ to a version that includes the fix.

Known fix: Support confirmed that CMJ 8.0.1 contains the fix for this specific upload issue.

If you are on CMJ 8.0.0 and seeing this exact error during file upload, upgrade first and test the deployment again.

If you are on a newer Jira version, also verify that you are running a currently supported CMJ release for that Jira version.

Workarounds

If you cannot upgrade immediately, use one of the following workarounds.

Workaround 1: Deploy from a file path on the target Jira server

Instead of uploading the snapshot from your browser, copy the snapshot ZIP to the target Jira server and use CMJ's Path to snapshot file option.

  1. Copy the snapshot ZIP to a location accessible by the Jira application on the target server.

  2. Open Apps > Configuration Manager > Deploy.

  3. Select From Snapshot File.

  4. Choose Path to snapshot file instead of browser upload.

  5. Enter the full server path to the snapshot ZIP.

  6. Load the file and continue the deployment.

Why this helps: This bypasses the affected browser upload flow and uses the server-side file path instead.

Workaround 2: Downgrade temporarily if upgrade is not yet possible

In one confirmed support case, Appfire support advised temporarily downgrading from CMJ 8.0.0 to the previous working release until the fix was available. After downgrade, file upload worked again.

Caution: Downgrading apps in Jira Data Center should be planned carefully. Test first, confirm version compatibility, and follow your standard change-management process before uninstalling or reinstalling CMJ-related apps.

How to confirm you are seeing the same issue

You are likely hitting this known bug if all of the following are true:

  • You are using CMJ 8.0.0.

  • The error appears when selecting a snapshot file from your local machine.

  • The same snapshot deploys successfully when loaded from the Jira server file system.

  • The snapshot is a valid CMJ ZIP and has not been manually altered.

  • There are no clear corruption errors such as ZIP parsing or END header failures.

Check

What it indicates

Check

What it indicates

Upload from browser fails

Possible known CMJ 8.0.0 upload bug

Deploy from server path works

Strong confirmation the snapshot is valid and the issue is upload-specific

No attachment files in snapshot

Helps rule out size or attachment transfer issues

No ZIP corruption errors

Helps distinguish from a corrupted snapshot case

What to check if the issue persists after upgrade

If you still see the same error after upgrading, review the following:

  • Confirm the installed CMJ version really includes the fix.

  • Retry with a newly downloaded snapshot.

  • Avoid special characters in the snapshot filename.

  • Test with the Path to snapshot file method to determine whether the issue is still limited to upload.

  • Check browser developer tools or proxy logs for HTTP 500 or request interruption during upload.

  • Review whether a reverse proxy, WAF, or security layer is modifying or blocking multipart file uploads.

Corrupted snapshot: Usually produces ZIP parsing or archive errors, not only a path traversal message. Timeout or proxy error: More common with large files or long-running requests and may show connection failures rather than an immediate path validation message. Server file permission issues: More likely when using Path to snapshot file, not when selecting a local file in the browser.

Best practices

  • Keep Jira and CMJ on supported, current versions.

  • Test snapshot creation and deployment in a non-production environment after upgrades.

  • If browser upload fails, compare behavior with server-path deployment before assuming the snapshot is invalid.

  • Retain an original, unmodified copy of the snapshot ZIP for troubleshooting.

FAQ

No. In the documented CMJ 8.0.0 cases, the snapshot file was valid and the problem was caused by a bug in the upload flow.
Yes. Use the Path to snapshot file option and load the snapshot from the target Jira server's file system.
Support confirmed that CMJ 8.0.1 includes the fix for this specific issue.

References