Issue Number | 5100 |
---|---|
Summary | Schema Validation for SummaryURL |
Created | 2022-03-03 11:05:12 |
Issue Type | Bug |
Submitted By | Englisch, Volker (NIH/NCI) [C] |
Assigned To | Englisch, Volker (NIH/NCI) [C] |
Status | Closed |
Resolved | 2022-06-08 14:35:44 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.312316 |
Under certain conditions we identified that the validation for the
SummaryURL does not work correctly. It should not be possible to
validate a document if another document with the identical cdr:xref
attribute value already exists.
In other words, the SummaryURL attribute has to be unique across active
documents (with the exception of one of the documents containing the
WillReplace element).
This bug requires Python as well as filter changes.
The following filter has been modified:
CDR315446.xml - Module: PersonLocations Denormalization
https://github.com/NCIOCPL/cdr-server/commit/35e824b
This filter is used in three filter sets:
Denormalization Organization Set
Denormalization PDQBoardMemberInfo Set
Denormalization Person Set
In order to run diff reports for the three doctype QC reports I had to modify one of our publishing control files because these reports were missing from the set:
QcFilterSets.xml
https://github.com/NCIOCPL/cdr-publishing/commit/f41fd96
A diff report for the QC reports for all three document types showed no differences (except for the time stamp).
This is ready on DEV.
Just to make the record clear: the filter modification made for this ticket was not directly related to the summary duplicate URL custom validation rule, but was to correct a bug found when we were reviewing all of the CDR source code to find anything which the fix for the bug breaking the validation rule might itself break.
Verified on DEV. Thanks!
We need to discuss how to address this issue due to the problem we encountered with SVPC summaries during testing. Currently some of the SVPC SummaryURLs are duplicated with the partner summaries. We had to remove WillReplace elements from the SVPC summaries because they were preventing publishing of the SVPC summaries when we were testing on QA. So, we need to come up with a better solution of handling duplicate SummaryURLs.
I've added the ticket OCECDR-5120 to address this issue.
I tried to re-verify that I with two summary documents sharing one SummaryURL, it will trigger the validation warning message but I am not able to reproduce that on DEV.
These are the two documents with same SummaryURL.
CDR0000805710
CDR0000062906
I tried to create a publishable version for document CDR805694 and got the expected error.
The reason why your two summaries don't fail validation is because CDR805710 includes the WillReplace element. As you know that element will exclude the document's URL from being included in the validation check.
Thank you ~volker I was able to get the validation error message to show after removing the WillReplace element.
Verified on DEV. Thanks!
Verified on QA. Thanks!
The related tickets are on PROD and are closed.
I'm closing this one, too.
File Name | Posted | User |
---|---|---|
Screen Shot 2022-06-08 at 14.15.55.png | 2022-06-08 14:17:57 | Englisch, Volker (NIH/NCI) [C] |
Elapsed: 0:00:00.001368