-
Notifications
You must be signed in to change notification settings - Fork 71
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
Failing Test: DerivativeReactionTest #2061
Comments
Exception is being thrown from this function in the File Hash module: function filehash_merge(FileInterface $file) {
Drupal::database()
->merge('filehash')
->key(['fid' => $file->id()])
->fields($file->filehash)
->execute();
} |
File Hash is adding an empty array to the 'fylehash' field but only when called by the unit test. If I add the same file using the GUI File Hash behaves normally. Rolling back from version 1.9 to 1.5 of fylehash doesn't change this. |
Forced downgrade to Drupal 9.2, test still fails with the same error. |
This seems to be a bug in the FIleHash module, but one that's hard to reproduce FileHash is calling the global config service to get the active hashing algorithms, but when this is called from the test it's getting back an empty array. This is then causing FileHash to return an empty array that it tries to insert into the database, which results in the SQL syntax error. Will try to make a minimal reproducing test to post to the module's bug queue and come up with a patch in the mean time. |
The following test fails when running on a fresh Islandora installation:
HTML outup:
The text was updated successfully, but these errors were encountered: