View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 14795 | Bug reports | Encryption | public | 2019-04-24 10:47 | 2026-11-23 22:00 |
| Reporter | DenisChenu | Assigned To | cdorin | ||
| Priority | none | Severity | minor | ||
| Status | closed | Resolution | won't fix | ||
| Product Version | 4.0.0dev | ||||
| Summary | 14795: Extend Token Response etc … to automatically encryt/decrypt | ||||
| Description | Looking at https://bugs.limesurvey.org/view.php?id=14794 | ||||
| Steps To Reproduce | And idea can be
Add in LSactiveRecord 2 function atahced to afterFind event and beforeSave event | ||||
| Additional Information | Adding a parent function is better to check the "Model name" here : https://github.com/LimeSurvey/LimeSurvey/blob/2c957295dfb14c11ce4c33fd2ebe8f0354c7c5b9/application/models/LSActiveRecord.php#L316 Maybe we can too add a model->getEncryptedAttribute to put in eachy model the needed part : https://github.com/LimeSurvey/LimeSurvey/blob/2c957295dfb14c11ce4c33fd2ebe8f0354c7c5b9/application/models/LSActiveRecord.php#L342 To add automatically the functions needed :
Allow us to have clean function name and add it only if needed … | ||||
| Tags | No tags attached. | ||||
| Bug heat | 8 | ||||
| Complete LimeSurvey version number (& build) | |||||
| I will donate to the project if issue is resolved | |||||
| Browser | |||||
| Database type & version | |||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | |||||
| Git branch / Pull Request URL | |||||
| related to | 14794 | closed | Token are not set to "sended" after email sent | |
| related to | 14797 | closed | Unable to send email to valid address | |
| related to | 14796 | closed | Unable to browse response | |
| related to | 14798 | closed | Someone register in a Survey with token (+encrypt) : no way to check DB |
|
onAfterSave need to reset data :
for example Ifyou're OK : i can make a pull request before merging |
|
|
No, current design is very good, because it doesn't rely on events, but is called only when needed. |
|
|
I don't understand ? Using an automatic system seems better in my opinion. See the previous issue for example. For the on demand : if you use save : you broke the DB (have a 500 error …) A,nd for event : it's the Yii event : they always happen. I don't understand your «on demand» : it's needed : it must be by default … |
|
|
A way top BROKE db (with debug=2 : throw error 500) 2 solution: or ->save() use ->encryptSave() (by default, bnut can be disable) Really mire clean if save use encryptSave … Same fpor findByPk or findByAttributes etc … |
|
|
Yes, ->save() will be replaced by ->encrypt()->save() everywhere. Easy change, no? Great that you report any place Dominik forgot! |
|
|
@ollehar : Then : why not extend ->save (or add a beforeSave function) to encrypt by default. I really undestand wht NOT extend save function ? |
|
|
Already have 3 issue (and one potential after 14797 was fixed) : i really think it must be done by defaut (if survey is 'crypted' active for token) directly in the 2 models I didn't check Response currently , only token … |
|
|
We keep the current design: encryption is called explicitly where it is needed. The related bugs are fixed, so we will not change this. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2019-04-24 10:47 | DenisChenu | New Issue | |
| 2019-04-24 10:47 | DenisChenu | Status | new => assigned |
| 2019-04-24 10:47 | DenisChenu | Assigned To | => dominikvitt |
| 2019-04-24 10:49 | DenisChenu | Note Added: 51561 | |
| 2019-04-24 10:49 | DenisChenu | Note Edited: 51561 | |
| 2019-04-24 10:51 | DenisChenu | Relationship added | related to 14794 |
| 2019-04-24 11:24 |
|
Status | assigned => resolved |
| 2019-04-24 11:24 |
|
Resolution | open => no change required |
| 2019-04-24 11:24 |
|
Note Added: 51562 | |
| 2019-04-24 12:26 | DenisChenu | Status | resolved => feedback |
| 2019-04-24 12:26 | DenisChenu | Resolution | no change required => reopened |
| 2019-04-24 12:26 | DenisChenu | Note Added: 51564 | |
| 2019-04-24 12:37 | DenisChenu | Note Added: 51566 | |
| 2019-04-24 12:37 | DenisChenu | Status | feedback => assigned |
| 2019-04-24 13:07 | ollehar | Note Added: 51567 | |
| 2019-04-24 13:16 | DenisChenu | Note Added: 51568 | |
| 2019-04-24 14:27 | DenisChenu | Relationship added | related to 14797 |
| 2019-04-24 14:27 | DenisChenu | Relationship added | related to 14796 |
| 2019-04-24 14:38 | DenisChenu | Relationship added | related to 14798 |
| 2019-04-24 14:39 | DenisChenu | Note Added: 51572 | |
| 2019-07-15 11:41 |
|
Assigned To | dominikvitt => cdorin |
| 2026-11-20 10:33 | c_schmitz | Category | Tokens => (No Category) |
| 2026-11-23 22:00 | c_schmitz | Note Added: 87885 | |
| 2026-11-23 22:00 | c_schmitz | Bug heat | 6 => 8 |
| 2026-11-23 22:00 | c_schmitz | Status | assigned => closed |
| 2026-11-23 22:00 | c_schmitz | Resolution | reopened => won't fix |
| 2026-11-23 22:00 | c_schmitz | Category | (No Category) => Encryption |