laravel-multitenancy icon indicating copy to clipboard operation
laravel-multitenancy copied to clipboard

Issue decrypting jobs that implement the ShouldBeEncrypted contract.

Open scotchdesign opened this issue 11 months ago • 2 comments

I had no issues with v3.

Since upgrading to v4 I noticed that jobs that implement the ShouldBeEncrypted contract now fail, throwing an error when being processed: unserialize() error at offset 0 of XX bytes

Digging deeper, I can trace this back to Spatie's IsTenantAware function. It appears the payload is still encrypted when IsTenantAware tries to unserialize it, so the unserialize fails (throwing the error above).

Again, wasn't an issue with v3, is an issue with v4, and haven't had a chance to dig deeper into what has changed in your codebase between the versions.

scotchdesign avatar Dec 29 '24 07:12 scotchdesign

@skoontastic Hopefully you solved this already.

If not, are you using redis + compression? I had an issue with this.

francoism90 avatar Feb 20 '25 15:02 francoism90

Please post the code that throws the exception to solve the issue. Thanks

masterix21 avatar Apr 12 '25 17:04 masterix21

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

spatie-bot avatar Aug 13 '25 10:08 spatie-bot