Missing repo in content view if "Publish via HTTP" is changed
- Product P exists with Yum Repository R. Publish via HTTP is turned off!
- Content View CV exists with Repository R. Version 1 was published an promoted to Development.
We want to publish the CV and its Repository via HTTP. Therefore, we do:
- Change Publish via HTTP to on for Repository R.
- Publish a new Version of CV (Version 2) and promote it to Development
Result: The Repository in CV for environment Development is still not fully available via HTTP.
Expected: Repository is reachable via HTTP in CV for environment Development.
Issue found with Katello 3.4.5
Fixes #21612 - Promote op performs distro publish
Previously commits added smarts on running the metadata operations on a
CV publish only if necessary. The code would match content and force a
distribution publish only if content changed. However that code does not
look for changes related to the "publish via http"/"unprotected" on a
repo. So if the "publish-via-http" option on a repo is changed, the
promote operation would not perform a distributor publish even though it
This commit fixes that by making sure that "matching content" operation
happens only if the "publish-via-http"/"unprotected" attribute has not