Closed prem-prakash closed 2 months ago
Could you post a minimal self-contained example reproducing the issue? You can use this template as a starting point.
@janko unfortunately I haven't been able to reproduce the problem yet, it's happening randomly, or rather, without an identified cause. I'll dig deeper into the research and come back with a reproducible example.
https://github.com/shrinerb/shrine/blob/1ce6da4be0ca62ecd5776f107fcd0d657b773f28/lib/shrine/plugins/derivatives.rb#L19-L21
I am having an issue where the data for derivatives is being registered with two storage keys, one empty and another with the "store". Because of that the JSON is not parsed and it ends up being treated as a string, so I got values like this in the database field:
Note that there 2
storage
keys, one without value and another one withstore
.So I get this error when trying to update the record:
I am not sure the problem is related to the fact that derivatives plugin depends on
store_key
proc, but it is only defined in thedefault_storage
plugin.This issue is not affecting all the records, it is affecting a very small portion, so this behaviour is for sure derived from some business logic of my application.