Closed (fixed)
Project:
Field Encryption
Version:
8.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2016 at 14:12 UTC
Updated:
21 Sep 2016 at 02:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerComment #3
talhaparacha commentedThank you @dawehner for the patch in #2. As per my review, it fixed the FieldEncryptCacheTest and FieldEncryptProcessEntitiesTest but FieldEncryptTest and EncryptedFieldValueManagerTest were still failing.
Here is another patch which combines all the changes from the patch in #2 along with some additions, and fixes all the tests. It also brings the module back to a stable condition.
Since the module is currently broken (as can be inferred from #2779853: EntityStorageException: Missing bundle for entity type node), I’m raising the priority for this issue.
Comment #4
talhaparacha commentedThe additional changes in the patch in #3 are explained below:
1. We need to assert for 10 encrypted field values and not 5 in testEncryptFieldTranslation(). That’s because there should be 5 encrypted values for English text along with 5 encrypted values for French text.
2. Typo correction.
3. No need for grouping an abstract class.
4. In #2744887: Fix automatic tests this piece of code:
was changed to this for simplification purposes:
But on a closer analysis it can be seen that these two code pieces are NOT equivalent. More specifically, the former can return NULL but the latter will never return NULL. This change was causing failures in testEncryptFieldRevision() and hence I’ve tried to correct it.
5. Additional mocking required because of the change mentioned in last point.
Comment #6
talhaparacha commentedBecause testbot doesn't pull dev versions, but rather "stable" releases so Encrypt module dependency wasn't met.
Comment #7
colanWorks well in my testing.
Comment #9
nerdsteinPushed to 8.x-2.x