Skip to content

Conversation

@odain-cbd
Copy link
Contributor

** Symptom**:
Itop setup fails when adding encrypted fields without any default value. in AfterDbCreation step, the application tries to decrypt field value with an invalid value (null/empty).

2021-06-02 17:56:20 | Error | An exception occurred: nonce size should be SODIUM_CRYPTO_SECRETBOX_NONCEBYTES bytes at line 330 in file /var/www/html/core/simplecrypt.class.inc.php | SetupLog

Fixing it in production could be really painfull and is seen as quite unfriendly...

@odain-cbd odain-cbd requested a review from rquetiez September 22, 2025 12:54
@odain-cbd odain-cbd self-assigned this Sep 22, 2025
@odain-cbd odain-cbd added bug Something isn't working internal Work made by Combodo labels Sep 22, 2025
@odain-cbd odain-cbd added this to the 3.2.2 milestone Sep 22, 2025
@odain-cbd odain-cbd requested a review from eespie October 8, 2025 06:20
@odain-cbd odain-cbd merged commit 318b792 into develop Oct 10, 2025
@odain-cbd odain-cbd deleted the feature/4058-decrypt-uninitializied branch October 10, 2025 12:25
Comment on lines -425 to +433
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't remove EOL's at end of the file!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working internal Work made by Combodo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants