diff --git a/changelog/unreleased/bugfix-s3ng-postprocessing-mount-id.md b/changelog/unreleased/bugfix-s3ng-postprocessing-mount-id.md new file mode 100644 index 00000000000..e90548a23d6 --- /dev/null +++ b/changelog/unreleased/bugfix-s3ng-postprocessing-mount-id.md @@ -0,0 +1,20 @@ +Bugfix: Fix uploads stuck in processing with the s3ng storage driver + +Uploads to a `s3ng` backed storage-users service never left the processing +state, so the file stayed unreadable and unmodifiable forever. Every client was +affected equally, because the defect sits below the protocol layer: WebDAV, the +desktop sync client and the Web UI alike. + +Decomposedfs ignores any event whose storage id does not match its configured +mount id. The `s3ng` driver never received a `mount_id`, so that comparison ran +against an empty string and every `PostprocessingFinished` event was discarded. +The `s3ng` driver now passes `mount_id` the same way the `ocis` driver already +does. + +The same key is also added to `OcisNoEvents` and `S3NGNoEvents`. Those build the +storage provider rather than the data provider and configure no events, so today +the value is unused there. Setting it keeps both constructions of the same +storage consistent about their own identity, rather than leaving one of them to +report an empty mount id to any future reader of that option. + +https://github.com/owncloud/ocis/pull/12756 diff --git a/services/storage-users/pkg/revaconfig/drivers.go b/services/storage-users/pkg/revaconfig/drivers.go index 66c932139be..20e08015521 100644 --- a/services/storage-users/pkg/revaconfig/drivers.go +++ b/services/storage-users/pkg/revaconfig/drivers.go @@ -214,6 +214,7 @@ func Ocis(cfg *config.Config) map[string]interface{} { // OcisNoEvents is the config mapping for the ocis storage driver emitting no events func OcisNoEvents(cfg *config.Config) map[string]interface{} { return map[string]interface{}{ + "mount_id": cfg.MountID, "metadata_backend": "messagepack", "propagator": cfg.Drivers.OCIS.Propagator, "async_propagator_options": map[string]interface{}{ @@ -272,6 +273,7 @@ func S3(cfg *config.Config) map[string]interface{} { // S3NG is the config mapping for the s3ng storage driver func S3NG(cfg *config.Config) map[string]interface{} { return map[string]interface{}{ + "mount_id": cfg.MountID, "metadata_backend": "messagepack", "propagator": cfg.Drivers.S3NG.Propagator, "async_propagator_options": map[string]interface{}{ @@ -338,6 +340,7 @@ func S3NG(cfg *config.Config) map[string]interface{} { // S3NGNoEvents is the config mapping for the s3ng storage driver emitting no events func S3NGNoEvents(cfg *config.Config) map[string]interface{} { return map[string]interface{}{ + "mount_id": cfg.MountID, "metadata_backend": "messagepack", "propagator": cfg.Drivers.S3NG.Propagator, "async_propagator_options": map[string]interface{}{