Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 500 error when using flatpak with reclaimed content [PULP-262] #1899

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

gerrod3
Copy link
Contributor

@gerrod3 gerrod3 commented Jan 21, 2025

After looking through the history and current state of the Manifest model I came up with this solution to try to get the metadata off the model if it is there and then fallback to the config blob. If the config blob is not there during a fallback then the image will be skipped from the returned results of the index call. This bugfix can only really be back ported to 0.22 since it relies on the new manifest fields. Flatpak index was added in 0.16, so a different solution would be needed to be backported for these inbetween releases. Thoughts on whether I should create these other backports?

fixes: #1887

Copy link
Contributor

@ianballou ianballou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this on a Katello machine running pulp container 2.22.0, and it seems to be working well. I switch some repos from immediate to on demand and ran reclaim space. After that, the index still remained.

@gerrod3 gerrod3 changed the title Fix 500 error when using flatpak with reclaimed content Fix 500 error when using flatpak with reclaimed content [PULP-262] Jan 21, 2025
@gerrod3 gerrod3 merged commit 88b2002 into pulp:main Jan 22, 2025
12 checks passed
Copy link

patchback bot commented Jan 22, 2025

Backport to 2.22: 💚 backport PR created

✅ Backport PR branch: patchback/backports/2.22/88b200234dc1d8fce5ac22b2184ca6d2816f74fd/pr-1899

Backported as #1900

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

500 when accessing flatpak index after space reclamation
3 participants