Project

General

Profile

Actions

Bug #36146

closed

Need a better warning message for empty incremental export

Added by Partha Aji over 1 year ago. Updated over 1 year 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 #1

Updated by Partha Aji over 1 year ago

  • Category set to Inter Server Sync
Actions #2

Updated by Partha Aji over 1 year ago

  • Bugzilla link set to 2169866
Actions #3

Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Assignee set to Partha Aji
  • Pull request https://github.com/Katello/katello/pull/10468 added
Actions #4

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.8.0 added
Actions #5

Updated by Ian Ballou over 1 year ago

  • Status changed from Ready For Testing to Closed
  • Fixed in Releases deleted (Katello 4.8.0)

Closing -- upstream PR is merged.

Actions #6

Updated by Ian Ballou over 1 year ago

  • Target version set to Katello 4.9.0
Actions #7

Updated by Partha Aji over 1 year ago

  • Target version changed from Katello 4.9.0 to Katello 4.8.0
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF