After a failed import in the issue tracker, future successful attempts generate the same error message

Issue #18267 new
Theodora Boudale staff created an issue

After a failed import in the issue tracker, future successful attempts generate the same error message

After a failed import in the Bitbucket issue tracker, a future attempt that might be successful gives the same error message as the first failed attempt.

Steps to Reproduce

  1. Generate a zip file (let's call it file1.zip) from a Bitbucket issue tracker and download it to your machine
  2. Unzip the file in your machine and edit db-1.0.json so the JSON string in there is invalid
  3. Create a second zip file (file2.zip) from the folder that contains the invalid json
  4. Create a new repo in Bitbucket Cloud with an issue tracker
  5. Attempt to import file2.zip in the issue tracker of the new repo
  6. You should get a message "No db found in archive"
  7. Then, without leaving the Import & Export page, attempt to import file1.zip (which contains a .json file with valid json)

Expected Results

The import succeds and a message appears to confirm the succesful import

Actual Results

The import succeeds, however the user gets the same error message ("No db found in archive") as the one after the first failed attempt, which is misleading

Comments (0)

  1. Log in to comment