Open IljaN opened 6 years ago
Require full test
That should also cover S3 to S3
Maybe https://github.com/owncloud/core/blob/v10.0.10/lib/public/Files/ObjectStore/IVersionedObjectStorage.php#L77 after getting the storage instance and checking whether it implements this interface.
The interface and impl of S3 would need to be adjusted to also accept the mtime.
As @DeepDiver1975 mentioned today, there is a risk that the underlying native S3 versioning API doesn't support setting specific mtimes...
Unless there is a stablished public API in core to handle versions, I'd rather not to use anything depending on the implementation, otherwise the behaviour will be different depending on the type of storage we're using.
For now, versions will be created by uploading content to the same location. The mtime will be different, but that's a known limitation regardless of the storage. If the retention policy is different depending on the storage, that's out of the app's scope
Unless there is a stablished public API in core to handle versions, I'd rather not to use anything depending on the implementation...
You are correct, by pushing files in to files_version directory we are also already using an implementation detail which happens to work.