Hi, I believe there's an issue with the large objects configuration.
As it's optional, I've removed it from my config file, and now I've got a container named "XXX_segments" in my OVH project, and I can't access the backups created by spatie/laravel-backup created these pasts 2 weeks through the API anymore 😅. Actually, I can, but they're empty in my XXX container, and they exist in the XXX_segments container (normal not-empty files in the XXX_segments container). My backups aren't large. It's weird that the backups are not moved from the XXX_segments to the XXX container somehow - but that's not the problem right now.
The backups created before I upgraded the package are OK. Some other files created since I upgraded the package (such as images) are also normally accessible. (only the new zip files are bugged)
Hi, I believe there's an issue with the large objects configuration.
As it's optional, I've removed it from my config file, and now I've got a container named "XXX_segments" in my OVH project, and I can't access the backups created by spatie/laravel-backup created these pasts 2 weeks through the API anymore 😅. Actually, I can, but they're empty in my XXX container, and they exist in the XXX_segments container (normal not-empty files in the XXX_segments container). My backups aren't large. It's weird that the backups are not moved from the XXX_segments to the XXX container somehow - but that's not the problem right now.
The backups created before I upgraded the package are OK. Some other files created since I upgraded the package (such as images) are also normally accessible. (only the new zip files are bugged)
Unless someone takes care of it before, I'll submit a PR this weekend to fix this, the problem comes from OVHServiceProvider. The large object config values (
null
) are passed even if no large object configuration is defined. It prevents the Flysystem config from returning the default value (see https://github.com/chrisnharvey/flysystem-openstack-swift/blob/58b8dd825c53f620c1658b42e1361763a1da3781/src/SwiftAdapter.php#L55).See:
We should do something along these lines:
Or simply (I believe simpler is better):