Patrick Stephan
Patrick Stephan
FFilament
Created by Patrick Stephan on 3/24/2025 in #❓┊help
Why are Users manually logged in in ExportCsv queued jobs?
We have recently run into an issue where what appeared to be session data leaking into queue jobs. In the process of debugging that issue, we found some logic that manually logs users in when a CSV export is being processed in a queue: https://github.com/filamentphp/filament/blob/a2a80f634c8ea2d9121443de9a27788218d7f41c/packages/actions/src/Exports/Jobs/ExportCsv.php#L68-L72. I am curious the reasoning behind this and why there isn't corresponding logout logic at the end of the handler. When a other jobs are being processed on the same queue, the user remains logged in. This can contaminate any global scopes you have on models that reference a logged in user.
6 replies
FFilament
Created by Patrick Stephan on 3/19/2025 in #❓┊help
Cannot upload files to Laravel Cloud Bucket
No description
7 replies