Content export fails with error Validation failed: Label has already been taken when using a non-admin user

Solution Verified - Updated -

Issue

  • An attempt to export a repository or a content-view version or the entire library environment, using a non-admin user, one of the following errors occurs:

    # hammer content-export complete repository --name TestR --product TestP --organization-id 1
    Could not export the repository:
     Validation failed: Label has already been taken, Name has already been taken   
    
    # hammer content-export complete library --format syncable --organization-id 1 
    Could not export the library:
     422 Unprocessable Entity
    
    • The same problem can be reproduced using the REST API endpoint or the Red Hat Satellite Ansible Collection for content export.

    • The non-admin user in question has the Content Exporter role assigned to it.

Environment

  • Red Hat Satellite 6.15.0 and before

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content