Publish of content view is aborted with Error "Validation failed: Relative path is too long (maximum is 255 characters)"
We wanted to publish a content view that contains a repository with a relatively long repo_label and got the message:
Result: the publish is aborted with the error message "Validation failed: Relative path is too long (maximum is 255 characters)"
The error seems to be caused by the nature of the `relative path`, that consists of several labels (e.g. product, repository, content view, etc). The relative path itself can be up to 255 characters, and the sub-components are allowed to be 255 characters as well. This might eventually clash.
A workaround is to alter the `katello_repositories` foreman db table manually, as well as the `cp2_content` candlepin table.
#4 Updated by Nadja Heitmann 8 months ago
- on my local Forklift with Katello 3.18, Foreman 2.3
- on a system with Katello 3.16, Foreman 2.1.3
I tried to test the same on the newest Forklift with centos7-katello-devel-stable, but it would give me an SSL error when I try to publish any content views (Katello 3.18, Foreman 2.4).
#10 Updated by Jonathon Turel about 1 month ago
I don't think the cp2_contsnts fields need an update since the label and url don't get constructed with the CV label or environment path. We definitely need to do something about relative_path for the katello_repositories though.