mirror of
https://github.com/owncloud/ocis.git
synced 2026-10-28 12:39:37 +03:00
* fix: [OCISDEV-873] *WithoutTrashbin space editor roles render files as read-only in Web frontend * fix: ci after godata bump ocis CI bumped github.com/CiscoM31/godata from v1.0.10 → v1.0.11 as a transitive dependency of the reva bump. The new godata version parses "mail add 10 (invalid operator) as a parse error → 400 instead of unsupported operation → 501. * fix ci: more precise role * fix: bump reva to pull fix merged into reva
22 lines
411 B
Go
22 lines
411 B
Go
// Copyright IBM Corp. 2016, 2025
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package plugin
|
|
|
|
import (
|
|
"io"
|
|
"log"
|
|
)
|
|
|
|
func copyStream(name string, dst io.Writer, src io.Reader) {
|
|
if src == nil {
|
|
panic(name + ": src is nil")
|
|
}
|
|
if dst == nil {
|
|
panic(name + ": dst is nil")
|
|
}
|
|
if _, err := io.Copy(dst, src); err != nil && err != io.EOF {
|
|
log.Printf("[ERR] plugin: stream copy '%s' error: %s", name, err)
|
|
}
|
|
}
|