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
Tighten validation for id
fields
#7604
Comments
@amercader enforcing Locally (after running a CKAN Harvester) I have resources with ID The following is an example of
|
@pdelboca I don't recall the harvester extension changing the incoming resource ids in any way, but maybe I'm wrong. Or maybe you have other extensions/custom schemas at play? In any case perhaps we can loosen up the requirement a bit by using an |
Having loose or inconsistent validation on
id
fields can lead to confusing behaviour or security concerns. Let's do a review of the various entities withid
field in the model and apply the same validation to all of them (if possible). Validators should include:Whenever possible we should look at enforcing those not only with validators but also at the SQLAlchemy level, eg using inserts instead of upserts when creating records.
Some of these are already applied to some entities, but it would be good to be consistent across all models
The text was updated successfully, but these errors were encountered: