Comments (11)
That would probably be caused by some bug...
Have you tried clearing your cache?
Upon displaying the node, are you seeing "[ENCRYPTED]" instead of what should be the decrypted value? Or just nothing at all?
from field_encrypt.
Yes, I have cleared cache.
I am seeing "[ENCRYPTED]" instead of the decrypted values.
from field_encrypt.
Have you changed the field encryption settings after these nodes were created?
from field_encrypt.
No. I configured the field storage first, then created my test nodes.
from field_encrypt.
Hmm do you have steps to reproduce this on a clean Drupal installation?
Are you using 8.0.x or 8.1.x?
And using the latest code in master branch?
from field_encrypt.
I'm using core 8.1.x and the latest code in the master branch of field_encrypt
. I tried to reproduce the problem on a fresh Drupal installation and was unable to do so. Presumably, then, it's a configuration issue or module interaction in my setup. Are there any known issues with revisioning or workbench_moderation
, by chance? Or conversely, has anyone successfully used the two modules together--field_encrypt
and workbench_moderation
?
from field_encrypt.
I'll have to check out the interaction with these 2 modules.
The field encryption interacts on revisions as well, since fields can have multiple( encrypted) revisions, so maybe there's some clashing functionality there... Will investigate.
from field_encrypt.
I have confirmed that the problem has to do with the interaction with Workbench Moderation. I can reproduce the problem both in my application and on a fresh installation of Drupal 8.1.x as follows:
- Install and configure
field_encrypt
and family. - Install
workbench_moderation
. - Create a new content type.
- Add an encrypted field.
- Create a node of the new type, and the encrypted field gets decrypted properly on display and edit.
- Enable moderation (
workbench_moderation
) on the content type. - Create a node of the same type, and the encrypted field does NOT get decrypted properly on display or edit.
Here are the versions of everything I tested with:
$ drush core-status drupal-version
Drupal version : 8.1.0-beta1
$ drush pm-list --status=enabled --no-core
Package Name Type Version
Encryption Field Encrypt (field_encrypt) Module
Other Workbench moderation (workbench_moderation) Module 8.x-1.0-beta1
Security Encrypt (encrypt) Module 8.x-3.0-alpha1
Security Key (key) Module 8.x-1.1
Security Real AES (real_aes) Module 8.x-1.0-alpha1
(For field_encrypt
I used the tip of master
at the time, or f89f9ff46242a8c56be655f5580e1eb5032bdd20
.)
from field_encrypt.
Thanks @TravisCarden for giving details on your setup.
I have been able to reproduce this problem, and created a solution for it.
The code to save the encrypted data was a not optimal and error-prone.
I have now created a better alternative in #41, which fixes the incompatibilities with workbench_moderation.
from field_encrypt.
Hi @TravisCarden,
Can you check with the latest master branch?
You'll have to clear the caches and re-test adding the content, but now it should be compatible with workbench_moderation. Let me know if you're still experiencing issues
from field_encrypt.
That fixes it, @svendecabooter! Good work; thanks!
from field_encrypt.
Related Issues (20)
- Batch Process HOT 3
- Evaluate caching of decrypted data HOT 15
- add UninstallValidator HOT 5
- Write tests
- Alter database fields to accommodate encrypted content HOT 6
- Investigate field updates through CMI HOT 3
- Fix TravisCI
- Fatal errors in \Drupal\field_encrypt\FieldEncryptProcessEntities::checkField() HOT 1
- Fatal error: Cannot call abstract method Drupal\Core\Entity\FieldableEntityInterface::baseFieldDefinitions() in field_encrypt/src/Entity/EncryptedFieldValue.php HOT 9
- Provide alternatives to "[ENCRYPTED]" storage values for other field types. HOT 3
- Followup: add field deletion tests HOT 1
- Update README HOT 1
- Add a hook that allows you to select whether you want a field/entity to be encrypted as a per entity basis. (not per entity type) HOT 2
- Create plugin system for field types HOT 3
- Incompatibility with Panelizer HOT 2
- Workbench moderation + field encrypt + translations isn't working HOT 2
- Document module in readme HOT 1
- Integrate with Travis HOT 2
- Perform code review HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from field_encrypt.