Giter Club home page Giter Club logo

Comments (11)

svendecabooter avatar svendecabooter commented on July 3, 2024

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.

TravisCarden avatar TravisCarden commented on July 3, 2024

Yes, I have cleared cache.

I am seeing "[ENCRYPTED]" instead of the decrypted values.

from field_encrypt.

svendecabooter avatar svendecabooter commented on July 3, 2024

Have you changed the field encryption settings after these nodes were created?

from field_encrypt.

TravisCarden avatar TravisCarden commented on July 3, 2024

No. I configured the field storage first, then created my test nodes.

from field_encrypt.

svendecabooter avatar svendecabooter commented on July 3, 2024

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.

TravisCarden avatar TravisCarden commented on July 3, 2024

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.

svendecabooter avatar svendecabooter commented on July 3, 2024

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.

TravisCarden avatar TravisCarden commented on July 3, 2024

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:

  1. Install and configure field_encrypt and family.
  2. Install workbench_moderation.
  3. Create a new content type.
  4. Add an encrypted field.
  5. Create a node of the new type, and the encrypted field gets decrypted properly on display and edit.
  6. Enable moderation (workbench_moderation) on the content type.
  7. 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.

svendecabooter avatar svendecabooter commented on July 3, 2024

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.

svendecabooter avatar svendecabooter commented on July 3, 2024

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.

TravisCarden avatar TravisCarden commented on July 3, 2024

That fixes it, @svendecabooter! Good work; thanks!

from field_encrypt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.