-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
squad: gatekeepersCatalyst App Backend, System Development & Integration TeamCatalyst App Backend, System Development & Integration Team
Description
Summary
Properly apply DocLocator check while fetching a referenced document from the CatalystSignedDocumentProvider during the validation process.
Description
- Update
referenced_doc_id_and_ver_checkrenaming it toreferenced_doc_ref_checkand add additional validation
fn referenced_doc_ref_check(
ref_doc: &CatalystSignedDocument,
original_doc_ref: &DocumentRef,
field_name: &str,
report: &ProblemReport,
) -> bool {
let Ok(doc_ref) = ref_doc.doc_ref() else {
report.functional_validation(
...
);
return false;
};
if &doc_ref != original_doc_ref {
report.invalid_value(
...
);
return false;
}
true
}- Add test case scenario with corrupting
DocLocatorpart in theDocumentRef - Update
ChainRule::checkwith usingdoc_refs_check, instead of manually callingprovider.try_get_doc
Metadata
Metadata
Assignees
Labels
squad: gatekeepersCatalyst App Backend, System Development & Integration TeamCatalyst App Backend, System Development & Integration Team
Type
Projects
Status
🔖 Ready