-
Notifications
You must be signed in to change notification settings - Fork 3
Add file size validation #45
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
base: develop
Are you sure you want to change the base?
Conversation
d88df55 to
76f1594
Compare
|
Although the grouping is nice, let us not modify the IDs of existing tests as they lose their meaning then. Let's simply introduce this new test as AST23 and leave the old IDs intact. I do not have any other comments. |
|
Reorder issue fixed and all commands tested. |
| <![CDATA[ | ||
| SELECT COUNT(*) documents_with_mismatched_file_sizes | ||
| FROM arkivstruktur.dokumentobjekt | ||
| WHERE filstoerrelse <> _detected_file_size; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the variable name begins with underscore? The same is valid for all variables of the type as i see.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The column names starting with underscore show that the value is generated by the extraction validator and not present in the extraction files. In that case the _detected_file_size is the value of the actual file referenced on the system, not the value stored in arkivstruktur.xml.
|
Any hope to have this change included in the source? Instead of looking at the file size, it might be more useful to check the checksum of the content. If the size is different, the checksum will be different, but it will also detect incorrect content. |
Hey, There already is a test for the checksums - This is obviously a pretty old pull request and I do not remember why we may have left it hanging like so, but the presence of |
No description provided.