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

Add forbidden checksum checks to Artifact and RemoteArtifact #1161

Closed
wants to merge 1 commit into from

Conversation

daviddavis
Copy link
Contributor

fixes #8323

Please be sure you have read our documentation on creating PRs:
https://docs.pulpproject.org/contributing/pull-request-walkthrough.html

@pulpbot
Copy link
Member

pulpbot commented Mar 2, 2021

Attached issue: https://pulp.plan.io/issues/8323

@daviddavis daviddavis force-pushed the issue8323 branch 4 times, most recently from 12e7fa3 to 06ed9bd Compare March 2, 2021 21:53
@daviddavis daviddavis marked this pull request as draft March 2, 2021 22:31
@daviddavis daviddavis force-pushed the issue8323 branch 3 times, most recently from d19d5d5 to 7796792 Compare March 2, 2021 23:29
@daviddavis daviddavis changed the title Add a checksum check to RemoteArtifact before saving Add forbidden checksum checks to Artifact and RemoteArtifact Mar 2, 2021
_("Checksum algorithm {} is forbidden for this Pulp instance.").format(attrname)
)
else:
super(DigestModel, self).__setattr__(attrname, val)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The stages code instantiates Artifacts and RemoteArtifacts but then calls bulk_get_or_create() so a before_save isn't sufficient.

@daviddavis daviddavis marked this pull request as ready for review March 2, 2021 23:47
@daviddavis daviddavis marked this pull request as draft March 4, 2021 17:56
@daviddavis daviddavis closed this Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants