Project

General

Profile

Actions

Bug #36146

closed

Need a better warning message for empty incremental export

Added by Partha Aji almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Incremental export does not handle content view versions with no repositories.

  1. Create a content view version with a repo
  2. Remove the repo from the content view and publish again (Version 2.0 should not have any repos)
  3. Do a "complete" export of version 1
  4. Do an "incremental" export of version 2

Expected:
Error along the lines of "You cannot incrementally export since this version has no repositories"

Actual:

HTTP status code: 400
Response headers: {"Date"=>"Tue, 14 Feb 2023 20:55:40 GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, POST, HEAD, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"136", "X-Content-Type-Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Correlation-ID"=>"b4463ab7-828a-4bf8-9839-eafcc3634cb0", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 dhcp131-67.gsslab.pnq2.redhat.com", "Connection"=>"close"}
Response body: {"non_field_errors":["Incremental export can only be requested when there is a previous export or start_versions= has been specified."]}
undefined method `output_file_info' for nil:NilClass

Actions

Also available in: Atom PDF