You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MailDownloadController doesn't properly handle different tenancy configurations in Filament v3. The controller assumes a specific URL pattern, but Filament v3 supports multiple tenancy URL patterns which need to be handled appropriately.
When trying to access mail attachments, the following error occurs:
Too few arguments to function Vormkracht10\FilamentMails\Controllers\MailDownloadController::__invoke(), 3 passed in /Users/faizanrupani/LaravelValetProjects/vec-backend/vendor/laravel/framework/src/Illuminate/Routing/Controller.php on line 54 and exactly 4 expected
This affects three different URL patterns that need to be supported:
I've setup my filament app without tenets. When downloading the attachments, got error.
Too few arguments to function Vormkracht10\FilamentMails\Controllers\MailDownloadController::__invoke(), 3 passed in /Users/faizanrupani/LaravelValetProjects/vec-backend/vendor/laravel/framework/src/Illuminate/Routing/Controller.php on line 54 and exactly 4 expected
What happened?
The
MailDownloadController
doesn't properly handle different tenancy configurations in Filament v3. The controller assumes a specific URL pattern, but Filament v3 supports multiple tenancy URL patterns which need to be handled appropriately.When trying to access mail attachments, the following error occurs:
This affects three different URL patterns that need to be supported:
Without tenancy:
With path-based tenancy:
With domain-based tenancy:
Current implementation:
How to reproduce the bug
Install filament-mails package in a Laravel application with Filament v3
Create a new mail record with an attachment
Try to access the attachment using any of these configurations:
Without Tenancy
With Path-based Tenancy
With Domain-based Tenancy
The request will fail with an argument count error
Package Version
2.0.0
PHP Version
8.2
Laravel Version
11.x
Which operating systems does with happen with?
Linux
Notes
This bug affects the mail attachment download functionality in all tenancy configurations. The solution needs to work seamlessly with:
These are core tenancy configurations supported by Filament v3, and the package should handle all of them correctly.
The text was updated successfully, but these errors were encountered: