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

Packit 400 errors #3471

Closed
praiskup opened this issue Oct 10, 2024 · 1 comment · Fixed by #3472
Closed

Packit 400 errors #3471

praiskup opened this issue Oct 10, 2024 · 1 comment · Fixed by #3472
Assignees

Comments

@praiskup
Copy link
Member

Follow up for #3372 and #3443. Now we get error 400 sometimes.

praiskup added a commit to praiskup/copr that referenced this issue Oct 10, 2024
The commit 609d369 only partly resolved
the TOCTOU effects (which we are not fixing here either).  The problem
being fixed now is that we duplicated the duplication check,
- once in the `validate_on_submit()`, then
- using the `add(check_for_duplicates=True)`.
The later check is wrong though, because it raises an exception that is
not handled properly (exist_ok=True ignored).

Complements: fdff0c8
Complements: 609d369
Fixes: fedora-copr#3471
@praiskup
Copy link
Member Author

Hot-fixed in production.

@praiskup praiskup self-assigned this Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant