Affects Version/s: 3.3.8, 3.4.5, 3.5.2, 3.6
MDL-62564, I had a problem with one of the testing sites (master). I did not reproduce it in stables (because I had way simpler/minimal configuration there).
The details are, more or less like:
- Had a couple of purposes, one without retention and another with 50y of retention. Both with the "protect" bit set.
- Also a some categories.
- Both the purpose with 50y of retention and one of the categories were set @ site level. Think that everybody else was set to inherit everywhere.
Then, when processing the deletion request (aka, approved => deleted), I got:
So, somehow, "-1" was being passed and breaking the simple keys the cache is expected to have.
After some trials, I ended removing the retention periods in the purpose, cleaning the "protected" bit, purging caches and then the deletion was able to finish properly.
This describes de situation under I got the error. Will try to reproduce it again to see if I can give more detailed steps or find the exact point leading to the problem.
Only reproduced with master but, as far as the configuration is potentially the same in stables, I imagine it will be also reproducible there.
Will comment if I find any other detail. That's all for now.