Hi guys,
at first, thank you for your great work!
I noticed today that I get outdated/wrong data within Mailers/ActiveJob. When I had a look at the stack traces, I noticed that there seems to be missing some kind of middleware which inits RequestLocals. For Sidekick there is a second gem to handle this. As ActiveJob is core feature of rails, perhaps an equivalent should be included in this gem.
I (and propably some more people) am using RequestLocals this way:
RequestLocals.store[:some_stuff] ||= calculate_some_stuff
That's why I think it would be good to raise an error at least when using uninitialized RequestLocals, cause this can lead to severe data leaks regarding multi-user/multi-tenant systems.
Hi guys,
at first, thank you for your great work!
I noticed today that I get outdated/wrong data within Mailers/ActiveJob. When I had a look at the stack traces, I noticed that there seems to be missing some kind of middleware which inits
RequestLocals. For Sidekick there is a second gem to handle this. As ActiveJob is core feature of rails, perhaps an equivalent should be included in this gem.I (and propably some more people) am using
RequestLocalsthis way:That's why I think it would be good to raise an error at least when using uninitialized
RequestLocals, cause this can lead to severe data leaks regarding multi-user/multi-tenant systems.