Bug #10907

Archival description CSV export from clipboard with 0 results yields fake .zip file

Added by Mike Gale over 3 years ago. Updated almost 3 years ago.

Status:VerifiedStart date:02/22/2017
Priority:MediumDue date:
Assignee:-% Done:

0%

Category:CSV export
Target version:Release 2.4.0
Google Code Legacy ID: Tested version:2.4
Sponsored:No Requires documentation:

Description

To reproduce:
1. Create a draft record
2. Add to clipboard
3. Go to clipboard
4. Attempt to export archival description CSV with "include descendants" unchecked

Result: Task claims to have completed successfully and that it generated a 0 byte .zip file. However, going to job management page and trying to open this 0 byte file gives a page not found error.

Expected result: the task should not indicate that it generated a file, and should mention no results were set for the export.

no-export.png (32.9 KB) Dan Gillean, 07/25/2017 05:47 PM

History

#1 Updated by Mike Gale about 3 years ago

  • Status changed from New to Code Review
  • Assignee changed from Mike Gale to Mike Cantelon

#2 Updated by Mike Cantelon about 3 years ago

  • Status changed from Code Review to Feedback
  • Assignee changed from Mike Cantelon to Mike Gale

Looks good to me!

#3 Updated by Mike Gale about 3 years ago

  • Status changed from Feedback to QA/Review
  • Assignee changed from Mike Gale to Dan Gillean
  • Tested version 2.4 added

#4 Updated by Dan Gillean almost 3 years ago

  • File no-export.png added
  • Status changed from QA/Review to Verified
  • Assignee deleted (Dan Gillean)
  • Target version set to Release 2.4.0

Looks great!

If there's nothing on the clipboard, the export button is not present. However, if you arrive on the clipboard page with results, then remove them and click export before a page reload, the job will still realize there are 0 results, and report so rather than producing a fake zip file. See attached image.

Also available in: Atom PDF