From 23a7d33666f3a690a82004bdc0d900251083376a Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Thu, 15 Feb 2024 15:25:32 +0000 Subject: [PATCH 01/56] Automated changelog update [skip ci] --- CHANGELOG.md | 703 +++++++++++++++++++++++++++++---------------------- 1 file changed, 404 insertions(+), 299 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae7e3b3993..51bd575bbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ # Table of Contents * [Changelog for unreleased](#changelog-for-unreleased-unreleased) -* [Changelog for 5.0.0-rc.1](#changelog-for-500-rc1-2023-12-27) +* [Changelog for 4.0.6](#changelog-for-406-2024-02-07) +* [Changelog for 5.0.0-rc.4](#changelog-for-500-rc4-2024-02-07) +* [Changelog for 4.0.5](#changelog-for-405-2023-12-21) * [Changelog for 4.0.4](#changelog-for-404-2023-12-07) * [Changelog for 4.0.3](#changelog-for-403-2023-11-24) * [Changelog for 4.0.2](#changelog-for-402-2023-09-28) @@ -10,8 +12,8 @@ * [Changelog for 3.0.0](#changelog-for-300-2023-06-06) * [Changelog for 2.0.0](#changelog-for-200-2022-11-30) * [Changelog for 1.20.0](#changelog-for-1200-2022-04-13) -* [Changelog for 1.19.0](#changelog-for-1190-2022-03-29) * [Changelog for 1.19.1](#changelog-for-1191-2022-03-29) +* [Changelog for 1.19.0](#changelog-for-1190-2022-03-29) * [Changelog for 1.18.0](#changelog-for-1180-2022-03-03) * [Changelog for 1.17.0](#changelog-for-1170-2022-02-16) * [Changelog for 1.16.0](#changelog-for-1160-2021-12-10) @@ -36,46 +38,16 @@ The following sections list the changes for unreleased. -[unreleased]: https://github.com/owncloud/ocis/compare/v5.0.0-rc.1...master +[unreleased]: https://github.com/owncloud/ocis/compare/v4.0.6...master ## Summary * Bugfix - Fix search response: [#7815](https://github.com/owncloud/ocis/pull/7815) -* Bugfix - The race conditions in tests: [#7847](https://github.com/owncloud/ocis/pull/7847) -* Bugfix - Fix jwt config of policies service: [#7893](https://github.com/owncloud/ocis/pull/7893) -* Bugfix - Fix Service Account Roles on external IDP: [#8074](https://github.com/owncloud/ocis/pull/8074) -* Bugfix - Fix the upload postprocessing: [#8117](https://github.com/owncloud/ocis/pull/8117) -* Bugfix - Disallow to delete a file during the processing: [#8132](https://github.com/owncloud/ocis/pull/8132) -* Bugfix - Fix wrong naming in nats-js-kv registry: [#8140](https://github.com/owncloud/ocis/pull/8140) -* Bugfix - IDP CS3 backend sessions now survive a restart: [#8142](https://github.com/owncloud/ocis/pull/8142) -* Bugfix - Fix patching of language: [#8182](https://github.com/owncloud/ocis/pull/8182) -* Bugfix - Fix search service to not log expected cases as errors: [#8200](https://github.com/owncloud/ocis/pull/8200) -* Bugfix - Updating and reset logo failed: [#8211](https://github.com/owncloud/ocis/pull/8211) -* Bugfix - Cleanup graph/pkg/service/v0/driveitems.go: [#8228](https://github.com/owncloud/ocis/pull/8228) -* Bugfix - Cleanup `search/pkg/search/search.go`: [#8230](https://github.com/owncloud/ocis/pull/8230) -* Bugfix - Graph/sharedWithMe works for shares from project spaces now: [#8233](https://github.com/owncloud/ocis/pull/8233) -* Bugfix - Fix PATCH/DELETE status code for drives that don't support them: [#8235](https://github.com/owncloud/ocis/pull/8235) -* Bugfix - Fix nats authentication: [#8236](https://github.com/owncloud/ocis/pull/8236) -* Bugfix - Fix the resource name: [#8246](https://github.com/owncloud/ocis/pull/8246) -* Bugfix - Apply role constraints when creating shares via the graph API: [#8247](https://github.com/owncloud/ocis/pull/8247) -* Bugfix - Fix concurrent access to a map: [#8269](https://github.com/owncloud/ocis/pull/8269) -* Bugfix - Fix nats registry: [#8281](https://github.com/owncloud/ocis/pull/8281) -* Bugfix - Remove invalid environment variables: [#8303](https://github.com/owncloud/ocis/pull/8303) -* Bugfix - Fix concurrent shares config: [#8317](https://github.com/owncloud/ocis/pull/8317) * Bugfix - Fix Content-Disposition header for downloads: [#8381](https://github.com/owncloud/ocis/pull/8381) -* Bugfix - Signed url verification: [#8385](https://github.com/owncloud/ocis/pull/8385) * Bugfix - Fix an error when move: [#8396](https://github.com/owncloud/ocis/pull/8396) * Bugfix - Fix extended env parser: [#8409](https://github.com/owncloud/ocis/pull/8409) * Bugfix - Graph/drives/permission Expiration date update: [#8413](https://github.com/owncloud/ocis/pull/8413) * Bugfix - Fix search error message: [#8444](https://github.com/owncloud/ocis/pull/8444) -* Enhancement - Support login page background configuration: [#7674](https://github.com/owncloud/ocis/issues/7674) -* Enhancement - Disable the password policy: [#7985](https://github.com/owncloud/ocis/pull/7985) -* Enhancement - Update antivirus service: [#8062](https://github.com/owncloud/ocis/pull/8062) -* Enhancement - Remove deprecated environment variables: [#8149](https://github.com/owncloud/ocis/pull/8149) -* Enhancement - Disable the password policy: [#8152](https://github.com/owncloud/ocis/pull/8152) -* Enhancement - Update reva to latest edge version: [#8287](https://github.com/owncloud/ocis/pull/8287) -* Enhancement - Allow restarting multiple uploads with one command: [#8287](https://github.com/owncloud/ocis/pull/8287) -* Enhancement - Modify the concurrency default: [#8309](https://github.com/owncloud/ocis/pull/8309) * Enhancement - Improve ocis single binary start: [#8320](https://github.com/owncloud/ocis/pull/8320) * Enhancement - Use environment variables in yaml config files: [#8339](https://github.com/owncloud/ocis/pull/8339) * Enhancement - Bump reva: [#8340](https://github.com/owncloud/ocis/pull/8340) @@ -92,167 +64,6 @@ The following sections list the changes for unreleased. https://github.com/owncloud/ocis/issues/7812 https://github.com/owncloud/ocis/pull/7815 -* Bugfix - The race conditions in tests: [#7847](https://github.com/owncloud/ocis/pull/7847) - - We fixed the race conditions in tests. - - https://github.com/owncloud/ocis/issues/7846 - https://github.com/owncloud/ocis/pull/7847 - -* Bugfix - Fix jwt config of policies service: [#7893](https://github.com/owncloud/ocis/pull/7893) - - Removes jwt config of policies service - - https://github.com/owncloud/ocis/pull/7893 - -* Bugfix - Fix Service Account Roles on external IDP: [#8074](https://github.com/owncloud/ocis/pull/8074) - - Service Account Roles wouldn't work when using with external IDP - - https://github.com/owncloud/ocis/pull/8074 - -* Bugfix - Fix the upload postprocessing: [#8117](https://github.com/owncloud/ocis/pull/8117) - - We fixed the upload postprocessing when the destination file does not exist - anymore. - - https://github.com/owncloud/ocis/issues/7909 - https://github.com/owncloud/ocis/pull/8117 - -* Bugfix - Disallow to delete a file during the processing: [#8132](https://github.com/owncloud/ocis/pull/8132) - - We want to disallow deleting a file during the processing to prevent collecting - the orphan uploads. - - https://github.com/owncloud/ocis/issues/8127 - https://github.com/owncloud/ocis/pull/8132 - https://github.com/cs3org/reva/pull/4446 - -* Bugfix - Fix wrong naming in nats-js-kv registry: [#8140](https://github.com/owncloud/ocis/pull/8140) - - Registers the registry under the correct name - - https://github.com/owncloud/ocis/pull/8140 - -* Bugfix - IDP CS3 backend sessions now survive a restart: [#8142](https://github.com/owncloud/ocis/pull/8142) - - We now correctly reinitialize the CS3 backend session after the IDP service has - been restarted. - - https://github.com/owncloud/ocis/pull/8142 - -* Bugfix - Fix patching of language: [#8182](https://github.com/owncloud/ocis/pull/8182) - - User would not be able to patch their preferred language when the ldap backend - is set to `read-only`. This makes no sense as language is stored elsewhere. - - https://github.com/owncloud/ocis/pull/8182 - -* Bugfix - Fix search service to not log expected cases as errors: [#8200](https://github.com/owncloud/ocis/pull/8200) - - We changed the search service to not log cases where resources that were about - to be indexed can no longer be found. Those are expected cases, e.g. when the - file in question has already been deleted or renamed meanwhile. - - https://github.com/owncloud/ocis/pull/8200 - -* Bugfix - Updating and reset logo failed: [#8211](https://github.com/owncloud/ocis/pull/8211) - - We fixed a bug when admin tried to update or reset the logo. - - https://github.com/owncloud/ocis/issues/8101 - https://github.com/owncloud/ocis/pull/8211 - -* Bugfix - Cleanup graph/pkg/service/v0/driveitems.go: [#8228](https://github.com/owncloud/ocis/pull/8228) - - Main fix is using proto getters to avoid panics. But some other code - improvements were also done - - https://github.com/owncloud/ocis/pull/8228 - -* Bugfix - Cleanup `search/pkg/search/search.go`: [#8230](https://github.com/owncloud/ocis/pull/8230) - - Now uses proto getters to avoid panics. - - https://github.com/owncloud/ocis/pull/8230 - -* Bugfix - Graph/sharedWithMe works for shares from project spaces now: [#8233](https://github.com/owncloud/ocis/pull/8233) - - We fixed a bug in the 'graph/v1beta1/me/drive/sharedWithMe' endpoint that caused - an error response when the user received shares from project spaces. - Additionally the endpoint now behaves more graceful in cases where the - displayname of the owner or creator of a share or shared resource couldn't be - resolved. - - https://github.com/owncloud/ocis/issues/8027 - https://github.com/owncloud/ocis/issues/8215 - https://github.com/owncloud/ocis/pull/8233 - -* Bugfix - Fix PATCH/DELETE status code for drives that don't support them: [#8235](https://github.com/owncloud/ocis/pull/8235) - - Updating and Deleting the virtual drives for shares is currently not supported. - Instead of returning a generic 500 status we return a 405 response now. - - https://github.com/owncloud/ocis/issues/7881 - https://github.com/owncloud/ocis/pull/8235 - -* Bugfix - Fix nats authentication: [#8236](https://github.com/owncloud/ocis/pull/8236) - - Fixes nats authentication for registry/events/stores - - https://github.com/owncloud/ocis/pull/8236 - -* Bugfix - Fix the resource name: [#8246](https://github.com/owncloud/ocis/pull/8246) - - We fixed a problem where after renaming resource as sharer the receiver see a - new name. - - https://github.com/owncloud/ocis/issues/8242 - https://github.com/owncloud/ocis/pull/8246 - https://github.com/cs3org/reva/pull/4463 - -* Bugfix - Apply role constraints when creating shares via the graph API: [#8247](https://github.com/owncloud/ocis/pull/8247) - - We fixed a bug in the graph API for creating and updating shares so that - Spaceroot specific roles like 'Manager' and 'Co-owner' can no longer be assigned - for shares on files or directories. - - https://github.com/owncloud/ocis/issues/8131 - https://github.com/owncloud/ocis/pull/8247 - -* Bugfix - Fix concurrent access to a map: [#8269](https://github.com/owncloud/ocis/pull/8269) - - We fixed the race condition that led to concurrent map access in a publicshare - manager. - - https://github.com/owncloud/ocis/issues/8255 - https://github.com/owncloud/ocis/pull/8269 - https://github.com/cs3org/reva/pull/4472 - -* Bugfix - Fix nats registry: [#8281](https://github.com/owncloud/ocis/pull/8281) - - The nats registry would behave badly when configuring `nats-js-kv` via envvar. - Reason is the way go-micro initializes. It took 5 developers to find the issue - and the fix so the details cannot be shared here. Just accept that it is working - now - - https://github.com/owncloud/ocis/pull/8281 - -* Bugfix - Remove invalid environment variables: [#8303](https://github.com/owncloud/ocis/pull/8303) - - We have removed two spaces related environment variables (whether project spaces - and the share jail are enabled) and hardcoded the only allowed options. Misusing - those variables would have resulted in invalid config. - - https://github.com/owncloud/ocis/pull/8303 - -* Bugfix - Fix concurrent shares config: [#8317](https://github.com/owncloud/ocis/pull/8317) - - We fixed setting the config for concurrent web requests, which did not work as - expected before. - - https://github.com/owncloud/ocis/pull/8317 - * Bugfix - Fix Content-Disposition header for downloads: [#8381](https://github.com/owncloud/ocis/pull/8381) We have fixed a bug that caused downloads to fail on Chromebased browsers when @@ -262,12 +73,6 @@ The following sections list the changes for unreleased. https://github.com/owncloud/ocis/pull/8381 https://github.com/cs3org/reva/pull/4498 -* Bugfix - Signed url verification: [#8385](https://github.com/owncloud/ocis/pull/8385) - - Signed urls now expire properly - - https://github.com/owncloud/ocis/pull/8385 - * Bugfix - Fix an error when move: [#8396](https://github.com/owncloud/ocis/pull/8396) We fixed a bug that caused Internal Server Error when move using destination id @@ -298,76 +103,6 @@ The following sections list the changes for unreleased. https://github.com/owncloud/ocis/issues/8442 https://github.com/owncloud/ocis/pull/8444 -* Enhancement - Support login page background configuration: [#7674](https://github.com/owncloud/ocis/issues/7674) - - Introduce a new environment variable `IDP_LOGIN_BACKGROUND_URL` that overrides - the default background image of the IDP login page when present. - - https://github.com/owncloud/ocis/issues/7674 - https://github.com/owncloud/ocis/pull/7900 - -* Enhancement - Disable the password policy: [#7985](https://github.com/owncloud/ocis/pull/7985) - - We add the environment variable that allow to disable the password policy. - - https://github.com/owncloud/ocis/issues/7916 - https://github.com/owncloud/ocis/pull/7985 - https://github.com/cs3org/reva/pull/4409 - -* Enhancement - Update antivirus service: [#8062](https://github.com/owncloud/ocis/pull/8062) - - We update the antivirus icap client library and optimize the antivirus scanning - service. ANTIVIRUS_ICAP_TIMEOUT is now deprecated and - ANTIVIRUS_ICAP_SCAN_TIMEOUT should be used instead. - - ANTIVIRUS_ICAP_SCAN_TIMEOUT supports human durations like `1s`, `1m`, `1h` and - `1d`. - - https://github.com/owncloud/ocis/issues/6764 - https://github.com/owncloud/ocis/pull/8062 - -* Enhancement - Remove deprecated environment variables: [#8149](https://github.com/owncloud/ocis/pull/8149) - - We have removed all deprecated environment variables that have been marked for - removal for 5.0.0 - - https://github.com/owncloud/ocis/issues/8025 - https://github.com/owncloud/ocis/pull/8149 - -* Enhancement - Disable the password policy: [#8152](https://github.com/owncloud/ocis/pull/8152) - - We reworked and moved disabling the password policy logic from the reva to the - ocis. - - https://github.com/owncloud/ocis/issues/7916 - https://github.com/owncloud/ocis/pull/8152 - https://github.com/cs3org/reva/pull/4453 - -* Enhancement - Update reva to latest edge version: [#8287](https://github.com/owncloud/ocis/pull/8287) - - We update reva to the latest edge version to get the latest fixes and features. - - https://github.com/owncloud/ocis/pull/8287 - https://github.com/owncloud/ocis/pull/8278 - https://github.com/owncloud/ocis/pull/8264 - https://github.com/owncloud/ocis/pull/8100 - -* Enhancement - Allow restarting multiple uploads with one command: [#8287](https://github.com/owncloud/ocis/pull/8287) - - Allows to restart all commands in a specific state. - - https://github.com/owncloud/ocis/pull/8287 - -* Enhancement - Modify the concurrency default: [#8309](https://github.com/owncloud/ocis/pull/8309) - - We have changed the default MaxConcurrency value from 100 to 5 to prevent too - frequent gc runs on low memory systems. We have also bumped reva to pull in the - related changes from there. - - https://github.com/owncloud/ocis/issues/8257 - https://github.com/owncloud/ocis/pull/8309 - https://github.com/cs3org/reva/pull/4485 - * Enhancement - Improve ocis single binary start: [#8320](https://github.com/owncloud/ocis/pull/8320) Removes waiting times when starting the single binary. Improves ocis single @@ -432,11 +167,48 @@ The following sections list the changes for unreleased. https://github.com/owncloud/ocis/issues/8258 https://github.com/owncloud/ocis/pull/8436 -# Changelog for [5.0.0-rc.1] (2023-12-27) +# Changelog for [4.0.6] (2024-02-07) -The following sections list the changes for 5.0.0-rc.1. +The following sections list the changes for 4.0.6. -[5.0.0-rc.1]: https://github.com/owncloud/ocis/compare/v4.0.4...v5.0.0-rc.1 +[4.0.6]: https://github.com/owncloud/ocis/compare/v5.0.0-rc.4...v4.0.6 + +## Summary + +* Bugfix - Fix RED metrics on the metrics endpoint: [#7994](https://github.com/owncloud/ocis/pull/7994) +* Bugfix - Signed url verification: [#8385](https://github.com/owncloud/ocis/pull/8385) + +## Details + +* Bugfix - Fix RED metrics on the metrics endpoint: [#7994](https://github.com/owncloud/ocis/pull/7994) + + We connected some metrics to the metrics endpoint to support the RED method for + monitoring microservices. + + - Request Rate: The number of requests per second. The total count of requests + is available under `ocis_proxy_requests_total`. - Error Rate: The number of + failed requests per second. The total count of failed requests is available + under `ocis_proxy_errors_total`. - Duration: The amount of time each request + takes. The duration of all requests is available under + `ocis_proxy_request_duration_seconds`. This is a histogram metric, so it also + provides information about the distribution of request durations. + + The metrics are available under the following paths: `PROXY_DEBUG_ADDR/metrics` + in a prometheus compatible format and maybe secured by `PROXY_DEBUG_TOKEN`. + + https://github.com/owncloud/ocis/pull/7994 + +* Bugfix - Signed url verification: [#8385](https://github.com/owncloud/ocis/pull/8385) + + Signed urls now expire properly + + https://github.com/owncloud/ocis/pull/8385 + +# Changelog for [5.0.0-rc.4] (2024-02-07) + +The following sections list the changes for 5.0.0-rc.4. + +[5.0.0-rc.4]: https://github.com/owncloud/ocis/compare/v4.0.5...v5.0.0-rc.4 ## Summary @@ -463,8 +235,10 @@ The following sections list the changes for 5.0.0-rc.1. * Bugfix - Fix the tgz mime type: [#7772](https://github.com/owncloud/ocis/pull/7772) * Bugfix - Fix natsjs cache: [#7790](https://github.com/owncloud/ocis/pull/7790) * Bugfix - Fix search service start: [#7795](https://github.com/owncloud/ocis/pull/7795) +* Bugfix - The race conditions in tests: [#7847](https://github.com/owncloud/ocis/pull/7847) * Bugfix - Do not purge expired upload sessions that are still postprocessing: [#7859](https://github.com/owncloud/ocis/pull/7859) * Bugfix - Fix the public link update: [#7862](https://github.com/owncloud/ocis/pull/7862) +* Bugfix - Fix jwt config of policies service: [#7893](https://github.com/owncloud/ocis/pull/7893) * Bugfix - Updating logo with new theme structure: [#7930](https://github.com/owncloud/ocis/pull/7930) * Bugfix - Password policy return code was wrong: [#7952](https://github.com/owncloud/ocis/pull/7952) * Bugfix - Removed outdated and unused dependency from idp package: [#7957](https://github.com/owncloud/ocis/issues/7957) @@ -475,6 +249,25 @@ The following sections list the changes for 5.0.0-rc.1. * Bugfix - Non durable streams for sse service: [#7986](https://github.com/owncloud/ocis/pull/7986) * Bugfix - Fix empty trace ids: [#8023](https://github.com/owncloud/ocis/pull/8023) * Bugfix - Fix search by containing special characters: [#8050](https://github.com/owncloud/ocis/pull/8050) +* Bugfix - Fix the upload postprocessing: [#8117](https://github.com/owncloud/ocis/pull/8117) +* Bugfix - Disallow to delete a file during the processing: [#8132](https://github.com/owncloud/ocis/pull/8132) +* Bugfix - Fix wrong naming in nats-js-kv registry: [#8140](https://github.com/owncloud/ocis/pull/8140) +* Bugfix - IDP CS3 backend sessions now survive a restart: [#8142](https://github.com/owncloud/ocis/pull/8142) +* Bugfix - Fix patching of language: [#8182](https://github.com/owncloud/ocis/pull/8182) +* Bugfix - Fix search service to not log expected cases as errors: [#8200](https://github.com/owncloud/ocis/pull/8200) +* Bugfix - Updating and reset logo failed: [#8211](https://github.com/owncloud/ocis/pull/8211) +* Bugfix - Cleanup graph/pkg/service/v0/driveitems.go: [#8228](https://github.com/owncloud/ocis/pull/8228) +* Bugfix - Cleanup `search/pkg/search/search.go`: [#8230](https://github.com/owncloud/ocis/pull/8230) +* Bugfix - Graph/sharedWithMe works for shares from project spaces now: [#8233](https://github.com/owncloud/ocis/pull/8233) +* Bugfix - Fix PATCH/DELETE status code for drives that don't support them: [#8235](https://github.com/owncloud/ocis/pull/8235) +* Bugfix - Fix nats authentication: [#8236](https://github.com/owncloud/ocis/pull/8236) +* Bugfix - Fix the resource name: [#8246](https://github.com/owncloud/ocis/pull/8246) +* Bugfix - Apply role constraints when creating shares via the graph API: [#8247](https://github.com/owncloud/ocis/pull/8247) +* Bugfix - Fix concurrent access to a map: [#8269](https://github.com/owncloud/ocis/pull/8269) +* Bugfix - Fix nats registry: [#8281](https://github.com/owncloud/ocis/pull/8281) +* Bugfix - Remove invalid environment variables: [#8303](https://github.com/owncloud/ocis/pull/8303) +* Bugfix - Fix concurrent shares config: [#8317](https://github.com/owncloud/ocis/pull/8317) +* Bugfix - Signed url verification: [#8385](https://github.com/owncloud/ocis/pull/8385) * Bugfix - Fix last month search: [#31145](https://github.com/golang/go/issues/31145) * Change - Auto-Accept Shares: [#7097](https://github.com/owncloud/ocis/pull/7097) * Change - Change the default TUS chunk size: [#7273](https://github.com/owncloud/ocis/pull/7273) @@ -511,6 +304,7 @@ The following sections list the changes for 5.0.0-rc.1. * Enhancement - Add search MediaType filter: [#7602](https://github.com/owncloud/ocis/pull/7602) * Enhancement - Add Sharing NG endpoints: [#7633](https://github.com/owncloud/ocis/pull/7633) * Enhancement - Configs for Web embed mode: [#7670](https://github.com/owncloud/ocis/pull/7670) +* Enhancement - Support login page background configuration: [#7674](https://github.com/owncloud/ocis/issues/7674) * Enhancement - Add new permissions: [#7700](https://github.com/owncloud/ocis/pull/7700) * Enhancement - Add preferred language to user settings: [#7720](https://github.com/owncloud/ocis/pull/7720) * Enhancement - Add user filter startswith and contains: [#7739](https://github.com/owncloud/ocis/pull/7739) @@ -528,13 +322,19 @@ The following sections list the changes for 5.0.0-rc.1. * Enhancement - Add cli commands for trash-bin: [#7917](https://github.com/owncloud/ocis/pull/7917) * Enhancement - Add validation update public share: [#7978](https://github.com/owncloud/ocis/pull/7978) * Enhancement - Allow inmemory nats-js-kv stores: [#7979](https://github.com/owncloud/ocis/pull/7979) +* Enhancement - Disable the password policy: [#7985](https://github.com/owncloud/ocis/pull/7985) * Enhancement - Use kv store in natsjs registry: [#7987](https://github.com/owncloud/ocis/pull/7987) * Enhancement - Allow authentication nats connections: [#7989](https://github.com/owncloud/ocis/pull/7989) * Enhancement - Add RED metrics to the metrics endpoint: [#7994](https://github.com/owncloud/ocis/pull/7994) * Enhancement - Add ocm and sciencemesh services: [#7998](https://github.com/owncloud/ocis/pull/7998) * Enhancement - Make nats-js-kv the default registry: [#8011](https://github.com/owncloud/ocis/pull/8011) -* Enhancement - Update Reva to version 2.18.0: [#8038](https://github.com/owncloud/ocis/pull/8038) * Enhancement - Service Account roles: [#8051](https://github.com/owncloud/ocis/pull/8051) +* Enhancement - Update antivirus service: [#8062](https://github.com/owncloud/ocis/pull/8062) +* Enhancement - Remove deprecated environment variables: [#8149](https://github.com/owncloud/ocis/pull/8149) +* Enhancement - Disable the password policy: [#8152](https://github.com/owncloud/ocis/pull/8152) +* Enhancement - Update reva to latest edge version: [#8287](https://github.com/owncloud/ocis/pull/8287) +* Enhancement - Allow restarting multiple uploads with one command: [#8287](https://github.com/owncloud/ocis/pull/8287) +* Enhancement - Modify the concurrency default: [#8309](https://github.com/owncloud/ocis/pull/8309) * Enhancement - Update web to v8.0.0-rc.3: [#8342](https://github.com/owncloud/ocis/pull/8342) ## Details @@ -723,6 +523,13 @@ The following sections list the changes for 5.0.0-rc.1. https://github.com/owncloud/ocis/pull/7795 +* Bugfix - The race conditions in tests: [#7847](https://github.com/owncloud/ocis/pull/7847) + + We fixed the race conditions in tests. + + https://github.com/owncloud/ocis/issues/7846 + https://github.com/owncloud/ocis/pull/7847 + * Bugfix - Do not purge expired upload sessions that are still postprocessing: [#7859](https://github.com/owncloud/ocis/pull/7859) https://github.com/owncloud/ocis/pull/7859 @@ -736,6 +543,12 @@ The following sections list the changes for 5.0.0-rc.1. https://github.com/owncloud/ocis/issues/7821 https://github.com/owncloud/ocis/pull/7862 +* Bugfix - Fix jwt config of policies service: [#7893](https://github.com/owncloud/ocis/pull/7893) + + Removes jwt config of policies service + + https://github.com/owncloud/ocis/pull/7893 + * Bugfix - Updating logo with new theme structure: [#7930](https://github.com/owncloud/ocis/pull/7930) Updating and resetting the logo when using the new `theme.json` structure in Web @@ -809,6 +622,154 @@ The following sections list the changes for 5.0.0-rc.1. https://github.com/owncloud/ocis/pull/8050 https://github.com/owncloud/ocis/pull/8035 +* Bugfix - Fix the upload postprocessing: [#8117](https://github.com/owncloud/ocis/pull/8117) + + We fixed the upload postprocessing when the destination file does not exist + anymore. + + https://github.com/owncloud/ocis/issues/7909 + https://github.com/owncloud/ocis/pull/8117 + +* Bugfix - Disallow to delete a file during the processing: [#8132](https://github.com/owncloud/ocis/pull/8132) + + We want to disallow deleting a file during the processing to prevent collecting + the orphan uploads. + + https://github.com/owncloud/ocis/issues/8127 + https://github.com/owncloud/ocis/pull/8132 + https://github.com/cs3org/reva/pull/4446 + +* Bugfix - Fix wrong naming in nats-js-kv registry: [#8140](https://github.com/owncloud/ocis/pull/8140) + + Registers the registry under the correct name + + https://github.com/owncloud/ocis/pull/8140 + +* Bugfix - IDP CS3 backend sessions now survive a restart: [#8142](https://github.com/owncloud/ocis/pull/8142) + + We now correctly reinitialize the CS3 backend session after the IDP service has + been restarted. + + https://github.com/owncloud/ocis/pull/8142 + +* Bugfix - Fix patching of language: [#8182](https://github.com/owncloud/ocis/pull/8182) + + User would not be able to patch their preferred language when the ldap backend + is set to `read-only`. This makes no sense as language is stored elsewhere. + + https://github.com/owncloud/ocis/pull/8182 + +* Bugfix - Fix search service to not log expected cases as errors: [#8200](https://github.com/owncloud/ocis/pull/8200) + + We changed the search service to not log cases where resources that were about + to be indexed can no longer be found. Those are expected cases, e.g. when the + file in question has already been deleted or renamed meanwhile. + + https://github.com/owncloud/ocis/pull/8200 + +* Bugfix - Updating and reset logo failed: [#8211](https://github.com/owncloud/ocis/pull/8211) + + We fixed a bug when admin tried to update or reset the logo. + + https://github.com/owncloud/ocis/issues/8101 + https://github.com/owncloud/ocis/pull/8211 + +* Bugfix - Cleanup graph/pkg/service/v0/driveitems.go: [#8228](https://github.com/owncloud/ocis/pull/8228) + + Main fix is using proto getters to avoid panics. But some other code + improvements were also done + + https://github.com/owncloud/ocis/pull/8228 + +* Bugfix - Cleanup `search/pkg/search/search.go`: [#8230](https://github.com/owncloud/ocis/pull/8230) + + Now uses proto getters to avoid panics. + + https://github.com/owncloud/ocis/pull/8230 + +* Bugfix - Graph/sharedWithMe works for shares from project spaces now: [#8233](https://github.com/owncloud/ocis/pull/8233) + + We fixed a bug in the 'graph/v1beta1/me/drive/sharedWithMe' endpoint that caused + an error response when the user received shares from project spaces. + Additionally the endpoint now behaves more graceful in cases where the + displayname of the owner or creator of a share or shared resource couldn't be + resolved. + + https://github.com/owncloud/ocis/issues/8027 + https://github.com/owncloud/ocis/issues/8215 + https://github.com/owncloud/ocis/pull/8233 + +* Bugfix - Fix PATCH/DELETE status code for drives that don't support them: [#8235](https://github.com/owncloud/ocis/pull/8235) + + Updating and Deleting the virtual drives for shares is currently not supported. + Instead of returning a generic 500 status we return a 405 response now. + + https://github.com/owncloud/ocis/issues/7881 + https://github.com/owncloud/ocis/pull/8235 + +* Bugfix - Fix nats authentication: [#8236](https://github.com/owncloud/ocis/pull/8236) + + Fixes nats authentication for registry/events/stores + + https://github.com/owncloud/ocis/pull/8236 + +* Bugfix - Fix the resource name: [#8246](https://github.com/owncloud/ocis/pull/8246) + + We fixed a problem where after renaming resource as sharer the receiver see a + new name. + + https://github.com/owncloud/ocis/issues/8242 + https://github.com/owncloud/ocis/pull/8246 + https://github.com/cs3org/reva/pull/4463 + +* Bugfix - Apply role constraints when creating shares via the graph API: [#8247](https://github.com/owncloud/ocis/pull/8247) + + We fixed a bug in the graph API for creating and updating shares so that + Spaceroot specific roles like 'Manager' and 'Co-owner' can no longer be assigned + for shares on files or directories. + + https://github.com/owncloud/ocis/issues/8131 + https://github.com/owncloud/ocis/pull/8247 + +* Bugfix - Fix concurrent access to a map: [#8269](https://github.com/owncloud/ocis/pull/8269) + + We fixed the race condition that led to concurrent map access in a publicshare + manager. + + https://github.com/owncloud/ocis/issues/8255 + https://github.com/owncloud/ocis/pull/8269 + https://github.com/cs3org/reva/pull/4472 + +* Bugfix - Fix nats registry: [#8281](https://github.com/owncloud/ocis/pull/8281) + + The nats registry would behave badly when configuring `nats-js-kv` via envvar. + Reason is the way go-micro initializes. It took 5 developers to find the issue + and the fix so the details cannot be shared here. Just accept that it is working + now + + https://github.com/owncloud/ocis/pull/8281 + +* Bugfix - Remove invalid environment variables: [#8303](https://github.com/owncloud/ocis/pull/8303) + + We have removed two spaces related environment variables (whether project spaces + and the share jail are enabled) and hardcoded the only allowed options. Misusing + those variables would have resulted in invalid config. + + https://github.com/owncloud/ocis/pull/8303 + +* Bugfix - Fix concurrent shares config: [#8317](https://github.com/owncloud/ocis/pull/8317) + + We fixed setting the config for concurrent web requests, which did not work as + expected before. + + https://github.com/owncloud/ocis/pull/8317 + +* Bugfix - Signed url verification: [#8385](https://github.com/owncloud/ocis/pull/8385) + + Signed urls now expire properly + + https://github.com/owncloud/ocis/pull/8385 + * Bugfix - Fix last month search: [#31145](https://github.com/golang/go/issues/31145) We've fixed the last month search edge case when currently is 31-th. @@ -1251,6 +1212,14 @@ The following sections list the changes for 5.0.0-rc.1. https://github.com/owncloud/web/issues/9768 https://github.com/owncloud/ocis/pull/7670 +* Enhancement - Support login page background configuration: [#7674](https://github.com/owncloud/ocis/issues/7674) + + Introduce a new environment variable `IDP_LOGIN_BACKGROUND_URL` that overrides + the default background image of the IDP login page when present. + + https://github.com/owncloud/ocis/issues/7674 + https://github.com/owncloud/ocis/pull/7900 + * Enhancement - Add new permissions: [#7700](https://github.com/owncloud/ocis/pull/7700) Adds new permissions to admin/spaceadmin/user roles - Favorites.List allows / @@ -1387,6 +1356,14 @@ The following sections list the changes for 5.0.0-rc.1. https://github.com/owncloud/ocis/pull/7979 +* Enhancement - Disable the password policy: [#7985](https://github.com/owncloud/ocis/pull/7985) + + We add the environment variable that allow to disable the password policy. + + https://github.com/owncloud/ocis/issues/7916 + https://github.com/owncloud/ocis/pull/7985 + https://github.com/cs3org/reva/pull/4409 + * Enhancement - Use kv store in natsjs registry: [#7987](https://github.com/owncloud/ocis/pull/7987) Replaces the nats object store with the nats kv store in the natsjs registry @@ -1435,7 +1412,72 @@ The following sections list the changes for 5.0.0-rc.1. https://github.com/owncloud/ocis/pull/8011 https://github.com/owncloud/ocis/pull/8027 -* Enhancement - Update Reva to version 2.18.0: [#8038](https://github.com/owncloud/ocis/pull/8038) +* Enhancement - Service Account roles: [#8051](https://github.com/owncloud/ocis/pull/8051) + + Use a hidden role for service accounts. It will not appear in ListRoles calls + but internally handled by settings service + + https://github.com/owncloud/ocis/pull/8051 + https://github.com/owncloud/ocis/pull/8074 + +* Enhancement - Update antivirus service: [#8062](https://github.com/owncloud/ocis/pull/8062) + + We update the antivirus icap client library and optimize the antivirus scanning + service. ANTIVIRUS_ICAP_TIMEOUT is now deprecated and + ANTIVIRUS_ICAP_SCAN_TIMEOUT should be used instead. + + ANTIVIRUS_ICAP_SCAN_TIMEOUT supports human durations like `1s`, `1m`, `1h` and + `1d`. + + https://github.com/owncloud/ocis/issues/6764 + https://github.com/owncloud/ocis/pull/8062 + +* Enhancement - Remove deprecated environment variables: [#8149](https://github.com/owncloud/ocis/pull/8149) + + We have removed all deprecated environment variables that have been marked for + removal for 5.0.0 + + https://github.com/owncloud/ocis/issues/8025 + https://github.com/owncloud/ocis/pull/8149 + +* Enhancement - Disable the password policy: [#8152](https://github.com/owncloud/ocis/pull/8152) + + We reworked and moved disabling the password policy logic from the reva to the + ocis. + + https://github.com/owncloud/ocis/issues/7916 + https://github.com/owncloud/ocis/pull/8152 + https://github.com/cs3org/reva/pull/4453 + +* Enhancement - Update reva to latest edge version: [#8287](https://github.com/owncloud/ocis/pull/8287) + + We update reva to the latest edge version to get the latest fixes and features. + + ## Changelog for reva edge + + * Bugfix [cs3org/reva#4454](https://github.com/cs3org/reva/pull/4454): Skip unnecessary share retrieval + * Bugfix [cs3org/reva#4461](https://github.com/cs3org/reva/pull/4461): CORS handling for WebDAV requests fixed + * Bugfix [cs3org/reva#4462](https://github.com/cs3org/reva/pull/4462): Prevent setting container specific permissions on files + * Bugfix [cs3org/reva#4463](https://github.com/cs3org/reva/pull/4463): Fix the resource name + * Bugfix [cs3org/reva#4466](https://github.com/cs3org/reva/pull/4466): Fix natsjskv store + * Bugfix [cs3org/reva#4469](https://github.com/cs3org/reva/pull/4469): Handle interrupted uploads + * Bugfix [cs3org/reva#4472](https://github.com/cs3org/reva/pull/4472): Fix concurrent access to a map + * Bugfix [cs3org/reva#4473](https://github.com/cs3org/reva/pull/4473): Decomposedfs now correctly lists sessions + * Bugfix [cs3org/reva#4474](https://github.com/cs3org/reva/pull/4474): Make /dav/meta consistent + * Bugfix [cs3org/reva#4475](https://github.com/cs3org/reva/pull/4475): Upload session specific processing flag + * Bugfix [cs3org/reva#4476](https://github.com/cs3org/reva/pull/4476): No need to unmark postprocessing when it was not started + * Bugfix [cs3org/reva#4479](https://github.com/cs3org/reva/pull/4479): Fix creating documents in the approvider + * Bugfix [cs3org/reva#4481](https://github.com/cs3org/reva/pull/4481): Distinguish failure and node metadata reversal + * Bugfix [cs3org/reva#4434](https://github.com/cs3org/reva/pull/4434): Fix the upload postprocessing + * Bugfix [cs3org/reva#4443](https://github.com/cs3org/reva/pull/4443): Fixed wrong status code when moving a file to a denied path + * Bugfix [cs3org/reva#4446](https://github.com/cs3org/reva/pull/4446): Disallow to delete a file during the processing + * Bugfix [cs3org/reva#4448](https://github.com/cs3org/reva/pull/4448): Fix truncating existing files + * Bugfix [cs3org/reva#4449](https://github.com/cs3org/reva/pull/4449): Keep failed processing status + * Bugfix [cs3org/reva#4452](https://github.com/cs3org/reva/pull/4452): More efficient share jail + * Bugfix [cs3org/reva#4456](https://github.com/cs3org/reva/pull/4456): Do not lose revisions when restoring the first revision + * Bugfix [cs3org/reva#4457](https://github.com/cs3org/reva/pull/4457): Fix concurrent map access in sharecache + * Enhancement [cs3org/reva#4453](https://github.com/cs3org/reva/pull/4453): Disable the password policy + * Enhancement [cs3org/reva#4477](https://github.com/cs3org/reva/pull/4477): Extend ResumePostprocessing event ## Changelog for reva 2.18.0 (2023-12-22) @@ -1530,6 +1572,11 @@ The following sections list the changes for 5.0.0-rc.1. * Enhancement [cs3org/reva#4170](https://github.com/cs3org/reva/pull/4170): Update password policies * Enhancement [cs3org/reva#4232](https://github.com/cs3org/reva/pull/4232): Improve error handling in utils package + https://github.com/owncloud/ocis/pull/8287 + https://github.com/owncloud/ocis/pull/8278 + https://github.com/owncloud/ocis/pull/8264 + https://github.com/owncloud/ocis/pull/8100 + https://github.com/owncloud/ocis/pull/8100 https://github.com/owncloud/ocis/pull/8038 https://github.com/owncloud/ocis/pull/8056 https://github.com/owncloud/ocis/pull/7949 @@ -1542,12 +1589,21 @@ The following sections list the changes for 5.0.0-rc.1. https://github.com/owncloud/ocis/pull/7727 https://github.com/owncloud/ocis/pull/7752 -* Enhancement - Service Account roles: [#8051](https://github.com/owncloud/ocis/pull/8051) +* Enhancement - Allow restarting multiple uploads with one command: [#8287](https://github.com/owncloud/ocis/pull/8287) - Use a hidden role for service accounts. It will not appear in ListRoles calls - but internally handled by settings service + Allows to restart all commands in a specific state. - https://github.com/owncloud/ocis/pull/8051 + https://github.com/owncloud/ocis/pull/8287 + +* Enhancement - Modify the concurrency default: [#8309](https://github.com/owncloud/ocis/pull/8309) + + We have changed the default MaxConcurrency value from 100 to 5 to prevent too + frequent gc runs on low memory systems. We have also bumped reva to pull in the + related changes from there. + + https://github.com/owncloud/ocis/issues/8257 + https://github.com/owncloud/ocis/pull/8309 + https://github.com/cs3org/reva/pull/4485 * Enhancement - Update web to v8.0.0-rc.3: [#8342](https://github.com/owncloud/ocis/pull/8342) @@ -1797,6 +1853,7 @@ The following sections list the changes for 5.0.0-rc.1. https://github.com/owncloud/ocis/pull/8342 https://github.com/owncloud/ocis/pull/8154 + https://github.com/owncloud/ocis/pull/8154 https://github.com/owncloud/ocis/pull/8055 https://github.com/owncloud/ocis/pull/7930 https://github.com/owncloud/ocis/pull/7952 @@ -1804,12 +1861,60 @@ The following sections list the changes for 5.0.0-rc.1. https://github.com/owncloud/ocis/pull/7883 https://github.com/owncloud/web/releases/tag/v8.0.0-rc.3 https://github.com/owncloud/web/releases/tag/v8.0.0-rc.2 + https://github.com/owncloud/web/releases/tag/v8.0.0-rc.2 https://github.com/owncloud/web/releases/tag/v8.0.0-rc.1 https://github.com/owncloud/web/releases/tag/v8.0.0-beta.1 https://github.com/owncloud/web/releases/tag/v8.0.0-beta.2 https://github.com/owncloud/web/releases/tag/v8.0.0-alpha.13 https://github.com/owncloud/web/releases/tag/v8.0.0-alpha.12 +# Changelog for [4.0.5] (2023-12-21) + +The following sections list the changes for 4.0.5. + +[4.0.5]: https://github.com/owncloud/ocis/compare/v4.0.4...v4.0.5 + +## Summary + +* Bugfix - Fix reva config of frontend service to avoid misleading error logs: [#7934](https://github.com/owncloud/ocis/pull/7934) +* Bugfix - Do not purge expired upload sessions that are still postprocessing: [#7941](https://github.com/owncloud/ocis/pull/7941) +* Bugfix - Fix trace ids: [#8026](https://github.com/owncloud/ocis/pull/8026) +* Enhancement - Add cli commands for trash-bin: [#7936](https://github.com/owncloud/ocis/pull/7936) + +## Details + +* Bugfix - Fix reva config of frontend service to avoid misleading error logs: [#7934](https://github.com/owncloud/ocis/pull/7934) + + We set an empty Credentials chain for the frontend service now. In ocis all + non-reva token authentication is handled by the proxy. This avoids irritating + error messages about the missing 'auth-bearer' service. + + https://github.com/owncloud/ocis/issues/6692 + https://github.com/owncloud/ocis/pull/7934 + https://github.com/owncloud/ocis/pull/7453 + https://github.com/cs3org/reva/pull/4396 + https://github.com/cs3org/reva/pull/4241 + +* Bugfix - Do not purge expired upload sessions that are still postprocessing: [#7941](https://github.com/owncloud/ocis/pull/7941) + + https://github.com/owncloud/ocis/pull/7941 + https://github.com/owncloud/ocis/pull/7859 + https://github.com/owncloud/ocis/pull/7958 + +* Bugfix - Fix trace ids: [#8026](https://github.com/owncloud/ocis/pull/8026) + + We changed the default tracing to produce non-empty traceids and fixed a problem + where traces got disconnected further down the stack. + + https://github.com/owncloud/ocis/pull/8026 + +* Enhancement - Add cli commands for trash-bin: [#7936](https://github.com/owncloud/ocis/pull/7936) + + We added the `list` and `restore` commands to the trash-bin items to the CLI + + https://github.com/owncloud/ocis/issues/7845 + https://github.com/owncloud/ocis/pull/7936 + # Changelog for [4.0.4] (2023-12-07) The following sections list the changes for 4.0.4. @@ -7125,7 +7230,7 @@ The following sections list the changes for 2.0.0. The following sections list the changes for 1.20.0. -[1.20.0]: https://github.com/owncloud/ocis/compare/v1.19.0...v1.20.0 +[1.20.0]: https://github.com/owncloud/ocis/compare/v1.19.1...v1.20.0 ## Summary @@ -7299,11 +7404,29 @@ The following sections list the changes for 1.20.0. https://github.com/owncloud/ocis/pull/3509 https://github.com/owncloud/web/releases/tag/v5.4.0 +# Changelog for [1.19.1] (2022-03-29) + +The following sections list the changes for 1.19.1. + +[1.19.1]: https://github.com/owncloud/ocis/compare/v1.19.0...v1.19.1 + +## Summary + +* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419) + +## Details + +* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419) + + URLs for Special items (space image, readme) were broken. + + https://github.com/owncloud/ocis/pull/3419 + # Changelog for [1.19.0] (2022-03-29) The following sections list the changes for 1.19.0. -[1.19.0]: https://github.com/owncloud/ocis/compare/v1.19.1...v1.19.0 +[1.19.0]: https://github.com/owncloud/ocis/compare/v1.18.0...v1.19.0 ## Summary @@ -7477,24 +7600,6 @@ The following sections list the changes for 1.19.0. https://github.com/owncloud/ocis/pull/3375 https://github.com/owncloud/web/releases/tag/v5.3.0 -# Changelog for [1.19.1] (2022-03-29) - -The following sections list the changes for 1.19.1. - -[1.19.1]: https://github.com/owncloud/ocis/compare/v1.18.0...v1.19.1 - -## Summary - -* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419) - -## Details - -* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419) - - URLs for Special items (space image, readme) were broken. - - https://github.com/owncloud/ocis/pull/3419 - # Changelog for [1.18.0] (2022-03-03) The following sections list the changes for 1.18.0. From 9e7a9bab9a0e318dd13cfbd856a04b3be257e239 Mon Sep 17 00:00:00 2001 From: Sawjan Gurung Date: Thu, 15 Feb 2024 21:26:17 +0545 Subject: [PATCH 02/56] [tests-only] add API test coverage for file MOVE to space-id as destination (#8459) --- .../moveByFileId.feature | 64 +++++++++++++++++++ .../features/bootstrap/SpacesContext.php | 42 ++++++++++++ .../acceptance/features/bootstrap/WebDav.php | 9 ++- 3 files changed, 112 insertions(+), 3 deletions(-) diff --git a/tests/acceptance/features/apiSpacesDavOperation/moveByFileId.feature b/tests/acceptance/features/apiSpacesDavOperation/moveByFileId.feature index 5e9ae60860..9cd8066d8a 100644 --- a/tests/acceptance/features/apiSpacesDavOperation/moveByFileId.feature +++ b/tests/acceptance/features/apiSpacesDavOperation/moveByFileId.feature @@ -706,3 +706,67 @@ Feature: moving/renaming file using file id | dav-path | | /remote.php/dav/spaces/<> | | /dav/spaces/<> | + + @issue-6739 + Scenario Outline: try to move personal file to other spaces using its id as the destination + Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + And user "Alice" has created a space "myspace" with the default quota using the Graph API + And user "Alice" has uploaded file with content "some data" to "textfile.txt" + When user "Alice" tries to move file "textfile.txt" of space "Personal" to space "" using its id in destination path "" + Then the HTTP status code should be "400" + And for user "Alice" the space "Personal" should contain these entries: + | textfile.txt | + Examples: + | dav-path | space | + | /remote.php/dav/spaces | Personal | + | /dav/spaces | Personal | + | /remote.php/dav/spaces | myspace | + | /dav/spaces | myspace | + + @issue-6739 + Scenario Outline: try to move project file to other spaces using its id as the destination + Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + And user "Alice" has created a space "myspace" with the default quota using the Graph API + And user "Alice" has uploaded a file inside space "myspace" with content "some data" to "textfile.txt" + When user "Alice" tries to move file "textfile.txt" of space "myspace" to space "" using its id in destination path "" + Then the HTTP status code should be "400" + And for user "Alice" the space "myspace" should contain these entries: + | textfile.txt | + Examples: + | dav-path | space | + | /remote.php/dav/spaces | Personal | + | /dav/spaces | Personal | + | /remote.php/dav/spaces | myspace | + | /dav/spaces | myspace | + + @issue-6739 + Scenario Outline: move a file to folder using its id as the destination (Personal space) + Given user "Alice" has uploaded file with content "some data" to "textfile.txt" + And user "Alice" has created folder "docs" + When user "Alice" moves file "textfile.txt" of space "Personal" to folder "docs" using its id in destination path "" + Then the HTTP status code should be "204" + And the content of file "docs" for user "Alice" should be "some data" + And as "Alice" file "textfile.txt" should not exist + And as "Alice" folder "docs" should not exist + And as "Alice" folder "docs" should exist in the trashbin of the space "Personal" + Examples: + | dav-path | + | /remote.php/dav/spaces | + | /dav/spaces | + + @issue-6739 + Scenario Outline: move a file to folder using its id as the destination (Project space) + Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + And user "Alice" has created a space "myspace" with the default quota using the Graph API + And user "Alice" has uploaded a file inside space "myspace" with content "some data" to "textfile.txt" + And user "Alice" has created a folder "docs" in space "myspace" + When user "Alice" moves file "textfile.txt" of space "myspace" to folder "docs" using its id in destination path "" + Then the HTTP status code should be "204" + And for user "Alice" the content of the file "docs" of the space "myspace" should be "some data" + And as "Alice" folder "docs" should exist in the trashbin of the space "myspace" + And for user "Alice" folder "/" of the space "myspace" should not contain these files: + | textfile.txt | + Examples: + | dav-path | + | /remote.php/dav/spaces | + | /dav/spaces | diff --git a/tests/acceptance/features/bootstrap/SpacesContext.php b/tests/acceptance/features/bootstrap/SpacesContext.php index ea11978691..595b23adf8 100644 --- a/tests/acceptance/features/bootstrap/SpacesContext.php +++ b/tests/acceptance/features/bootstrap/SpacesContext.php @@ -2060,6 +2060,48 @@ class SpacesContext implements Context { } } + /** + * @When /^user "([^"]*)" tries to move (?:file|folder) "([^"]*)" of space "([^"]*)" to (space|folder) "([^"]*)" using its id in destination path "([^"]*)"$/ + * @When /^user "([^"]*)" moves (?:file|folder) "([^"]*)" of space "([^"]*)" to (folder) "([^"]*)" using its id in destination path "([^"]*)"$/ + * + * @param string $user + * @param string $source + * @param string $sourceSpace + * @param string $destinationType + * @param string $destinationName + * @param string $destinationPath + * + * @throws GuzzleException + * @return void + */ + public function userMovesFileToResourceUsingItsIdAsDestinationPath( + string $user, + string $source, + string $sourceSpace, + string $destinationType, + string $destinationName, + string $destinationPath + ): void { + $source = \trim($source, "/"); + $baseUrl = $this->featureContext->getBaseUrl(); + $suffix = ""; + if ($this->featureContext->getDavPathVersion() === WebDavHelper::DAV_VERSION_SPACES) { + $suffix = $this->getSpaceIdByName($user, $sourceSpace) . "/"; + } + $fullUrl = $baseUrl . \rtrim($destinationPath, "/") . "/{$suffix}{$source}"; + + $destinationId = ""; + if ($destinationType === "space") { + $destinationId = $this->getSpaceIdByName($user, $destinationName); + } else { + $destinationId = $this->getResourceId($user, $sourceSpace, $destinationName); + } + $headers['Destination'] = $baseUrl . \rtrim($destinationPath, "/") . "/$destinationId"; + + $response = $this->moveFilesAndFoldersRequest($user, $fullUrl, $headers); + $this->featureContext->setResponse($response); + } + /** * @Given /^user "([^"]*)" has uploaded a file inside space "([^"]*)" with content "([^"]*)" to "([^"]*)"$/ * diff --git a/tests/acceptance/features/bootstrap/WebDav.php b/tests/acceptance/features/bootstrap/WebDav.php index 03e15d2d3d..47a0f00be1 100644 --- a/tests/acceptance/features/bootstrap/WebDav.php +++ b/tests/acceptance/features/bootstrap/WebDav.php @@ -1752,9 +1752,12 @@ trait WebDav { } else { $actualResourceType = "folder"; } - Assert::fail( - "$entry '$path' should not exist. But it does exist and is a $actualResourceType" - ); + + if ($entry === $actualResourceType) { + Assert::fail( + "$entry '$path' should not exist. But it does." + ); + } } } From 4fafefd69b386569817f8be634e6f2a6c228f1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 15 Feb 2024 17:36:58 +0100 Subject: [PATCH 03/56] [docs-only] ADR-0024 msgpack metadata (#8423) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ADR-0024 msgpack metadata Signed-off-by: Jörn Friedrich Dreyer * Apply typo fixes from code review Co-authored-by: Andre Duffeck * accept final version Signed-off-by: Jörn Friedrich Dreyer --------- Signed-off-by: Jörn Friedrich Dreyer Co-authored-by: Andre Duffeck --- docs/ocis/adr/0016-files-metadata.md | 2 +- docs/ocis/adr/0024-msgpack-metadata.md | 83 ++++++++++++++++++++++++++ 2 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 docs/ocis/adr/0024-msgpack-metadata.md diff --git a/docs/ocis/adr/0016-files-metadata.md b/docs/ocis/adr/0016-files-metadata.md index 50069d09c6..78cec6f81d 100644 --- a/docs/ocis/adr/0016-files-metadata.md +++ b/docs/ocis/adr/0016-files-metadata.md @@ -7,7 +7,7 @@ geekdocEditPath: edit/master/docs/ocis/adr geekdocFilePath: 0016-files-metadata.md --- -* Status: proposed +* Status: superseded by [ADR-0024]({{< ref "0024-msgpack-metadata.md" >}}) * Deciders: @butonic, @dragotin, @micbar, @C0rby * Date: 2022-02-04 diff --git a/docs/ocis/adr/0024-msgpack-metadata.md b/docs/ocis/adr/0024-msgpack-metadata.md new file mode 100644 index 0000000000..e4438a1cc4 --- /dev/null +++ b/docs/ocis/adr/0024-msgpack-metadata.md @@ -0,0 +1,83 @@ +--- +title: "24. Index and store metadata" +date: 2024-02-09T14:57:00+01:00 +weight: 24 +geekdocRepo: https://github.com/owncloud/ocis +geekdocEditPath: edit/master/docs/ocis/adr +geekdocFilePath: 0024-msgpack-metadata.md +--- + + +* Status: accepted +* Deciders: @butonic, @aduffeck, @micbar, @dragotin +* Date: [2023-03-15](https://github.com/cs3org/reva/pull/3711/commits/204253eee9dbb8e7fa93a01f3f94a2d28ce40a06) + +## Context and Problem Statement + +File metadata management is an important aspect for oCIS as a data platform. While using extended attributes to store metadata allows attaching the metadata to the actual file it causes a significant amount of syscalls that outweigh the benefits. Furthermore, filesystems are subject to different limitations in the number of extended attributes or the value size that is available. + +## Decision Drivers + +Performance of reading extended attributes suffers from the syscall overhead when listing and reading all attributes. Getting rid of limitations imposed by the filesystem used to store decomposedfs metadata. + +## Considered Options + +Going back to the original [ADR-0016 Storage for Files Metadata]({{< ref "0016-files-metadata.md" >}}) we decided to use a dedicated file for metadata storage next to the decomposedfs file representing the node. Several options for the data format were considered: + +* Use JSON files to store metadata +* Use INI files to store metadata +* Use msgpack files to store metadata +* Use protobuf messages to store metadata + +## Decision Outcome + +Chosen option: "[msgpack files](#msgpack-files)", because we want to stay with a self describing binary format. This is a performance tradeoff that is faster and more efficient than text based formats and more flexible but less efficient than protobuf. + +Note: directory listings are still read from the storage and remain uncached. + +### Positive Consequences: + +* Way less syscalls +* Node metadata can easily be cached, avoiding all trips to the storage until a file changes. + +### Negative Consequences: + +* We need to migrate existing metadata +* We need to build tooling that allows manipulating metadata similar to `setfattr` and `getfattr`. + +## Pros and Cons of the Options + +### Ini files + +* Good, human readable +* Good, self describing +* Good, widely used and well understood +* Good, suited for key value like content - exactly what we need for extended attributes +* Bad, slower and less efficient than binary formats + +### JSON files + +* Good, human readable +* Good, self describing +* Good, widely used and well understood +* Good, could be used for more than just key value +* Bad, slower and less efficient than binary formats + +### Msgpack files + +* Good, self describing +* Good, efficient because it is binary encoded +* Good, could be used for more than just key value +* Bad, not human readable - requires tooling to manipulate safely + +### protobuf files + +* Good, very efficient because it is binary encoded +* Good, could be used for more than just key value +* Bad, not human readable +* Bad, not self describing - requires tooling to evolve the messages + +## Links + +* supersedes [ADR-0016 Storage for Files Metadata]({{< ref "0016-files-metadata.md" >}}) +* [The need for speed — Experimenting with message serialization](https://medium.com/@hugovs/the-need-for-speed-experimenting-with-message-serialization-93d7562b16e4) \ No newline at end of file From 4a28cee0f7bb71fb138b9fc94acc1c6d129e85c1 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Thu, 15 Feb 2024 17:21:32 +0100 Subject: [PATCH 04/56] chore: bump web to v8.0.0-rc.4 --- .drone.env | 2 +- changelog/unreleased/update-web-8.0.0.md | 159 +++++++++++++++++++++++ services/web/Makefile | 2 +- 3 files changed, 161 insertions(+), 2 deletions(-) create mode 100644 changelog/unreleased/update-web-8.0.0.md diff --git a/.drone.env b/.drone.env index 1a92c7738b..a3f7c85062 100644 --- a/.drone.env +++ b/.drone.env @@ -1,3 +1,3 @@ # The test runner source for UI tests -WEB_COMMITID=304fa011f59131657b5fc9698d0627b2b6d8c694 +WEB_COMMITID=6fca4f4f12aa58d21c73d299b47bda2a9407eb4e WEB_BRANCH=stable-8.0 diff --git a/changelog/unreleased/update-web-8.0.0.md b/changelog/unreleased/update-web-8.0.0.md new file mode 100644 index 0000000000..f30738b62e --- /dev/null +++ b/changelog/unreleased/update-web-8.0.0.md @@ -0,0 +1,159 @@ +Enhancement: Update web to v8.0.0-rc.4 + +Tags: web + +We updated ownCloud Web to v8.0.0-rc.4. Please refer to the changelog (linked) for details on the web release. + +## Summary +* Bugfix [owncloud/web#10489](https://github.com/owncloud/web/pull/10489): Wrong share permissions when resharing off + +We updated ownCloud Web to v8.0.0-rc.3. Please refer to the changelog (linked) for details on the web release. + +## Summary +* Bugfix [owncloud/web#10318](https://github.com/owncloud/web/pull/10318): Scrollable account page +* Bugfix [owncloud/web#10321](https://github.com/owncloud/web/pull/10321): Private link error messages +* Bugfix [owncloud/web#10347](https://github.com/owncloud/web/pull/10347): Readonly user attributes have no effect on group memberships +* Bugfix [owncloud/web#10424](https://github.com/owncloud/web/pull/10424): Restore space +* Enhancement [owncloud/web#10356](https://github.com/owncloud/web/pull/10356): Preview app add reset button for images + +We updated ownCloud Web to v8.0.0-rc.2. Please refer to the changelog (linked) for details on the web release. + +## Summary +* Bugfix [owncloud/web#10176](https://github.com/owncloud/web/pull/10176): Turned off file extensions not always respected +* Bugfix [owncloud/web#10232](https://github.com/owncloud/web/pull/10232): Skip searchbar preview fetch on reload + +We updated ownCloud Web to v8.0.0-rc.1. Please refer to the changelog (linked) for details on the web release. + +## Summary +* Enhancement [owncloud/web#10224](https://github.com/owncloud/web/issues/10224): Harmonize AppSwitcher icon colors +* Bugfix [owncloud/web#10230](https://github.com/owncloud/web/issues/10230): Configurable concurrent requests +* Bugfix [owncloud/web#10158](https://github.com/owncloud/web/issues/10158): GDPR export polling +* Bugfix [owncloud/web#10220](https://github.com/owncloud/web/issues/10220): Loading indicator during conflict dialog +* Bugfix [owncloud/web#10156](https://github.com/owncloud/web/issues/10156): Uploading the same files parallel +* Bugfix [owncloud/web#10179](https://github.com/owncloud/web/issues/10179): Space navigate to trash missing +* Bugfix [owncloud/web#10118](https://github.com/owncloud/web/issues/10118): Tilesview has whitespace +* Bugfix [owncloud/web#10182](https://github.com/owncloud/web/issues/10182): Make versions panel readonly in viewers and editors + +We updated ownCloud Web to v8.0.0-beta.2. Please refer to the changelog (linked) for details on the web release. + +## Summary +* Bugfix [owncloud/web#10010](https://github.com/owncloud/web/issues/10010): Displaying full video in their dimensions +* Bugfix [owncloud/web#10149](https://github.com/owncloud/web/pull/10149): Spaces files list previews cropped +* Bugfix [owncloud/web#10149](https://github.com/owncloud/web/pull/10149): Spaces overview tile previews zoomed +* Bugfix [owncloud/web#10154](https://github.com/owncloud/web/pull/10154): Resolving links without drive alias + +We updated ownCloud Web to v8.0.0-beta.1. Please refer to the changelog (linked) for details on the web release. + +## Summary +* Change [owncloud/web#9698](https://github.com/owncloud/web/pull/9698): Theme handling +* Enhancement [owncloud/web#10111](https://github.com/owncloud/web/pull/10111): Registering right sidebar panels as extension +* Enhancement [owncloud/web#10111](https://github.com/owncloud/web/pull/10111): File sidebar in viewer and editor apps + +We updated ownCloud Web to v8.0.0-alpha.13. Please refer to the changelog (linked) for details on the web release. + +## Summary +* Enhancement [owncloud/web#10104](https://github.com/owncloud/web/pull/10104): Create link modal + +We updated ownCloud Web to v8.0.0-alpha.12. Please refer to the changelog (linked) for details on the web release. + +## Summary +* Bugfix [owncloud/web#9257](https://github.com/owncloud/web/issues/9257): Filter out shares without display name +* Bugfix [owncloud/web#9483](https://github.com/owncloud/web/issues/9483): PDF loading Safari +* Bugfix [owncloud/web#9513](https://github.com/owncloud/web/pull/9513): Set or remove expiration date on group share not possible +* Bugfix [owncloud/web#9529](https://github.com/owncloud/web/pull/9529): Shared with action menu label alignment +* Bugfix [owncloud/web#9587](https://github.com/owncloud/web/pull/9587): Internal public link resolving +* Bugfix [owncloud/web#9593](https://github.com/owncloud/web/issues/9593): Audio- & video-loading on Shared with me page +* Bugfix [owncloud/web#9649](https://github.com/owncloud/web/pull/9649): Add project space filter +* Bugfix [owncloud/web#9663](https://github.com/owncloud/web/pull/9663): Respect the open-in-new-tab-config for external apps +* Bugfix [owncloud/web#9670](https://github.com/owncloud/web/pull/9670): Tiles view accessibility +* Bugfix [owncloud/web#9694](https://github.com/owncloud/web/issues/9694): Special characters in username +* Bugfix [owncloud/web#9788](https://github.com/owncloud/web/issues/9788): Create .space folder if it does not exist +* Bugfix [owncloud/web#9799](https://github.com/owncloud/web/issues/9799): Link resolving into default app +* Bugfix [owncloud/web#9832](https://github.com/owncloud/web/pull/9832): Copy quicklinks for webkit navigator +* Bugfix [owncloud/web#9843](https://github.com/owncloud/web/pull/9843): Fix display path on resources +* Bugfix [owncloud/web#9844](https://github.com/owncloud/web/pull/9844): Upload space image +* Bugfix [owncloud/web#9861](https://github.com/owncloud/web/pull/9861): Duplicated file search request +* Bugfix [owncloud/web#9873](https://github.com/owncloud/web/pull/9873): Tags are no longer editable for a locked file +* Bugfix [owncloud/web#9881](https://github.com/owncloud/web/pull/9881): Prevent rendering of old/wrong set of resources in search list +* Bugfix [owncloud/web#9915](https://github.com/owncloud/web/pull/9915): Keep both folders conflict in same-named folders +* Bugfix [owncloud/web#9931](https://github.com/owncloud/web/pull/9931): Enabling "invite people" for password-protected folder/file +* Bugfix [owncloud/web#10031](https://github.com/owncloud/web/issues/10031): Icon extension mapping +* Bugfix [owncloud/web#10065](https://github.com/owncloud/web/pull/10065): Logout page after token expiry +* Bugfix [owncloud/web#10083](https://github.com/owncloud/web/pull/10083): Disable expiration date for alias link (internal) +* Bugfix [owncloud/web#10092](https://github.com/owncloud/web/pull/10092): Allow empty search query in "in-here" search +* Bugfix [owncloud/web#10096](https://github.com/owncloud/web/pull/10096): Remove password buttons on input if disabled +* Change [owncloud/web#7338](https://github.com/owncloud/web/issues/7338): Remove deprecated code +* Enhancement [owncloud/web#7317](https://github.com/owncloud/ocis/pull/7317): Make login url configurable +* Enhancement [owncloud/web#7497](https://github.com/owncloud/ocis/issues/7497): Permission checks for shares and favorites +* Enhancement [owncloud/web#7600](https://github.com/owncloud/web/issues/7600): Scroll to newly created folder +* Enhancement [owncloud/web#9302](https://github.com/owncloud/web/issues/9302): Application unification +* Enhancement [owncloud/web#9423](https://github.com/owncloud/web/pull/9423): Show local loading spinner in sharing button +* Enhancement [owncloud/web#9441](https://github.com/owncloud/web/pull/9441): File versions tooltip with absolute date +* Enhancement [owncloud/web#9441](https://github.com/owncloud/web/pull/9441): Disabling extensions +* Enhancement [owncloud/web#9451](https://github.com/owncloud/web/pull/9451): Add SSE to get notifications instantly +* Enhancement [owncloud/web#9525](https://github.com/owncloud/web/pull/9525): Tags form improved +* Enhancement [owncloud/web#9527](https://github.com/owncloud/web/pull/9527): Don't display confirmation dialog on file deletion +* Enhancement [owncloud/web#9531](https://github.com/owncloud/web/issues/9531): Personal shares can be shown and hidden +* Enhancement [owncloud/web#9552](https://github.com/owncloud/web/pull/9552): Upload preparation time +* Enhancement [owncloud/web#9561](https://github.com/owncloud/web/pull/9561): Indicate processing state +* Enhancement [owncloud/web#9566](https://github.com/owncloud/web/pull/9566): Display locking information +* Enhancement [owncloud/web#9584](https://github.com/owncloud/web/pull/9584): Moving share's "set expiration date" function +* Enhancement [owncloud/web#9625](https://github.com/owncloud/web/pull/9625): Add keyboard navigation to spaces overview +* Enhancement [owncloud/web#9627](https://github.com/owncloud/web/pull/9627): Add batch actions to spaces +* Enhancement [owncloud/web#9653](https://github.com/owncloud/web/pull/9653): Keyword Query Language (KQL) search syntax +* Enhancement [owncloud/web#9671](https://github.com/owncloud/web/pull/9671): OcModal set buttons to same width +* Enhancement [owncloud/web#9682](https://github.com/owncloud/web/pull/9682): Add password policy compatibility +* Enhancement [owncloud/web#9691](https://github.com/owncloud/web/pull/9691): Password generator for public links +* Enhancement [owncloud/web#9696](https://github.com/owncloud/web/pull/9696): Added app banner for mobile devices +* Enhancement [owncloud/web#9706](https://github.com/owncloud/web/pull/9706): Unify sharing expiration date menu items +* Enhancement [owncloud/web#9727](https://github.com/owncloud/web/pull/9727): Show error if password is on a banned password list +* Enhancement [owncloud/web#9771](https://github.com/owncloud/web/pull/9771): Handle postprocessing state via Server Sent Events +* Enhancement [owncloud/web#9806](https://github.com/owncloud/web/pull/9806): Preview image presentation +* Enhancement [owncloud/web#9809](https://github.com/owncloud/web/pull/9809): Add editors to the application menu +* Enhancement [owncloud/web#9814](https://github.com/owncloud/web/pull/9814): Registering nav items as extension +* Enhancement [owncloud/web#9815](https://github.com/owncloud/web/pull/9815): Add new portal into runtime to include footer +* Enhancement [owncloud/web#9818](https://github.com/owncloud/web/pull/9818): Add `mode` config option +* Enhancement [owncloud/web#9831](https://github.com/owncloud/web/pull/9831): Last modified filter chips +* Enhancement [owncloud/web#9841](https://github.com/owncloud/web/pull/9841): Add embed mode actions +* Enhancement [owncloud/web#9847](https://github.com/owncloud/web/issues/9847): Provide vendor neutral file icons +* Enhancement [owncloud/web#9853](https://github.com/owncloud/web/pull/9853): Show only create folder button in embed mode +* Enhancement [owncloud/web#9854](https://github.com/owncloud/web/pull/9854): Search query term linking +* Enhancement [owncloud/web#9857](https://github.com/owncloud/web/pull/9857): Add permission to delete link passwords when password is enforced +* Enhancement [owncloud/web#9858](https://github.com/owncloud/web/pull/9858): Remove settings icon from searchbar +* Enhancement [owncloud/web#9863](https://github.com/owncloud/web/pull/9863): Location picker in embed mode +* Enhancement [owncloud/web#9864](https://github.com/owncloud/web/pull/9864): Search tags filter chips style aligned +* Enhancement [owncloud/web#9884](https://github.com/owncloud/web/pull/9884): Enable dark theme on importer +* Enhancement [owncloud/web#9890](https://github.com/owncloud/web/pull/9890): Create shortcuts +* Enhancement [owncloud/web#9905](https://github.com/owncloud/web/pull/9905): Manage tags in details panel +* Enhancement [owncloud/web#9906](https://github.com/owncloud/web/pull/9906): Reorganize "New" menu +* Enhancement [owncloud/web#9912](https://github.com/owncloud/web/pull/9912): Add media type filter chip +* Enhancement [owncloud/web#9940](https://github.com/owncloud/web/pull/9940): Display error message for upload to locked folder +* Enhancement [owncloud/web#9966](https://github.com/owncloud/web/issues/9966): Support more audio formats with correct icon +* Enhancement [owncloud/web#10007](https://github.com/owncloud/web/issues/10007): Additional languages +* Enhancement [owncloud/web#10013](https://github.com/owncloud/web/issues/10013): Shared by filter +* Enhancement [owncloud/web#10014](https://github.com/owncloud/web/issues/10014): Share search filter +* Enhancement [owncloud/web#10024](https://github.com/owncloud/web/pull/10024): Duplicate space +* Enhancement [owncloud/web#10037](https://github.com/owncloud/web/pull/10037): Default link permission +* Enhancement [owncloud/web#10047](https://github.com/owncloud/web/pull/10047): Add explaining contextual helper to spaces overview +* Enhancement [owncloud/web#10057](https://github.com/owncloud/web/pull/10057): Folder tree creation during upload +* Enhancement [owncloud/web#10062](https://github.com/owncloud/web/pull/10062): Show webdav information in details view +* Enhancement [owncloud/web#10072](https://github.com/owncloud/web/issues/10072): Add authentication delegation in the Embed mode +* Enhancement [owncloud/web#10099](https://github.com/owncloud/web/pull/10099): Support mandatory filter while listing users +* Enhancement [owncloud/web#10102](https://github.com/owncloud/web/pull/10102): Registering quick actions as extension + +https://github.com/owncloud/ocis/pull/8342 +https://github.com/owncloud/web/releases/tag/v8.0.0-rc.3 +https://github.com/owncloud/ocis/pull/8154 +https://github.com/owncloud/web/releases/tag/v8.0.0-rc.2 +https://github.com/owncloud/ocis/pull/8154 +https://github.com/owncloud/web/releases/tag/v8.0.0-rc.2 +https://github.com/owncloud/ocis/pull/8055 +https://github.com/owncloud/web/releases/tag/v8.0.0-rc.1 +https://github.com/owncloud/ocis/pull/7930 +https://github.com/owncloud/web/releases/tag/v8.0.0-beta.1 +https://github.com/owncloud/ocis/pull/7952 +https://github.com/owncloud/web/releases/tag/v8.0.0-beta.2 +https://github.com/owncloud/ocis/pull/7918 +https://github.com/owncloud/web/releases/tag/v8.0.0-alpha.13 +https://github.com/owncloud/ocis/pull/7883 +https://github.com/owncloud/web/releases/tag/v8.0.0-alpha.12 diff --git a/services/web/Makefile b/services/web/Makefile index d25b19aecc..b5da39a7b8 100644 --- a/services/web/Makefile +++ b/services/web/Makefile @@ -1,6 +1,6 @@ SHELL := bash NAME := web -WEB_ASSETS_VERSION = v8.0.0-rc.3 +WEB_ASSETS_VERSION = v8.0.0-rc.4 include ../../.make/recursion.mk From 06f977635fdfb43f55229e3cadd3c3718084f1a6 Mon Sep 17 00:00:00 2001 From: Nalem7 <61624650+nabim777@users.noreply.github.com> Date: Fri, 16 Feb 2024 09:21:42 +0545 Subject: [PATCH 05/56] add tests to list space files shared with group when auto sync is disable (#8414) --- .../sharedWithMeSyncDisabled.feature | 453 +++++++++++++++++- 1 file changed, 441 insertions(+), 12 deletions(-) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature index 2e2a8ad430..5ffa99b394 100644 --- a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature @@ -10,11 +10,11 @@ Feature: listing sharedWithMe when auto-sync is disabled | username | | Alice | | Brian | + And user "Brian" has disabled the auto-sync share Scenario: user lists the file shared with them when auto-sync is disabled Given user "Alice" has uploaded file with content "to share" to "textfile.txt" - And user "Brian" has disabled the auto-sync share And user "Alice" has sent the following share invitation: | resource | textfile.txt | | space | Personal | @@ -282,7 +282,6 @@ Feature: listing sharedWithMe when auto-sync is disabled Scenario: user lists the folder shared with them when auto-sync is disabled Given user "Alice" has created folder "folderToShare" - And user "Brian" has disabled the auto-sync share And user "Alice" has sent the following share invitation: | resource | folderToShare | | space | Personal | @@ -519,14 +518,12 @@ Feature: listing sharedWithMe when auto-sync is disabled Scenario: group member lists the file shared with them when auto-sync is disabled - And user "Carol" has been created with default attributes and without skeleton files + Given user "Carol" has been created with default attributes and without skeleton files And group "grp1" has been created And the following users have been added to the following groups | username | groupname | | Brian | grp1 | - | Carol | grp1 | - Given user "Alice" has uploaded file with content "to share" to "textfile.txt" - And user "Brian" has disabled the auto-sync share + And user "Alice" has uploaded file with content "to share" to "textfile.txt" And user "Alice" has sent the following share invitation: | resource | textfile.txt | | space | Personal | @@ -793,14 +790,12 @@ Feature: listing sharedWithMe when auto-sync is disabled Scenario: group member lists the folder shared with them when auto-sync is disabled - And user "Carol" has been created with default attributes and without skeleton files + Given user "Carol" has been created with default attributes and without skeleton files And group "grp1" has been created And the following users have been added to the following groups | username | groupname | | Brian | grp1 | - | Carol | grp1 | - Given user "Alice" has created folder "folderToShare" - And user "Brian" has disabled the auto-sync share + And user "Alice" has created folder "folderToShare" And user "Alice" has sent the following share invitation: | resource | folderToShare | | space | Personal | @@ -1041,7 +1036,6 @@ Feature: listing sharedWithMe when auto-sync is disabled And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API And user "Alice" has created a space "projectSpace" with the default quota using the Graph API And user "Alice" has uploaded a file inside space "projectSpace" with content "to share" to "textfile.txt" - And user "Brian" has disabled the auto-sync share And user "Alice" has sent the following share invitation: | resource | textfile.txt | | space | projectSpace | @@ -1283,7 +1277,6 @@ Feature: listing sharedWithMe when auto-sync is disabled And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API And user "Alice" has created a space "projectSpace" with the default quota using the Graph API And user "Alice" has created a folder "folderToShare" in space "projectSpace" - And user "Brian" has disabled the auto-sync share And user "Alice" has sent the following share invitation: | resource | folderToShare | | space | projectSpace | @@ -1493,3 +1486,439 @@ Feature: listing sharedWithMe when auto-sync is disabled } } """ + + + Scenario: group member lists the file shared with them from project-space when auto-sync is disabled + Given using spaces DAV path + And user "Carol" has been created with default attributes and without skeleton files + And group "grp1" has been created + And the following users have been added to the following groups + | username | groupname | + | Brian | grp1 | + And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + And user "Alice" has created a space "projectSpace" with the default quota using the Graph API + And user "Alice" has uploaded a file inside space "projectSpace" with content "to share" to "textfile.txt" + And user "Alice" has sent the following share invitation: + | resource | textfile.txt | + | space | projectSpace | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Viewer | + When user "Brian" lists the shares shared with him using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem", + "size" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [false] + }, + "eTag": { + "type": "string", + "pattern": "%etag_pattern%" + }, + "file": { + "type": "object", + "required": ["mimeType"], + "properties": { + "mimeType": { + "type": "string", + "enum": ["text/plain"] + } + } + }, + "id": { + "type": "string", + "pattern": "^%share_id_pattern%$" + }, + "name": { + "type": "string", + "enum": ["textfile.txt"] + }, + "parentReference": { + "type": "object", + "required": ["driveId", "driveType", "id"], + "properties": { + "driveId": { + "type": "string", + "pattern": "^%space_id_pattern%$" + }, + "driveType": { + "type": "string", + "enum": ["virtual"] + }, + "id": { + "type": "string", + "pattern": "^%file_id_pattern%$" + } + } + }, + "remoteItem": { + "type": "object", + "required": [ + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions", + "size" + ], + "properties": { + "eTag": { + "type": "string", + "pattern": "%etag_pattern%" + }, + "file": { + "type": "object", + "required": ["mimeType"], + "properties": { + "mimeType": { + "type": "string", + "enum": ["text/plain"] + } + } + }, + "id": { + "type": "string", + "pattern": "^%file_id_pattern%$" + }, + "name": { + "type": "string", + "enum": ["textfile.txt"] + }, + "parentReference": { + "type": "object", + "required": ["driveId", "driveType"], + "properties": { + "driveId": { + "type": "string", + "pattern": "^%file_id_pattern%$" + }, + "driveType": { + "type": "string", + "enum": ["project"] + } + } + }, + "permissions": { + "type": "array", + "items": [ + { + "type": "object", + "required": [ + "grantedToV2", + "id", + "invitation", + "roles" + ], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["group"], + "properties": { + "group": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["grp1"] + }, + "id": { + "type": "string", + "pattern": "^%group_id_pattern%$" + } + } + } + } + } + }, + "id": { + "type": "string", + "pattern": "^%permissions_id_pattern%$" + }, + "invitation": { + "type": "object", + "required": ["invitedBy"], + "properties": { + "invitedBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + }, + "id": { + "type": "string", + "pattern": "^%user_id_pattern%$" + } + } + } + } + } + } + }, + "roles": { + "type": "array", + "items": [ + { + "type": "string", + "pattern": "^%role_id_pattern%$" + } + ] + } + } + ] + }, + "size": { + "type": "number", + "enum": [8] + } + } + }, + "size": { + "type": "number", + "enum": [8] + } + } + } + } + } + } + """ + + + Scenario: group member lists the space folder shared with them from project-space when auto-sync is disabled + Given using spaces DAV path + And user "Carol" has been created with default attributes and without skeleton files + And group "grp1" has been created + And the following users have been added to the following groups + | username | groupname | + | Brian | grp1 | + And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + And user "Alice" has created a space "projectSpace" with the default quota using the Graph API + And user "Alice" has created a folder "folderToShare" in space "projectSpace" + And user "Alice" has sent the following share invitation: + | resource | folderToShare | + | space | projectSpace | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Viewer | + When user "Brian" lists the shares shared with him using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [false] + }, + "eTag": { + "type": "string", + "pattern": "%etag_pattern%" + }, + "id": { + "type": "string", + "pattern": "^%share_id_pattern%$" + }, + "name": { + "type": "string", + "enum": ["folderToShare"] + }, + "parentReference": { + "type": "object", + "required": ["driveId", "driveType", "id"], + "properties": { + "driveId": { + "type": "string", + "pattern": "^%space_id_pattern%$" + }, + "driveType": { + "type": "string", + "enum": ["virtual"] + }, + "id": { + "type": "string", + "pattern": "^%file_id_pattern%$" + } + } + }, + "remoteItem": { + "type": "object", + "required": [ + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions" + ], + "properties": { + "eTag": { + "type": "string", + "pattern": "%etag_pattern%" + }, + "id": { + "type": "string", + "pattern": "^%file_id_pattern%$" + }, + "name": { + "type": "string", + "enum": ["folderToShare"] + }, + "parentReference": { + "type": "object", + "required": ["driveId", "driveType"], + "properties": { + "driveId": { + "type": "string", + "pattern": "^%file_id_pattern%$" + }, + "driveType": { + "type": "string", + "enum": ["project"] + } + } + }, + "permissions": { + "type": "array", + "items": [ + { + "type": "object", + "required": [ + "grantedToV2", + "id", + "invitation", + "roles" + ], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["group"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + }, + "id": { + "type": "string", + "pattern": "^%user_id_pattern%$" + } + } + } + } + } + }, + "id": { + "type": "string", + "pattern": "^%permissions_id_pattern%$" + }, + "invitation": { + "type": "object", + "required": ["invitedBy"], + "properties": { + "invitedBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + }, + "id": { + "type": "string", + "pattern": "^%user_id_pattern%$" + } + } + } + } + } + } + }, + "roles": { + "type": "array", + "items": [ + { + "type": "string", + "pattern": "^%role_id_pattern%$" + } + ] + } + } + ] + } + } + } + } + } + } + } + } + """ From 936ce8a983153e24447042be2b4a1872aa3ad3f3 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Fri, 16 Feb 2024 07:31:27 +0000 Subject: [PATCH 06/56] Automated changelog update [skip ci] --- CHANGELOG.md | 271 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 271 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51bd575bbd..04f2e3b53a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ The following sections list the changes for unreleased. * Enhancement - Improve ocis single binary start: [#8320](https://github.com/owncloud/ocis/pull/8320) * Enhancement - Use environment variables in yaml config files: [#8339](https://github.com/owncloud/ocis/pull/8339) * Enhancement - Bump reva: [#8340](https://github.com/owncloud/ocis/pull/8340) +* Enhancement - Update web to v8.0.0-rc.4: [#8342](https://github.com/owncloud/ocis/pull/8342) * Enhancement - Allow sending multiple user ids in one sse event: [#8379](https://github.com/owncloud/ocis/pull/8379) * Enhancement - Allow to skip service listing: [#8408](https://github.com/owncloud/ocis/pull/8408) * Enhancement - Add a make step to validate the env var annotations: [#8436](https://github.com/owncloud/ocis/pull/8436) @@ -142,6 +143,276 @@ The following sections list the changes for unreleased. https://github.com/owncloud/ocis/issues/8291 https://github.com/owncloud/ocis/pull/8340 +* Enhancement - Update web to v8.0.0-rc.4: [#8342](https://github.com/owncloud/ocis/pull/8342) + + Tags: web + + We updated ownCloud Web to v8.0.0-rc.4. Please refer to the changelog (linked) + for details on the web release. + + ## Summary * Bugfix + [owncloud/web#10489](https://github.com/owncloud/web/pull/10489): Wrong share + permissions when resharing off + + We updated ownCloud Web to v8.0.0-rc.3. Please refer to the changelog (linked) + for details on the web release. + + ## Summary * Bugfix + [owncloud/web#10318](https://github.com/owncloud/web/pull/10318): Scrollable + account page * Bugfix + [owncloud/web#10321](https://github.com/owncloud/web/pull/10321): Private link + error messages * Bugfix + [owncloud/web#10347](https://github.com/owncloud/web/pull/10347): Readonly user + attributes have no effect on group memberships * Bugfix + [owncloud/web#10424](https://github.com/owncloud/web/pull/10424): Restore space + * Enhancement [owncloud/web#10356](https://github.com/owncloud/web/pull/10356): + Preview app add reset button for images + + We updated ownCloud Web to v8.0.0-rc.2. Please refer to the changelog (linked) + for details on the web release. + + ## Summary * Bugfix + [owncloud/web#10176](https://github.com/owncloud/web/pull/10176): Turned off + file extensions not always respected * Bugfix + [owncloud/web#10232](https://github.com/owncloud/web/pull/10232): Skip searchbar + preview fetch on reload + + We updated ownCloud Web to v8.0.0-rc.1. Please refer to the changelog (linked) + for details on the web release. + + ## Summary * Enhancement + [owncloud/web#10224](https://github.com/owncloud/web/issues/10224): Harmonize + AppSwitcher icon colors * Bugfix + [owncloud/web#10230](https://github.com/owncloud/web/issues/10230): Configurable + concurrent requests * Bugfix + [owncloud/web#10158](https://github.com/owncloud/web/issues/10158): GDPR export + polling * Bugfix + [owncloud/web#10220](https://github.com/owncloud/web/issues/10220): Loading + indicator during conflict dialog * Bugfix + [owncloud/web#10156](https://github.com/owncloud/web/issues/10156): Uploading + the same files parallel * Bugfix + [owncloud/web#10179](https://github.com/owncloud/web/issues/10179): Space + navigate to trash missing * Bugfix + [owncloud/web#10118](https://github.com/owncloud/web/issues/10118): Tilesview + has whitespace * Bugfix + [owncloud/web#10182](https://github.com/owncloud/web/issues/10182): Make + versions panel readonly in viewers and editors + + We updated ownCloud Web to v8.0.0-beta.2. Please refer to the changelog (linked) + for details on the web release. + + ## Summary * Bugfix + [owncloud/web#10010](https://github.com/owncloud/web/issues/10010): Displaying + full video in their dimensions * Bugfix + [owncloud/web#10149](https://github.com/owncloud/web/pull/10149): Spaces files + list previews cropped * Bugfix + [owncloud/web#10149](https://github.com/owncloud/web/pull/10149): Spaces + overview tile previews zoomed * Bugfix + [owncloud/web#10154](https://github.com/owncloud/web/pull/10154): Resolving + links without drive alias + + We updated ownCloud Web to v8.0.0-beta.1. Please refer to the changelog (linked) + for details on the web release. + + ## Summary * Change + [owncloud/web#9698](https://github.com/owncloud/web/pull/9698): Theme handling * + Enhancement [owncloud/web#10111](https://github.com/owncloud/web/pull/10111): + Registering right sidebar panels as extension * Enhancement + [owncloud/web#10111](https://github.com/owncloud/web/pull/10111): File sidebar + in viewer and editor apps + + We updated ownCloud Web to v8.0.0-alpha.13. Please refer to the changelog + (linked) for details on the web release. + + ## Summary * Enhancement + [owncloud/web#10104](https://github.com/owncloud/web/pull/10104): Create link + modal + + We updated ownCloud Web to v8.0.0-alpha.12. Please refer to the changelog + (linked) for details on the web release. + + ## Summary * Bugfix + [owncloud/web#9257](https://github.com/owncloud/web/issues/9257): Filter out + shares without display name * Bugfix + [owncloud/web#9483](https://github.com/owncloud/web/issues/9483): PDF loading + Safari * Bugfix [owncloud/web#9513](https://github.com/owncloud/web/pull/9513): + Set or remove expiration date on group share not possible * Bugfix + [owncloud/web#9529](https://github.com/owncloud/web/pull/9529): Shared with + action menu label alignment * Bugfix + [owncloud/web#9587](https://github.com/owncloud/web/pull/9587): Internal public + link resolving * Bugfix + [owncloud/web#9593](https://github.com/owncloud/web/issues/9593): Audio- & + video-loading on Shared with me page * Bugfix + [owncloud/web#9649](https://github.com/owncloud/web/pull/9649): Add project + space filter * Bugfix + [owncloud/web#9663](https://github.com/owncloud/web/pull/9663): Respect the + open-in-new-tab-config for external apps * Bugfix + [owncloud/web#9670](https://github.com/owncloud/web/pull/9670): Tiles view + accessibility * Bugfix + [owncloud/web#9694](https://github.com/owncloud/web/issues/9694): Special + characters in username * Bugfix + [owncloud/web#9788](https://github.com/owncloud/web/issues/9788): Create .space + folder if it does not exist * Bugfix + [owncloud/web#9799](https://github.com/owncloud/web/issues/9799): Link resolving + into default app * Bugfix + [owncloud/web#9832](https://github.com/owncloud/web/pull/9832): Copy quicklinks + for webkit navigator * Bugfix + [owncloud/web#9843](https://github.com/owncloud/web/pull/9843): Fix display path + on resources * Bugfix + [owncloud/web#9844](https://github.com/owncloud/web/pull/9844): Upload space + image * Bugfix [owncloud/web#9861](https://github.com/owncloud/web/pull/9861): + Duplicated file search request * Bugfix + [owncloud/web#9873](https://github.com/owncloud/web/pull/9873): Tags are no + longer editable for a locked file * Bugfix + [owncloud/web#9881](https://github.com/owncloud/web/pull/9881): Prevent + rendering of old/wrong set of resources in search list * Bugfix + [owncloud/web#9915](https://github.com/owncloud/web/pull/9915): Keep both + folders conflict in same-named folders * Bugfix + [owncloud/web#9931](https://github.com/owncloud/web/pull/9931): Enabling "invite + people" for password-protected folder/file * Bugfix + [owncloud/web#10031](https://github.com/owncloud/web/issues/10031): Icon + extension mapping * Bugfix + [owncloud/web#10065](https://github.com/owncloud/web/pull/10065): Logout page + after token expiry * Bugfix + [owncloud/web#10083](https://github.com/owncloud/web/pull/10083): Disable + expiration date for alias link (internal) * Bugfix + [owncloud/web#10092](https://github.com/owncloud/web/pull/10092): Allow empty + search query in "in-here" search * Bugfix + [owncloud/web#10096](https://github.com/owncloud/web/pull/10096): Remove + password buttons on input if disabled * Change + [owncloud/web#7338](https://github.com/owncloud/web/issues/7338): Remove + deprecated code * Enhancement + [owncloud/web#7317](https://github.com/owncloud/ocis/pull/7317): Make login url + configurable * Enhancement + [owncloud/web#7497](https://github.com/owncloud/ocis/issues/7497): Permission + checks for shares and favorites * Enhancement + [owncloud/web#7600](https://github.com/owncloud/web/issues/7600): Scroll to + newly created folder * Enhancement + [owncloud/web#9302](https://github.com/owncloud/web/issues/9302): Application + unification * Enhancement + [owncloud/web#9423](https://github.com/owncloud/web/pull/9423): Show local + loading spinner in sharing button * Enhancement + [owncloud/web#9441](https://github.com/owncloud/web/pull/9441): File versions + tooltip with absolute date * Enhancement + [owncloud/web#9441](https://github.com/owncloud/web/pull/9441): Disabling + extensions * Enhancement + [owncloud/web#9451](https://github.com/owncloud/web/pull/9451): Add SSE to get + notifications instantly * Enhancement + [owncloud/web#9525](https://github.com/owncloud/web/pull/9525): Tags form + improved * Enhancement + [owncloud/web#9527](https://github.com/owncloud/web/pull/9527): Don't display + confirmation dialog on file deletion * Enhancement + [owncloud/web#9531](https://github.com/owncloud/web/issues/9531): Personal + shares can be shown and hidden * Enhancement + [owncloud/web#9552](https://github.com/owncloud/web/pull/9552): Upload + preparation time * Enhancement + [owncloud/web#9561](https://github.com/owncloud/web/pull/9561): Indicate + processing state * Enhancement + [owncloud/web#9566](https://github.com/owncloud/web/pull/9566): Display locking + information * Enhancement + [owncloud/web#9584](https://github.com/owncloud/web/pull/9584): Moving share's + "set expiration date" function * Enhancement + [owncloud/web#9625](https://github.com/owncloud/web/pull/9625): Add keyboard + navigation to spaces overview * Enhancement + [owncloud/web#9627](https://github.com/owncloud/web/pull/9627): Add batch + actions to spaces * Enhancement + [owncloud/web#9653](https://github.com/owncloud/web/pull/9653): Keyword Query + Language (KQL) search syntax * Enhancement + [owncloud/web#9671](https://github.com/owncloud/web/pull/9671): OcModal set + buttons to same width * Enhancement + [owncloud/web#9682](https://github.com/owncloud/web/pull/9682): Add password + policy compatibility * Enhancement + [owncloud/web#9691](https://github.com/owncloud/web/pull/9691): Password + generator for public links * Enhancement + [owncloud/web#9696](https://github.com/owncloud/web/pull/9696): Added app banner + for mobile devices * Enhancement + [owncloud/web#9706](https://github.com/owncloud/web/pull/9706): Unify sharing + expiration date menu items * Enhancement + [owncloud/web#9727](https://github.com/owncloud/web/pull/9727): Show error if + password is on a banned password list * Enhancement + [owncloud/web#9771](https://github.com/owncloud/web/pull/9771): Handle + postprocessing state via Server Sent Events * Enhancement + [owncloud/web#9806](https://github.com/owncloud/web/pull/9806): Preview image + presentation * Enhancement + [owncloud/web#9809](https://github.com/owncloud/web/pull/9809): Add editors to + the application menu * Enhancement + [owncloud/web#9814](https://github.com/owncloud/web/pull/9814): Registering nav + items as extension * Enhancement + [owncloud/web#9815](https://github.com/owncloud/web/pull/9815): Add new portal + into runtime to include footer * Enhancement + [owncloud/web#9818](https://github.com/owncloud/web/pull/9818): Add `mode` + config option * Enhancement + [owncloud/web#9831](https://github.com/owncloud/web/pull/9831): Last modified + filter chips * Enhancement + [owncloud/web#9841](https://github.com/owncloud/web/pull/9841): Add embed mode + actions * Enhancement + [owncloud/web#9847](https://github.com/owncloud/web/issues/9847): Provide vendor + neutral file icons * Enhancement + [owncloud/web#9853](https://github.com/owncloud/web/pull/9853): Show only create + folder button in embed mode * Enhancement + [owncloud/web#9854](https://github.com/owncloud/web/pull/9854): Search query + term linking * Enhancement + [owncloud/web#9857](https://github.com/owncloud/web/pull/9857): Add permission + to delete link passwords when password is enforced * Enhancement + [owncloud/web#9858](https://github.com/owncloud/web/pull/9858): Remove settings + icon from searchbar * Enhancement + [owncloud/web#9863](https://github.com/owncloud/web/pull/9863): Location picker + in embed mode * Enhancement + [owncloud/web#9864](https://github.com/owncloud/web/pull/9864): Search tags + filter chips style aligned * Enhancement + [owncloud/web#9884](https://github.com/owncloud/web/pull/9884): Enable dark + theme on importer * Enhancement + [owncloud/web#9890](https://github.com/owncloud/web/pull/9890): Create shortcuts + * Enhancement [owncloud/web#9905](https://github.com/owncloud/web/pull/9905): + Manage tags in details panel * Enhancement + [owncloud/web#9906](https://github.com/owncloud/web/pull/9906): Reorganize "New" + menu * Enhancement + [owncloud/web#9912](https://github.com/owncloud/web/pull/9912): Add media type + filter chip * Enhancement + [owncloud/web#9940](https://github.com/owncloud/web/pull/9940): Display error + message for upload to locked folder * Enhancement + [owncloud/web#9966](https://github.com/owncloud/web/issues/9966): Support more + audio formats with correct icon * Enhancement + [owncloud/web#10007](https://github.com/owncloud/web/issues/10007): Additional + languages * Enhancement + [owncloud/web#10013](https://github.com/owncloud/web/issues/10013): Shared by + filter * Enhancement + [owncloud/web#10014](https://github.com/owncloud/web/issues/10014): Share search + filter * Enhancement + [owncloud/web#10024](https://github.com/owncloud/web/pull/10024): Duplicate + space * Enhancement + [owncloud/web#10037](https://github.com/owncloud/web/pull/10037): Default link + permission * Enhancement + [owncloud/web#10047](https://github.com/owncloud/web/pull/10047): Add explaining + contextual helper to spaces overview * Enhancement + [owncloud/web#10057](https://github.com/owncloud/web/pull/10057): Folder tree + creation during upload * Enhancement + [owncloud/web#10062](https://github.com/owncloud/web/pull/10062): Show webdav + information in details view * Enhancement + [owncloud/web#10072](https://github.com/owncloud/web/issues/10072): Add + authentication delegation in the Embed mode * Enhancement + [owncloud/web#10099](https://github.com/owncloud/web/pull/10099): Support + mandatory filter while listing users * Enhancement + [owncloud/web#10102](https://github.com/owncloud/web/pull/10102): Registering + quick actions as extension + + https://github.com/owncloud/ocis/pull/8342 + https://github.com/owncloud/ocis/pull/8154 + https://github.com/owncloud/ocis/pull/8154 + https://github.com/owncloud/ocis/pull/8055 + https://github.com/owncloud/ocis/pull/7930 + https://github.com/owncloud/ocis/pull/7952 + https://github.com/owncloud/ocis/pull/7918 + https://github.com/owncloud/ocis/pull/7883 + https://github.com/owncloud/web/releases/tag/v8.0.0-rc.3 + https://github.com/owncloud/web/releases/tag/v8.0.0-rc.2 + https://github.com/owncloud/web/releases/tag/v8.0.0-rc.2 + https://github.com/owncloud/web/releases/tag/v8.0.0-rc.1 + https://github.com/owncloud/web/releases/tag/v8.0.0-beta.1 + https://github.com/owncloud/web/releases/tag/v8.0.0-beta.2 + https://github.com/owncloud/web/releases/tag/v8.0.0-alpha.13 + https://github.com/owncloud/web/releases/tag/v8.0.0-alpha.12 + * Enhancement - Allow sending multiple user ids in one sse event: [#8379](https://github.com/owncloud/ocis/pull/8379) Sending multiple user ids in one sse event is now possible which reduces the From 21ea45cabf274e784906f95616a2cbd01fb87991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 16 Feb 2024 09:55:40 +0100 Subject: [PATCH 07/56] [docs-only] ADR-0026 Application based user settings (#8426) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ADR-0026 Application based user settings Signed-off-by: Jörn Friedrich Dreyer * mark as draft * Update docs/ocis/adr/0026-application-based-user-settings.md Co-authored-by: Benedikt Kulmann --------- Signed-off-by: Jörn Friedrich Dreyer Co-authored-by: Benedikt Kulmann --- .../0026-application-based-user-settings.md | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 docs/ocis/adr/0026-application-based-user-settings.md diff --git a/docs/ocis/adr/0026-application-based-user-settings.md b/docs/ocis/adr/0026-application-based-user-settings.md new file mode 100644 index 0000000000..8ada2bdf75 --- /dev/null +++ b/docs/ocis/adr/0026-application-based-user-settings.md @@ -0,0 +1,93 @@ +--- +title: "26. Application based user settings" +date: 2024-02-09T17:30:00+01:00 +weight: 26 +geekdocRepo: https://github.com/owncloud/ocis +geekdocEditPath: edit/master/docs/ocis/adr +geekdocFilePath: 0026-application-based-user-settings.md +--- + +* Status: draft +* Deciders: @butonic, @fschade, @kulmann +* Date: 2024-02-09 + +## Context and Problem Statement + +To share user settings across devices applications want to store user specific settings on the server. The ePUB app wants to remember which page the user is on. The iOS app wants to rember search queries. The Caldav app needs a space to store data. + +## Decision Drivers + +## Considered Options + +* OCS provisioning API +* settings service +* libregraph API + +## Decision Outcome + +Chosen option: *???* + +### Positive Consequences: + +* TODO + +### Negative Consequences: + +* TODO + +## Pros and Cons of the Options + +### OCS provisioning API + +Nextcloud added a `/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}` endpoint + +* Bad, legacy API we want to get rid of + +### settings service + +- Bad, yet another API. Always uses POST requests. + +### libregraph API + +The MS Graph API has [a special approot driveItem](https://learn.microsoft.com/en-us/graph/api/drive-get-specialfolder?view=graph-rest-1.0&tabs=http) that apps can use to store arbitrary files. See also: +[Using an App Folder to store user content without access to all files](https://learn.microsoft.com/en-us/onedrive/developer/rest-api/concepts/special-folders-appfolder?view=odsp-graph-online) and a blog post with the section [Store data in the application’s personal folder](https://blog.mastykarz.nl/easiest-store-user-settings-microsoft-365-app/#store-data-in-the-applications-personal-folder). + +It basically uses the `/me/drive/special/approot:/{filename}` endpoint to +```http +PUT https://graph.microsoft.com/v1.0/me/drive/special/approot:/settings.json:/content +content-type: text/plain +authorization: Bearer abc + +{"key": "value"} +``` +or +```http +GET https://graph.microsoft.com/v1.0/me/drive/special/approot:/settings.json:/content +authorization: Bearer abc +``` + +On single page apps you need two requests: +```http +GET https://graph.microsoft.com/v1.0/me/drive/special/approot:/settings.json?select=@microsoft.graph.downloadUrl +authorization: Bearer abc +``` +followed by +```http +GET +``` + +Currently, applications have no dedicated tokens that we could use to derive the `appid` from. All apps should have an `appid` and [be discoverable under](https://learn.microsoft.com/en-us/graph/api/application-list?view=graph-rest-1.0&tabs=http) +```http +GET /applications +``` + +In any case for libregraph we could introduce a `LIBRE_GRAPH_APPID` header to make these requests possible rather soon. + +Then we can decide if we want to store these files in the users personal drive, or if we create a space for every app that then uses the userid as a folder that contains all the files for the user. + +- Good, because clients can remain in libregraph API land +- Bad, we currently have no application tokens + + + +## Links From c3d895445e9bbd54935f56241070aeb4424899a4 Mon Sep 17 00:00:00 2001 From: Sagar Gurung <46086950+SagarGi@users.noreply.github.com> Date: Fri, 16 Feb 2024 15:16:29 +0545 Subject: [PATCH 08/56] [tests-only][full-ci]Added tests to lists shared by me after sharee is deleted (#8450) * Added tests to lists shared by me after sharee is deleted Signed-off-by: sagargurung1001@gmail.com * Refactor tests * Review address Signed-off-by: sagargurung1001@gmail.com * Review address Signed-off-by: sagargurung1001@gmail.com --------- Signed-off-by: sagargurung1001@gmail.com --- .../features/apiSharingNg/sharedByMe.feature | 63 +++++++++++++++++++ .../features/bootstrap/GraphContext.php | 46 +++++++++++--- 2 files changed, 100 insertions(+), 9 deletions(-) diff --git a/tests/acceptance/features/apiSharingNg/sharedByMe.feature b/tests/acceptance/features/apiSharingNg/sharedByMe.feature index 1f30c008f6..2732534719 100644 --- a/tests/acceptance/features/apiSharingNg/sharedByMe.feature +++ b/tests/acceptance/features/apiSharingNg/sharedByMe.feature @@ -1451,3 +1451,66 @@ Feature: resources shared by user } } """ + + @env-config + Scenario: user lists shared resources for deleted sharee + Given the config "GRAPH_SPACES_USERS_CACHE_TTL" has been set to "1" + And the administrator has assigned the role "Admin" to user "Alice" using the Graph API + And user "Alice" has uploaded file with content "hello world" to "textfile.txt" + And user "Alice" has sent the following share invitation: + | resource | textfile.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + And the administrator has deleted user "Brian" using the provisioning API + When user "Alice" lists the shares shared by her after clearing user cache using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "minItems":0, + "maxItems":0 + } + } + } + """ + + @env-config + Scenario: user lists shared resources for deleted group + Given the config "GRAPH_SPACES_GROUPS_CACHE_TTL" has been set to "1" + And group "grp1" has been created + And the administrator has assigned the role "Admin" to user "Alice" using the Graph API + And user "Alice" has uploaded file with content "hello world" to "textfile.txt" + And user "Alice" has sent the following share invitation: + | resource | textfile.txt | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Viewer | + And group "grp1" has been deleted + When user "Alice" lists the shares shared by her after clearing group cache using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "minItems":0, + "maxItems":0 + } + } + } + """ diff --git a/tests/acceptance/features/bootstrap/GraphContext.php b/tests/acceptance/features/bootstrap/GraphContext.php index b73ebbb6a2..8b8216541b 100644 --- a/tests/acceptance/features/bootstrap/GraphContext.php +++ b/tests/acceptance/features/bootstrap/GraphContext.php @@ -2526,6 +2526,30 @@ class GraphContext implements Context { ); } + /** + * + * @param string $user + * @param bool $waitForCacheExpiry + * + * @return void + */ + public function listSharesSharedByMe(string $user, bool $waitForCacheExpiry = false) { + $credentials = $this->getAdminOrUserCredentials($user); + if ($waitForCacheExpiry) { + // ENV (GRAPH_SPACES_GROUPS_CACHE_TTL | GRAPH_SPACES_USERS_CACHE_TTL) is set default to 60 sec + // which means 60 sec is required to clean up all the user|group cache once they are deleted + // for tests we have set the above ENV's to minimum which is 1 sec as we check the details for the deleted users + sleep(1); + } + $response = GraphHelper::getSharesSharedByMe( + $this->featureContext->getBaseUrl(), + $this->featureContext->getStepLineRef(), + $credentials['username'], + $credentials['password'] + ); + $this->featureContext->setResponse($response); + } + /** * @When user :user lists the shares shared by him/her using the Graph API * @@ -2535,15 +2559,19 @@ class GraphContext implements Context { * @throws GuzzleException */ public function userListsTheResourcesSharedByAUserUsingGraphApi(string $user): void { - $credentials = $this->getAdminOrUserCredentials($user); - $this->featureContext->setResponse( - GraphHelper::getSharesSharedByMe( - $this->featureContext->getBaseUrl(), - $this->featureContext->getStepLineRef(), - $credentials['username'], - $credentials['password'] - ) - ); + $this->listSharesSharedByMe($user); + } + + /** + * @When user :user lists the shares shared by him/her after clearing user/group cache using the Graph API + * + * @param string $user + * + * @return void + * @throws GuzzleException + */ + public function userListsTheResourcesSharedByAUserAfterClearingUserOrGroupSpaceUsingGraphApi(string $user): void { + $this->listSharesSharedByMe($user, true); } /** From c7dc8a597b61ea4e81fc6c61ae7160f405e535d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 16 Feb 2024 16:20:13 +0100 Subject: [PATCH 09/56] [docs-only] ADR-0025 Distributed Search Index (#8425) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ADR-0025 Distributed Search Index Signed-off-by: Jörn Friedrich Dreyer * mark the old as accepted and the new as draft --------- Signed-off-by: Jörn Friedrich Dreyer --- docs/ocis/adr/0019-file-search-index.md | 2 +- .../ocis/adr/0025-distributed-search-index.md | 76 +++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 docs/ocis/adr/0025-distributed-search-index.md diff --git a/docs/ocis/adr/0019-file-search-index.md b/docs/ocis/adr/0019-file-search-index.md index 2e6ecf52a5..d0701bff37 100644 --- a/docs/ocis/adr/0019-file-search-index.md +++ b/docs/ocis/adr/0019-file-search-index.md @@ -7,7 +7,7 @@ geekdocEditPath: edit/master/docs/ocis/adr geekdocFilePath: 0019-file-search-index.md --- -* Status: proposed +* Status: accepted * Deciders: @butonic, @micbar, @dragotin, @C0rby * Date: 2022-03-18 diff --git a/docs/ocis/adr/0025-distributed-search-index.md b/docs/ocis/adr/0025-distributed-search-index.md new file mode 100644 index 0000000000..672b7d98d6 --- /dev/null +++ b/docs/ocis/adr/0025-distributed-search-index.md @@ -0,0 +1,76 @@ +--- +title: "25. Distributed Search Index" +date: 2024-02-09T16:27:00+01:00 +weight: 25 +geekdocRepo: https://github.com/owncloud/ocis +geekdocEditPath: edit/master/docs/ocis/adr +geekdocFilePath: 0025-distributed-search-index.md +--- + +* Status: draft +* Deciders: @butonic, @fschade, @aduffeck +* Date: 2024-02-09 + +## Context and Problem Statement + +Search is currently implemented with [blevesearch](https://github.com/blevesearch/bleve), which internally uses bbolt. bbolt writes to a local file, which prevents scaling out the service. + +The initial implementation used a single blevesearch index for all spaces. While this makes querying all spaces easy because the results do not need to be aggregated from multiple indexes, the single node becomes a bottleneck when answering search queries. Furthermore, indexing is also part of the search service and has to share the resources. + +## Decision Drivers + +* Indexing should be decoupled from the search service +* The search service should be able to scale horizontally +* The solution needs to be embeddable in the single binary + +## Considered Options + +* one index per space +* [elasticsearch](https://github.com/elastic/elasticsearch) (java) +* [dgraph](https://github.com/dgraph-io/dgraph) (go) +* [manticore](https://github.com/manticoresoftware/manticoresearch/) (C++) +* [meilisearch](https://github.com/meilisearch/meilisearch) (Rust) + +## Decision Outcome + +Chosen option: *???* + +### Positive Consequences: + +* TODO + +### Negative Consequences: + +* TODO + +## Pros and Cons of the Options + +### one index per space + +Instead of using a single index (current implementation) or a distributed search index like elasticsearch the search service should aggregate queries from dedicated indexes per space. The api to a space index provider should be able to take multiple space ids in the request, similar to how a storage provider can handle multiple spaces. When treating spaces and the corresponding search index to belong together we can also treat them as a single unit for backup and restore. In federated deployments we can send the search queries to all search providers / spaces that the user has access to. + +How a search provider is implemented then depends on the requirements. For a single node deployment bleve might be fine, for a kubernetes deployment a dedicated service might be the better fit. + +### elasticsearch + +* Good, commercial support available at https://www.elastic.co/de/pricing +* Good, industry standard +* Bad, nobody seems to like it +* Bad, not embeddable (Java) + +### dgraph + +* Good, commercial support available at https://dgraph.io/pricing +* Good, embeddable? (go) - TODO verify + +### manticore +* Good, commercial support available at https://manticoresearch.com/services/ +* Bad, not embeddable (C++) + +### meilisearch +* Good, commercial support available at https://www.meilisearch.com/pricing +* Bad, not embeddable (Rust) + +## Links + +* supersedes [ADR-0019 File Search Index]({{< ref "0019-file-search-index.md" >}}) \ No newline at end of file From f95552a5b028214f0cfabcd5c0d017484d3d54b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 16 Feb 2024 16:34:37 +0100 Subject: [PATCH 10/56] fix ADR0024 name (#8479) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- docs/ocis/adr/0024-msgpack-metadata.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ocis/adr/0024-msgpack-metadata.md b/docs/ocis/adr/0024-msgpack-metadata.md index e4438a1cc4..9e6c04eb5c 100644 --- a/docs/ocis/adr/0024-msgpack-metadata.md +++ b/docs/ocis/adr/0024-msgpack-metadata.md @@ -1,5 +1,5 @@ --- -title: "24. Index and store metadata" +title: "24. Messagepack metadata" date: 2024-02-09T14:57:00+01:00 weight: 24 geekdocRepo: https://github.com/owncloud/ocis From e6e9e7a88cf3ecd5b3f2b1d54be9c3f3b77308c2 Mon Sep 17 00:00:00 2001 From: ownClouders Date: Sat, 17 Feb 2024 00:47:34 +0000 Subject: [PATCH 11/56] [tx] updated from transifex --- .../userlog/pkg/service/l10n/locale/de/LC_MESSAGES/userlog.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/userlog/pkg/service/l10n/locale/de/LC_MESSAGES/userlog.po b/services/userlog/pkg/service/l10n/locale/de/LC_MESSAGES/userlog.po index 6f3c5c421b..8706088ba3 100644 --- a/services/userlog/pkg/service/l10n/locale/de/LC_MESSAGES/userlog.po +++ b/services/userlog/pkg/service/l10n/locale/de/LC_MESSAGES/userlog.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: EMAIL\n" -"POT-Creation-Date: 2024-01-28 00:35+0000\n" +"POT-Creation-Date: 2024-02-17 00:46+0000\n" "PO-Revision-Date: 2023-03-15 08:28+0000\n" "Last-Translator: Michael Barz , 2023\n" "Language-Team: German (https://app.transifex.com/owncloud-org/teams/6149/de/)\n" From cc18f5c372b7d3795167addb3c50574a95717941 Mon Sep 17 00:00:00 2001 From: ownClouders Date: Mon, 19 Feb 2024 04:30:50 +0000 Subject: [PATCH 12/56] [tx] updated from transifex --- .../pkg/email/l10n/locale/ca/LC_MESSAGES/notifications.po | 2 +- .../pkg/email/l10n/locale/en_GB/LC_MESSAGES/notifications.po | 2 +- .../pkg/email/l10n/locale/es/LC_MESSAGES/notifications.po | 2 +- .../pkg/email/l10n/locale/ko/LC_MESSAGES/notifications.po | 2 +- .../pkg/email/l10n/locale/pt_BR/LC_MESSAGES/notifications.po | 2 +- .../pkg/email/l10n/locale/ru/LC_MESSAGES/notifications.po | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/services/notifications/pkg/email/l10n/locale/ca/LC_MESSAGES/notifications.po b/services/notifications/pkg/email/l10n/locale/ca/LC_MESSAGES/notifications.po index b5143cb9b7..3943b8edd4 100644 --- a/services/notifications/pkg/email/l10n/locale/ca/LC_MESSAGES/notifications.po +++ b/services/notifications/pkg/email/l10n/locale/ca/LC_MESSAGES/notifications.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: EMAIL\n" -"POT-Creation-Date: 2024-01-30 00:34+0000\n" +"POT-Creation-Date: 2024-02-19 04:30+0000\n" "PO-Revision-Date: 2023-04-19 11:11+0000\n" "Last-Translator: Arnau Morancho, 2023\n" "Language-Team: Catalan (https://app.transifex.com/owncloud-org/teams/6149/ca/)\n" diff --git a/services/notifications/pkg/email/l10n/locale/en_GB/LC_MESSAGES/notifications.po b/services/notifications/pkg/email/l10n/locale/en_GB/LC_MESSAGES/notifications.po index 12befb8e6a..2a44965f32 100644 --- a/services/notifications/pkg/email/l10n/locale/en_GB/LC_MESSAGES/notifications.po +++ b/services/notifications/pkg/email/l10n/locale/en_GB/LC_MESSAGES/notifications.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: EMAIL\n" -"POT-Creation-Date: 2024-01-30 00:34+0000\n" +"POT-Creation-Date: 2024-02-19 04:30+0000\n" "PO-Revision-Date: 2023-04-19 11:11+0000\n" "Last-Translator: Andi Chandler , 2023\n" "Language-Team: English (United Kingdom) (https://app.transifex.com/owncloud-org/teams/6149/en_GB/)\n" diff --git a/services/notifications/pkg/email/l10n/locale/es/LC_MESSAGES/notifications.po b/services/notifications/pkg/email/l10n/locale/es/LC_MESSAGES/notifications.po index 95abb696d0..e806da5e4d 100644 --- a/services/notifications/pkg/email/l10n/locale/es/LC_MESSAGES/notifications.po +++ b/services/notifications/pkg/email/l10n/locale/es/LC_MESSAGES/notifications.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: EMAIL\n" -"POT-Creation-Date: 2024-01-30 00:34+0000\n" +"POT-Creation-Date: 2024-02-19 04:30+0000\n" "PO-Revision-Date: 2023-04-19 11:11+0000\n" "Last-Translator: Juan Carlos Garrote, 2023\n" "Language-Team: Spanish (https://app.transifex.com/owncloud-org/teams/6149/es/)\n" diff --git a/services/notifications/pkg/email/l10n/locale/ko/LC_MESSAGES/notifications.po b/services/notifications/pkg/email/l10n/locale/ko/LC_MESSAGES/notifications.po index 2bc2ce7fac..7d5b94b23f 100644 --- a/services/notifications/pkg/email/l10n/locale/ko/LC_MESSAGES/notifications.po +++ b/services/notifications/pkg/email/l10n/locale/ko/LC_MESSAGES/notifications.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: EMAIL\n" -"POT-Creation-Date: 2024-01-30 00:34+0000\n" +"POT-Creation-Date: 2024-02-19 04:30+0000\n" "PO-Revision-Date: 2023-04-19 11:11+0000\n" "Last-Translator: Hugo Blackwood, 2023\n" "Language-Team: Korean (https://app.transifex.com/owncloud-org/teams/6149/ko/)\n" diff --git a/services/notifications/pkg/email/l10n/locale/pt_BR/LC_MESSAGES/notifications.po b/services/notifications/pkg/email/l10n/locale/pt_BR/LC_MESSAGES/notifications.po index 0ee3091b34..a6f7ebf890 100644 --- a/services/notifications/pkg/email/l10n/locale/pt_BR/LC_MESSAGES/notifications.po +++ b/services/notifications/pkg/email/l10n/locale/pt_BR/LC_MESSAGES/notifications.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: EMAIL\n" -"POT-Creation-Date: 2024-01-30 00:34+0000\n" +"POT-Creation-Date: 2024-02-19 04:30+0000\n" "PO-Revision-Date: 2023-04-19 11:11+0000\n" "Last-Translator: Flávio Veras , 2023\n" "Language-Team: Portuguese (Brazil) (https://app.transifex.com/owncloud-org/teams/6149/pt_BR/)\n" diff --git a/services/notifications/pkg/email/l10n/locale/ru/LC_MESSAGES/notifications.po b/services/notifications/pkg/email/l10n/locale/ru/LC_MESSAGES/notifications.po index ab304472f7..ff7c1a7f5d 100644 --- a/services/notifications/pkg/email/l10n/locale/ru/LC_MESSAGES/notifications.po +++ b/services/notifications/pkg/email/l10n/locale/ru/LC_MESSAGES/notifications.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: EMAIL\n" -"POT-Creation-Date: 2024-01-30 00:34+0000\n" +"POT-Creation-Date: 2024-02-19 04:30+0000\n" "PO-Revision-Date: 2023-04-19 11:11+0000\n" "Last-Translator: Roman Perekhod, 2023\n" "Language-Team: Russian (https://app.transifex.com/owncloud-org/teams/6149/ru/)\n" From e97983dbd9f531b86713033fa0cdb9eaf2958e31 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 06:21:47 +0000 Subject: [PATCH 13/56] build(deps): bump github.com/nats-io/nats.go from 1.32.0 to 1.33.1 Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go) from 1.32.0 to 1.33.1. - [Release notes](https://github.com/nats-io/nats.go/releases) - [Commits](https://github.com/nats-io/nats.go/compare/v1.32.0...v1.33.1) --- updated-dependencies: - dependency-name: github.com/nats-io/nats.go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 +- .../nats-io/nats.go/CONTRIBUTING.md | 45 +++++++++++++++++++ vendor/github.com/nats-io/nats.go/README.md | 2 +- .../nats.go/encoders/builtin/default_enc.go | 2 +- vendor/github.com/nats-io/nats.go/go_test.mod | 8 ++-- vendor/github.com/nats-io/nats.go/go_test.sum | 16 +++---- vendor/github.com/nats-io/nats.go/js.go | 15 +++++++ vendor/github.com/nats-io/nats.go/jsm.go | 10 ++++- vendor/github.com/nats-io/nats.go/nats.go | 4 +- vendor/github.com/nats-io/nats.go/object.go | 35 +++++++++++---- vendor/modules.txt | 2 +- 12 files changed, 115 insertions(+), 30 deletions(-) create mode 100644 vendor/github.com/nats-io/nats.go/CONTRIBUTING.md diff --git a/go.mod b/go.mod index eaff57a694..453176e76f 100644 --- a/go.mod +++ b/go.mod @@ -61,7 +61,7 @@ require ( github.com/mna/pigeon v1.2.1 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 github.com/nats-io/nats-server/v2 v2.10.10 - github.com/nats-io/nats.go v1.32.0 + github.com/nats-io/nats.go v1.33.1 github.com/oklog/run v1.1.0 github.com/olekukonko/tablewriter v0.0.5 github.com/onsi/ginkgo v1.16.5 diff --git a/go.sum b/go.sum index 5141a427f9..785197cc1e 100644 --- a/go.sum +++ b/go.sum @@ -1747,8 +1747,8 @@ github.com/nats-io/jwt/v2 v2.5.3 h1:/9SWvzc6hTfamcgXJ3uYRpgj+QuY2aLNqRiqrKcrpEo= github.com/nats-io/jwt/v2 v2.5.3/go.mod h1:iysuPemFcc7p4IoYots3IuELSI4EDe9Y0bQMe+I3Bf4= github.com/nats-io/nats-server/v2 v2.10.10 h1:g1Wd64J5SGsoqWSx1qoNu9/At7a2x+jE7Qtf2XpEx/I= github.com/nats-io/nats-server/v2 v2.10.10/go.mod h1:/TE61Dos8NlwZnjzyE3ZlOnM6dgl7tf937dnf4VclrA= -github.com/nats-io/nats.go v1.32.0 h1:Bx9BZS+aXYlxW08k8Gd3yR2s73pV5XSoAQUyp1Kwvp0= -github.com/nats-io/nats.go v1.32.0/go.mod h1:Ubdu4Nh9exXdSz0RVWRFBbRfrbSxOYd26oF0wkWclB8= +github.com/nats-io/nats.go v1.33.1 h1:8TxLZZ/seeEfR97qV0/Bl939tpDnt2Z2fK3HkPypj70= +github.com/nats-io/nats.go v1.33.1/go.mod h1:Ubdu4Nh9exXdSz0RVWRFBbRfrbSxOYd26oF0wkWclB8= github.com/nats-io/nkeys v0.4.7 h1:RwNJbbIdYCoClSDNY7QVKZlyb/wfT6ugvFCiKy6vDvI= github.com/nats-io/nkeys v0.4.7/go.mod h1:kqXRgRDPlGy7nGaEDMuYzmiJCIAAWDK0IMBtDmGD0nc= github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= diff --git a/vendor/github.com/nats-io/nats.go/CONTRIBUTING.md b/vendor/github.com/nats-io/nats.go/CONTRIBUTING.md new file mode 100644 index 0000000000..9eea61be3c --- /dev/null +++ b/vendor/github.com/nats-io/nats.go/CONTRIBUTING.md @@ -0,0 +1,45 @@ +# Contributing + +Thanks for your interest in contributing! This document contains `nats-io/nats.go` specific contributing details. If you are a first-time contributor, please refer to the general [NATS Contributor Guide](https://nats.io/contributing/) to get a comprehensive overview of contributing to the NATS project. + +## Getting started + +There are three general ways you can contribute to this repo: + +- Proposing an enhancement or new feature +- Reporting a bug or regression +- Contributing changes to the source code + +For the first two, refer to the [GitHub Issues](https://github.com/nats-io/nats.go/issues/new/choose) which guides you through the available options along with the needed information to collect. + +## Contributing changes + +_Prior to opening a pull request, it is recommended to open an issue first to ensure the maintainers can review intended changes. Exceptions to this rule include fixing non-functional source such as code comments, documentation or other supporting files._ + +Proposing source code changes is done through GitHub's standard pull request workflow. + +If your branch is a work-in-progress then please start by creating your pull requests as draft, by clicking the down-arrow next to the `Create pull request` button and instead selecting `Create draft pull request`. + +This will defer the automatic process of requesting a review from the NATS team and significantly reduces noise until you are ready. Once you are happy, you can click the `Ready for review` button. + +### Guidelines + +A good pull request includes: + +- A high-level description of the changes, including links to any issues that are related by adding comments like `Resolves #NNN` to your description. See [Linking a Pull Request to an Issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) for more information. +- An up-to-date parent commit. Please make sure you are pulling in the latest `main` branch and rebasing your work on top of it, i.e. `git rebase main`. +- Unit tests where appropriate. Bug fixes will benefit from the addition of regression tests. New features will not be accepted without suitable test coverage! +- No more commits than necessary. Sometimes having multiple commits is useful for telling a story or isolating changes from one another, but please squash down any unnecessary commits that may just be for clean-up, comments or small changes. +- No additional external dependencies that aren't absolutely essential. Please do everything you can to avoid pulling in additional libraries/dependencies into `go.mod` as we will be very critical of these. + +### Sign-off + +In order to accept a contribution, you will first need to certify that the contribution is your original work and that you license the work to the project under the [Apache-2.0 license](https://github.com/nats-io/nats.go/blob/main/LICENSE). + +This is done by using `Signed-off-by` statements, which should appear in **both** your commit messages and your PR description. Please note that we can only accept sign-offs under a legal name. Nicknames and aliases are not permitted. + +To perform a sign-off with `git`, use `git commit -s` (or `--signoff`). + +## Get help + +If you have questions about the contribution process, please start a [GitHub discussion](https://github.com/nats-io/nats.go/discussions), join the [NATS Slack](https://slack.nats.io/), or send your question to the [NATS Google Group](https://groups.google.com/forum/#!forum/natsio). diff --git a/vendor/github.com/nats-io/nats.go/README.md b/vendor/github.com/nats-io/nats.go/README.md index d7f2e00d64..bc8cceb3a3 100644 --- a/vendor/github.com/nats-io/nats.go/README.md +++ b/vendor/github.com/nats-io/nats.go/README.md @@ -31,7 +31,7 @@ When using or transitioning to Go modules support: ```bash # Go client latest or explicit version go get github.com/nats-io/nats.go/@latest -go get github.com/nats-io/nats.go/@v1.32.0 +go get github.com/nats-io/nats.go/@v1.33.1 # For latest NATS Server, add /v2 at the end go get github.com/nats-io/nats-server/v2 diff --git a/vendor/github.com/nats-io/nats.go/encoders/builtin/default_enc.go b/vendor/github.com/nats-io/nats.go/encoders/builtin/default_enc.go index 7e729637ce..c1d0f6f0b1 100644 --- a/vendor/github.com/nats-io/nats.go/encoders/builtin/default_enc.go +++ b/vendor/github.com/nats-io/nats.go/encoders/builtin/default_enc.go @@ -24,7 +24,7 @@ import ( // DefaultEncoder implementation for EncodedConn. // This encoder will leave []byte and string untouched, but will attempt to // turn numbers into appropriate strings that can be decoded. It will also -// propely encoded and decode bools. If will encode a struct, but if you want +// properly encoded and decode bools. If will encode a struct, but if you want // to properly handle structures you should use JsonEncoder. type DefaultEncoder struct { // Empty diff --git a/vendor/github.com/nats-io/nats.go/go_test.mod b/vendor/github.com/nats-io/nats.go/go_test.mod index d28963c27b..4e747bfeb4 100644 --- a/vendor/github.com/nats-io/nats.go/go_test.mod +++ b/vendor/github.com/nats-io/nats.go/go_test.mod @@ -5,8 +5,8 @@ go 1.19 require ( github.com/golang/protobuf v1.4.2 github.com/klauspost/compress v1.17.4 - github.com/nats-io/nats-server/v2 v2.10.7 - github.com/nats-io/nkeys v0.4.6 + github.com/nats-io/nats-server/v2 v2.10.9 + github.com/nats-io/nkeys v0.4.7 github.com/nats-io/nuid v1.0.1 go.uber.org/goleak v1.2.1 golang.org/x/text v0.14.0 @@ -16,7 +16,7 @@ require ( require ( github.com/minio/highwayhash v1.0.2 // indirect github.com/nats-io/jwt/v2 v2.5.3 // indirect - golang.org/x/crypto v0.16.0 // indirect - golang.org/x/sys v0.15.0 // indirect + golang.org/x/crypto v0.18.0 // indirect + golang.org/x/sys v0.16.0 // indirect golang.org/x/time v0.5.0 // indirect ) diff --git a/vendor/github.com/nats-io/nats.go/go_test.sum b/vendor/github.com/nats-io/nats.go/go_test.sum index 38fe6ef6ff..e33016d803 100644 --- a/vendor/github.com/nats-io/nats.go/go_test.sum +++ b/vendor/github.com/nats-io/nats.go/go_test.sum @@ -16,21 +16,21 @@ github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/nats-io/jwt/v2 v2.5.3 h1:/9SWvzc6hTfamcgXJ3uYRpgj+QuY2aLNqRiqrKcrpEo= github.com/nats-io/jwt/v2 v2.5.3/go.mod h1:iysuPemFcc7p4IoYots3IuELSI4EDe9Y0bQMe+I3Bf4= -github.com/nats-io/nats-server/v2 v2.10.7 h1:f5VDy+GMu7JyuFA0Fef+6TfulfCs5nBTgq7MMkFJx5Y= -github.com/nats-io/nats-server/v2 v2.10.7/go.mod h1:V2JHOvPiPdtfDXTuEUsthUnCvSDeFrK4Xn9hRo6du7c= -github.com/nats-io/nkeys v0.4.6 h1:IzVe95ru2CT6ta874rt9saQRkWfe2nFj1NtvYSLqMzY= -github.com/nats-io/nkeys v0.4.6/go.mod h1:4DxZNzenSVd1cYQoAa8948QY3QDjrHfcfVADymtkpts= +github.com/nats-io/nats-server/v2 v2.10.9 h1:VEW43Zz+p+9lARtiPM9ctd6ckun+92ZT2T17HWtwiFI= +github.com/nats-io/nats-server/v2 v2.10.9/go.mod h1:oorGiV9j3BOLLO3ejQe+U7pfAGyPo+ppD7rpgNF6KTQ= +github.com/nats-io/nkeys v0.4.7 h1:RwNJbbIdYCoClSDNY7QVKZlyb/wfT6ugvFCiKy6vDvI= +github.com/nats-io/nkeys v0.4.7/go.mod h1:kqXRgRDPlGy7nGaEDMuYzmiJCIAAWDK0IMBtDmGD0nc= github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A= go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4= -golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= -golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc= +golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= diff --git a/vendor/github.com/nats-io/nats.go/js.go b/vendor/github.com/nats-io/nats.go/js.go index 0c06730587..462fea17ea 100644 --- a/vendor/github.com/nats-io/nats.go/js.go +++ b/vendor/github.com/nats-io/nats.go/js.go @@ -32,6 +32,11 @@ import ( ) // JetStream allows persistent messaging through JetStream. +// +// NOTE: JetStream is part of legacy API. +// Users are encouraged to switch to the new JetStream API for enhanced capabilities and +// simplified API. Please refer to the `jetstream` package. +// See: https://github.com/nats-io/nats.go/blob/main/jetstream/README.md type JetStream interface { // Publish publishes a message to JetStream. Publish(subj string, data []byte, opts ...PubOpt) (*PubAck, error) @@ -106,6 +111,11 @@ type JetStream interface { } // JetStreamContext allows JetStream messaging and stream management. +// +// NOTE: JetStreamContext is part of legacy API. +// Users are encouraged to switch to the new JetStream API for enhanced capabilities and +// simplified API. Please refer to the `jetstream` package. +// See: https://github.com/nats-io/nats.go/blob/main/jetstream/README.md type JetStreamContext interface { JetStream JetStreamManager @@ -276,6 +286,11 @@ const ( // JetStream returns a JetStreamContext for messaging and stream management. // Errors are only returned if inconsistent options are provided. +// +// NOTE: JetStreamContext is part of legacy API. +// Users are encouraged to switch to the new JetStream API for enhanced capabilities and +// simplified API. Please refer to the `jetstream` package. +// See: https://github.com/nats-io/nats.go/blob/main/jetstream/README.md func (nc *Conn) JetStream(opts ...JSOpt) (JetStreamContext, error) { js := &js{ nc: nc, diff --git a/vendor/github.com/nats-io/nats.go/jsm.go b/vendor/github.com/nats-io/nats.go/jsm.go index 8f724726b8..94fa86c325 100644 --- a/vendor/github.com/nats-io/nats.go/jsm.go +++ b/vendor/github.com/nats-io/nats.go/jsm.go @@ -70,6 +70,10 @@ type JetStreamManager interface { SecureDeleteMsg(name string, seq uint64, opts ...JSOpt) error // AddConsumer adds a consumer to a stream. + // If the consumer already exists, and the configuration is the same, it + // will return the existing consumer. + // If the consumer already exists, and the configuration is different, it + // will return ErrConsumerNameAlreadyInUse. AddConsumer(stream string, cfg *ConsumerConfig, opts ...JSOpt) (*ConsumerInfo, error) // UpdateConsumer updates an existing consumer. @@ -329,7 +333,11 @@ type consumerResponse struct { *ConsumerInfo } -// AddConsumer will add a JetStream consumer. +// AddConsumer adds a consumer to a stream. +// If the consumer already exists, and the configuration is the same, it +// will return the existing consumer. +// If the consumer already exists, and the configuration is different, it +// will return ErrConsumerNameAlreadyInUse. func (js *js) AddConsumer(stream string, cfg *ConsumerConfig, opts ...JSOpt) (*ConsumerInfo, error) { if cfg == nil { cfg = &ConsumerConfig{} diff --git a/vendor/github.com/nats-io/nats.go/nats.go b/vendor/github.com/nats-io/nats.go/nats.go index a252da2a4b..5b145c62b0 100644 --- a/vendor/github.com/nats-io/nats.go/nats.go +++ b/vendor/github.com/nats-io/nats.go/nats.go @@ -47,7 +47,7 @@ import ( // Default Constants const ( - Version = "1.32.0" + Version = "1.33.1" DefaultURL = "nats://127.0.0.1:4222" DefaultPort = 4222 DefaultMaxReconnect = 60 @@ -849,7 +849,7 @@ func InProcessServer(server InProcessConnProvider) Option { // Secure is an Option to enable TLS secure connections that skip server verification by default. // Pass a TLS Configuration for proper TLS. -// NOTE: This should NOT be used in a production setting. +// A TLS Configuration using InsecureSkipVerify should NOT be used in a production setting. func Secure(tls ...*tls.Config) Option { return func(o *Options) error { o.Secure = true diff --git a/vendor/github.com/nats-io/nats.go/object.go b/vendor/github.com/nats-io/nats.go/object.go index 92267918eb..f3f5d97ec2 100644 --- a/vendor/github.com/nats-io/nats.go/object.go +++ b/vendor/github.com/nats-io/nats.go/object.go @@ -153,6 +153,9 @@ type ObjectStoreConfig struct { // Bucket-specific metadata // NOTE: Metadata requires nats-server v2.10.0+ Metadata map[string]string `json:"metadata,omitempty"` + // Enable underlying stream compression. + // NOTE: Compression is supported for nats-server 2.10.0+ + Compression bool } type ObjectStoreStatus interface { @@ -174,6 +177,8 @@ type ObjectStoreStatus interface { BackingStore() string // Metadata is the user supplied metadata for the bucket Metadata() map[string]string + // IsCompressed indicates if the data is compressed on disk + IsCompressed() bool } // ObjectMetaOptions @@ -266,7 +271,10 @@ func (js *js) CreateObjectStore(cfg *ObjectStoreConfig) (ObjectStore, error) { if maxBytes == 0 { maxBytes = -1 } - + var compression StoreCompression + if cfg.Compression { + compression = S2Compression + } scfg := &StreamConfig{ Name: fmt.Sprintf(objNameTmpl, name), Description: cfg.Description, @@ -280,6 +288,7 @@ func (js *js) CreateObjectStore(cfg *ObjectStoreConfig) (ObjectStore, error) { AllowRollup: true, AllowDirect: true, Metadata: cfg.Metadata, + Compression: compression, } // Create our stream. @@ -384,7 +393,7 @@ func (obs *obs) Put(meta *ObjectMeta, r io.Reader, opts ...ObjectOpt) (*ObjectIn case <-time.After(obs.js.opts.wait): } if err := obs.js.purgeStream(obs.stream, &StreamPurgeRequest{Subject: chunkSubj}); err != nil { - return fmt.Errorf("could not cleanup bucket after erronous put operation: %w", err) + return fmt.Errorf("could not cleanup bucket after erroneous put operation: %w", err) } return nil } @@ -535,11 +544,12 @@ func DecodeObjectDigest(data string) ([]byte, error) { // ObjectResult impl. type objResult struct { sync.Mutex - info *ObjectInfo - r io.ReadCloser - err error - ctx context.Context - digest hash.Hash + info *ObjectInfo + r io.ReadCloser + err error + ctx context.Context + digest hash.Hash + readTimeout time.Duration } func (info *ObjectInfo) isLink() bool { @@ -623,7 +633,7 @@ func (obs *obs) Get(name string, opts ...GetObjectOpt) (ObjectResult, error) { return lobs.Get(info.ObjectMeta.Opts.Link.Name) } - result := &objResult{info: info, ctx: ctx} + result := &objResult{info: info, ctx: ctx, readTimeout: obs.js.opts.wait} if info.Size == 0 { return result, nil } @@ -1223,6 +1233,9 @@ func (s *ObjectBucketStatus) Metadata() map[string]string { return s.nfo.Config. // StreamInfo is the stream info retrieved to create the status func (s *ObjectBucketStatus) StreamInfo() *StreamInfo { return s.nfo } +// IsCompressed indicates if the data is compressed on disk +func (s *ObjectBucketStatus) IsCompressed() bool { return s.nfo.Config.Compression != NoCompression } + // Status retrieves run-time status about a bucket func (obs *obs) Status() (ObjectStoreStatus, error) { nfo, err := obs.js.StreamInfo(obs.stream) @@ -1242,7 +1255,11 @@ func (obs *obs) Status() (ObjectStoreStatus, error) { func (o *objResult) Read(p []byte) (n int, err error) { o.Lock() defer o.Unlock() + readDeadline := time.Now().Add(o.readTimeout) if ctx := o.ctx; ctx != nil { + if deadline, ok := ctx.Deadline(); ok { + readDeadline = deadline + } select { case <-ctx.Done(): if ctx.Err() == context.Canceled { @@ -1261,7 +1278,7 @@ func (o *objResult) Read(p []byte) (n int, err error) { } r := o.r.(net.Conn) - r.SetReadDeadline(time.Now().Add(2 * time.Second)) + r.SetReadDeadline(readDeadline) n, err = r.Read(p) if err, ok := err.(net.Error); ok && err.Timeout() { if ctx := o.ctx; ctx != nil { diff --git a/vendor/modules.txt b/vendor/modules.txt index 5cdac49733..9c5837990c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1413,7 +1413,7 @@ github.com/nats-io/nats-server/v2/server/certstore github.com/nats-io/nats-server/v2/server/pse github.com/nats-io/nats-server/v2/server/stree github.com/nats-io/nats-server/v2/server/sysmem -# github.com/nats-io/nats.go v1.32.0 +# github.com/nats-io/nats.go v1.33.1 ## explicit; go 1.20 github.com/nats-io/nats.go github.com/nats-io/nats.go/encoders/builtin From 50198be6ba3048f886a2e1607e1275a21a3707cc Mon Sep 17 00:00:00 2001 From: Sawjan Gurung Date: Mon, 19 Feb 2024 15:07:17 +0545 Subject: [PATCH 14/56] test(api): extend tests MOVE to space-id as destination (#8470) --- .../moveByFileId.feature | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/tests/acceptance/features/apiSpacesDavOperation/moveByFileId.feature b/tests/acceptance/features/apiSpacesDavOperation/moveByFileId.feature index 9cd8066d8a..d3862bd9d5 100644 --- a/tests/acceptance/features/apiSpacesDavOperation/moveByFileId.feature +++ b/tests/acceptance/features/apiSpacesDavOperation/moveByFileId.feature @@ -713,15 +713,17 @@ Feature: moving/renaming file using file id And user "Alice" has created a space "myspace" with the default quota using the Graph API And user "Alice" has uploaded file with content "some data" to "textfile.txt" When user "Alice" tries to move file "textfile.txt" of space "Personal" to space "" using its id in destination path "" - Then the HTTP status code should be "400" + Then the HTTP status code should be "" And for user "Alice" the space "Personal" should contain these entries: | textfile.txt | Examples: - | dav-path | space | - | /remote.php/dav/spaces | Personal | - | /dav/spaces | Personal | - | /remote.php/dav/spaces | myspace | - | /dav/spaces | myspace | + | dav-path | space | http-status-code | + | /remote.php/dav/spaces | Personal | 400 | + | /dav/spaces | Personal | 400 | + | /remote.php/dav/spaces | myspace | 400 | + | /dav/spaces | myspace | 400 | + | /remote.php/dav/spaces | Shares | 404 | + | /dav/spaces | Shares | 404 | @issue-6739 Scenario Outline: try to move project file to other spaces using its id as the destination @@ -729,15 +731,17 @@ Feature: moving/renaming file using file id And user "Alice" has created a space "myspace" with the default quota using the Graph API And user "Alice" has uploaded a file inside space "myspace" with content "some data" to "textfile.txt" When user "Alice" tries to move file "textfile.txt" of space "myspace" to space "" using its id in destination path "" - Then the HTTP status code should be "400" + Then the HTTP status code should be "" And for user "Alice" the space "myspace" should contain these entries: | textfile.txt | Examples: - | dav-path | space | - | /remote.php/dav/spaces | Personal | - | /dav/spaces | Personal | - | /remote.php/dav/spaces | myspace | - | /dav/spaces | myspace | + | dav-path | space | http-status-code | + | /remote.php/dav/spaces | Personal | 400 | + | /dav/spaces | Personal | 400 | + | /remote.php/dav/spaces | myspace | 400 | + | /dav/spaces | myspace | 400 | + | /remote.php/dav/spaces | Shares | 404 | + | /dav/spaces | Shares | 404 | @issue-6739 Scenario Outline: move a file to folder using its id as the destination (Personal space) From 71b6cbc817a6deb8e8f315bc6923e292a1b91ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 19 Feb 2024 10:27:06 +0100 Subject: [PATCH 15/56] link users in adr (#8480) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- docs/ocis/adr/0001-introduce-accounts-service.md | 2 +- docs/ocis/adr/0002-persist-accounts-using-cs3-storage.md | 2 +- docs/ocis/adr/0003-external-user-management.md | 2 +- docs/ocis/adr/0004-support-hot-migration.md | 2 +- docs/ocis/adr/0005-cs3-api-account-management.md | 2 +- docs/ocis/adr/0006-service-discovery.md | 2 +- docs/ocis/adr/0007-api-for-spaces.md | 2 +- docs/ocis/adr/0008-configuration.md | 2 +- docs/ocis/adr/0009-extension-template.md | 2 +- docs/ocis/adr/0010-policy-enforcement.md | 2 +- docs/ocis/adr/0011-global-url-format.md | 2 +- docs/ocis/adr/0012-tracing.md | 2 +- docs/ocis/adr/0013-locking.md | 2 +- docs/ocis/adr/0014-microservices-runtime.md | 2 +- docs/ocis/adr/0015-events.md | 2 +- docs/ocis/adr/0016-files-metadata.md | 2 +- docs/ocis/adr/0017-allow-read-only-external-user-management.md | 2 +- docs/ocis/adr/0018-file-search-api.md | 2 +- docs/ocis/adr/0019-file-search-index.md | 2 +- docs/ocis/adr/0020-file-search-query-language.md | 2 +- docs/ocis/adr/0021-service-accounts.md | 2 +- docs/ocis/adr/0022-sharing-and-space-management-api.md | 2 +- docs/ocis/adr/0023-index-and-store-metadata.md | 2 +- docs/ocis/adr/0024-msgpack-metadata.md | 2 +- docs/ocis/adr/0025-distributed-search-index.md | 2 +- docs/ocis/adr/0026-application-based-user-settings.md | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/docs/ocis/adr/0001-introduce-accounts-service.md b/docs/ocis/adr/0001-introduce-accounts-service.md index e9fae408da..8aca5b16c7 100644 --- a/docs/ocis/adr/0001-introduce-accounts-service.md +++ b/docs/ocis/adr/0001-introduce-accounts-service.md @@ -8,7 +8,7 @@ geekdocFilePath: 0001-introduce-accounts-service.md --- * Status: superseded by [ADR-0003]({{< ref "0003-external-user-management.md" >}}) -* Deciders: @butonic, @felixboehm, @micbar, @pmaier1 +* Deciders: [@butonic](https://github.com/butonic), [@felixboehm](https://github.com/felixboehm), [@micbar](https://github.com/micbar), [@pmaier1](https://github.com/pmaier1) * Date: [2020-06-15](https://github.com/owncloud/ocis-accounts/pull/34/commits/2fd05e2b6fe2a47c687bd0c0bc5e1b5c48a585b2) Technical Story: [persist accounts](https://github.com/owncloud/ocis-accounts/pull/34) diff --git a/docs/ocis/adr/0002-persist-accounts-using-cs3-storage.md b/docs/ocis/adr/0002-persist-accounts-using-cs3-storage.md index 7985f83d59..dfbe8b9f7b 100644 --- a/docs/ocis/adr/0002-persist-accounts-using-cs3-storage.md +++ b/docs/ocis/adr/0002-persist-accounts-using-cs3-storage.md @@ -8,7 +8,7 @@ geekdocFilePath: 0002-persist-accounts-using-cs3-storage.md --- * Status: accepted -* Deciders: @butonic, @felixboehm +* Deciders: [@butonic](https://github.com/butonic), [@felixboehm](https://github.com/felixboehm) * Date: 2020-08-21 Technical Story: [File system based indexing](https://github.com/owncloud/ocis-accounts/pull/92) diff --git a/docs/ocis/adr/0003-external-user-management.md b/docs/ocis/adr/0003-external-user-management.md index 7cdb66dda1..7d914500b0 100644 --- a/docs/ocis/adr/0003-external-user-management.md +++ b/docs/ocis/adr/0003-external-user-management.md @@ -8,7 +8,7 @@ geekdocFilePath: 0003-external-user-management.md --- * Status: superseded by [17. Allow read only external User Management]({{< ref "0017-allow-read-only-external-user-management.md" >}}) -* Deciders: @butonic, @micbar, @dragotin, @hodyroff, @pmaier1 +* Deciders: [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@hodyroff](https://github.com/hodyroff), [@pmaier1](https://github.com/pmaier1) * Date: 2022-02-08 Technical Story: [Skip account-service by talking to CS3 user-api](https://github.com/owncloud/ocis/pull/1020) diff --git a/docs/ocis/adr/0004-support-hot-migration.md b/docs/ocis/adr/0004-support-hot-migration.md index 5cf4fcf3fe..ab1f7d4d65 100644 --- a/docs/ocis/adr/0004-support-hot-migration.md +++ b/docs/ocis/adr/0004-support-hot-migration.md @@ -8,7 +8,7 @@ geekdocFilePath: 0004-support-hot-migration.md --- * Status: proposed -* Deciders: @butonic, @micbar, @dragotin, @hodyroff, @pmaier1 +* Deciders: [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@hodyroff](https://github.com/hodyroff), [@pmaier1](https://github.com/pmaier1) * Date: 2021-03-16 Technical Story: \[description | ticket/issue URL\] diff --git a/docs/ocis/adr/0005-cs3-api-account-management.md b/docs/ocis/adr/0005-cs3-api-account-management.md index b37cc3fe74..818452a85c 100644 --- a/docs/ocis/adr/0005-cs3-api-account-management.md +++ b/docs/ocis/adr/0005-cs3-api-account-management.md @@ -8,7 +8,7 @@ geekdocFilePath: 0005-cs3-api-account-management.md --- * Status: proposed -* Deciders: @refs, @butonic, @micbar, @dragotin, @pmaier1 +* Deciders: [@refs](https://github.com/refs), [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@pmaier1](https://github.com/pmaier1) * Date: 2021-04-12 Technical Story: [Write only management API for User and Group resources](https://github.com/cs3org/cs3apis/pull/119) diff --git a/docs/ocis/adr/0006-service-discovery.md b/docs/ocis/adr/0006-service-discovery.md index b3412f9b4a..61461b9b77 100644 --- a/docs/ocis/adr/0006-service-discovery.md +++ b/docs/ocis/adr/0006-service-discovery.md @@ -8,7 +8,7 @@ geekdocFilePath: 0006-service-discovery.md --- * Status: accepted -* Deciders: @refs, @butonic, @micbar, @dragotin, @pmaier1 +* Deciders: [@refs](https://github.com/refs), [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@pmaier1](https://github.com/pmaier1) * Date: 2021-04-19 Technical Story: [Introduce Named Services.](https://github.com/cs3org/reva/pull/1509) diff --git a/docs/ocis/adr/0007-api-for-spaces.md b/docs/ocis/adr/0007-api-for-spaces.md index 020499da95..9d6ffe8c47 100644 --- a/docs/ocis/adr/0007-api-for-spaces.md +++ b/docs/ocis/adr/0007-api-for-spaces.md @@ -8,7 +8,7 @@ geekdocFilePath: 0007-api-for-spaces.md --- * Status: accepted -* Deciders: @butonic, @micbar, @dragotin, @hodyroff, @pmaier1 +* Deciders: [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@hodyroff](https://github.com/hodyroff), [@pmaier1](https://github.com/pmaier1) * Date: 2021-03-19 Technical Story: API to enable the concept of [Spaces](https://github.com/owncloud/enterprise/issues/3863) diff --git a/docs/ocis/adr/0008-configuration.md b/docs/ocis/adr/0008-configuration.md index 14bb243cbf..c3dbdb17cd 100644 --- a/docs/ocis/adr/0008-configuration.md +++ b/docs/ocis/adr/0008-configuration.md @@ -8,7 +8,7 @@ geekdocFilePath: 0008-configuration.md --- * Status: proposed -* Deciders: @refs, @butonic, @micbar, @dragotin, @pmaier1 +* Deciders: [@refs](https://github.com/refs), [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@pmaier1](https://github.com/pmaier1) * Date: 2021-05-03 ## Context and Problem Statement diff --git a/docs/ocis/adr/0009-extension-template.md b/docs/ocis/adr/0009-extension-template.md index 7ac7ead3d1..bf4a02ac39 100644 --- a/docs/ocis/adr/0009-extension-template.md +++ b/docs/ocis/adr/0009-extension-template.md @@ -8,7 +8,7 @@ geekdocFilePath: 0009-extension-template.md --- * Status: proposed -* Deciders: @c0rby +* Deciders: [@c0rby](https://github.com/c0rby) * Date: 2021-06-10 Technical Story: [description | ticket/issue URL] diff --git a/docs/ocis/adr/0010-policy-enforcement.md b/docs/ocis/adr/0010-policy-enforcement.md index 31f2e0f67f..1cc24f8dec 100644 --- a/docs/ocis/adr/0010-policy-enforcement.md +++ b/docs/ocis/adr/0010-policy-enforcement.md @@ -8,7 +8,7 @@ geekdocFilePath: 0010-policy-enforcement.md --- * Status: proposed -* Deciders: @butonic, @micbar, @dragotin, @hodyroff, @pmaier1, @fschade +* Deciders: [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@hodyroff](https://github.com/hodyroff), [@pmaier1](https://github.com/pmaier1), [@fschade](https://github.com/fschade) * Date: 2021-06-30 ## Context and Problem Statement diff --git a/docs/ocis/adr/0011-global-url-format.md b/docs/ocis/adr/0011-global-url-format.md index 4d4fe1b280..d3ecf1bbee 100644 --- a/docs/ocis/adr/0011-global-url-format.md +++ b/docs/ocis/adr/0011-global-url-format.md @@ -8,7 +8,7 @@ geekdocFilePath: 0011-global-url-format.md --- * Status: accepted -* Deciders: @refs, @butonic, @micbar, @dragotin, @hodyroff, @pmaier1, @fschade, @tbsbdr, @kulmann +* Deciders: [@refs](https://github.com/refs), [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@hodyroff](https://github.com/hodyroff), [@pmaier1](https://github.com/pmaier1), [@fschade](https://github.com/fschade), [@tbsbdr](https://github.com/tbsbdr), [@kulmann](https://github.com/kulmann) * Date: 2021-07-07 ## Context and Problem Statement diff --git a/docs/ocis/adr/0012-tracing.md b/docs/ocis/adr/0012-tracing.md index 3c258badb0..e804b4853c 100644 --- a/docs/ocis/adr/0012-tracing.md +++ b/docs/ocis/adr/0012-tracing.md @@ -8,7 +8,7 @@ geekdocFilePath: 0012-tracing.md --- * Status: proposed -* Deciders: @butonic, @micbar, @dragotin, @mstingl, @pmaier1, @fschade +* Deciders: [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@mstingl](https://github.com/mstingl) [@pmaier1](https://github.com/pmaier1), [@fschade](https://github.com/fschade) * Date: 2021-08-17 ## Context and Problem Statement diff --git a/docs/ocis/adr/0013-locking.md b/docs/ocis/adr/0013-locking.md index 8da189d5dc..693e651c64 100644 --- a/docs/ocis/adr/0013-locking.md +++ b/docs/ocis/adr/0013-locking.md @@ -8,7 +8,7 @@ geekdocFilePath: 0013-locking.md --- - Status: accepted -- Deciders: @hodyroff, @pmaier1, @jojowein, @dragotin, @micbar, @tbsbdr, @wkloucek +- Deciders: [@hodyroff](https://github.com/hodyroff), [@pmaier1](https://github.com/pmaier1), [@jojowein](https://github.com/jojowein), [@dragotin](https://github.com/dragotin), [@micbar](https://github.com/micbar), [@tbsbdr](https://github.com/tbsbdr), [@wkloucek](https://github.com/wkloucek) - Date: 2021-11-03 ## Context and Problem Statement diff --git a/docs/ocis/adr/0014-microservices-runtime.md b/docs/ocis/adr/0014-microservices-runtime.md index 89f68523cf..8587089c03 100644 --- a/docs/ocis/adr/0014-microservices-runtime.md +++ b/docs/ocis/adr/0014-microservices-runtime.md @@ -8,7 +8,7 @@ geekdocFilePath: 0014-microservices-runtime.md --- * Status: proposed -* Deciders: @butonic, @micbar, @dragotin, @mstingl, @pmaier1, @fschade +* Deciders: [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@mstingl](https://github.com/mstingl) [@pmaier1](https://github.com/pmaier1), [@fschade](https://github.com/fschade) * Date: 2022-01-21 ## Context and Problem Statement diff --git a/docs/ocis/adr/0015-events.md b/docs/ocis/adr/0015-events.md index af56da7f0f..4a1f55727b 100644 --- a/docs/ocis/adr/0015-events.md +++ b/docs/ocis/adr/0015-events.md @@ -8,7 +8,7 @@ geekdocFilePath: 0015-events.md --- * Status: proposed -* Deciders: @butonic, @micbar, @dragotin, @c0rby, @wkloucek +* Deciders: [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@c0rby](https://github.com/c0rby), [@wkloucek](https://github.com/wkloucek) * Date: 2022-01-21 ## Context and Problem Statement diff --git a/docs/ocis/adr/0016-files-metadata.md b/docs/ocis/adr/0016-files-metadata.md index 78cec6f81d..abb7dabf8b 100644 --- a/docs/ocis/adr/0016-files-metadata.md +++ b/docs/ocis/adr/0016-files-metadata.md @@ -8,7 +8,7 @@ geekdocFilePath: 0016-files-metadata.md --- * Status: superseded by [ADR-0024]({{< ref "0024-msgpack-metadata.md" >}}) -* Deciders: @butonic, @dragotin, @micbar, @C0rby +* Deciders: [@butonic](https://github.com/butonic), [@dragotin](https://github.com/dragotin), [@micbar](https://github.com/micbar), [@c0rby](https://github.com/c0rby) * Date: 2022-02-04 ## Context and Problem Statement diff --git a/docs/ocis/adr/0017-allow-read-only-external-user-management.md b/docs/ocis/adr/0017-allow-read-only-external-user-management.md index 9da53c9584..cfd78e7560 100644 --- a/docs/ocis/adr/0017-allow-read-only-external-user-management.md +++ b/docs/ocis/adr/0017-allow-read-only-external-user-management.md @@ -8,7 +8,7 @@ geekdocFilePath: 0017-allow-read-only-external-user-management.md --- * Status: proposed -* Deciders: @butonic, @micbar, @rhafer +* Deciders: [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@rhafer](https://github.com/rhafer) * Date: 2022-02-08 ## Context and Problem Statement diff --git a/docs/ocis/adr/0018-file-search-api.md b/docs/ocis/adr/0018-file-search-api.md index fd99405ec1..51fc25250a 100644 --- a/docs/ocis/adr/0018-file-search-api.md +++ b/docs/ocis/adr/0018-file-search-api.md @@ -8,7 +8,7 @@ geekdocFilePath: 0018-file-search-api.md --- * Status: proposed -* Deciders: @butonic, @micbar, @dragotin, @C0rby +* Deciders: [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@c0rby](https://github.com/c0rby) * Date: 2022-03-18 ## Context and Problem Statement diff --git a/docs/ocis/adr/0019-file-search-index.md b/docs/ocis/adr/0019-file-search-index.md index d0701bff37..b80b56c5d2 100644 --- a/docs/ocis/adr/0019-file-search-index.md +++ b/docs/ocis/adr/0019-file-search-index.md @@ -8,7 +8,7 @@ geekdocFilePath: 0019-file-search-index.md --- * Status: accepted -* Deciders: @butonic, @micbar, @dragotin, @C0rby +* Deciders: [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@c0rby](https://github.com/c0rby) * Date: 2022-03-18 ## Context and Problem Statement diff --git a/docs/ocis/adr/0020-file-search-query-language.md b/docs/ocis/adr/0020-file-search-query-language.md index d5156057f7..372a9065e4 100644 --- a/docs/ocis/adr/0020-file-search-query-language.md +++ b/docs/ocis/adr/0020-file-search-query-language.md @@ -8,7 +8,7 @@ geekdocFilePath: 0020-file-search-query-language.md --- * Status: accepted -* Deciders: @butonic, @micbar, @dragotin, @C0rby, @kulmann, @felix-schwarz, @JammingBen +* Deciders: [@butonic](https://github.com/butonic), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin), [@c0rby](https://github.com/c0rby), [@kulmann](https://github.com/kulmann), [@felix-schwarz](https://github.com/felix-schwarz), [@JammingBen](https://github.com/JammingBen) * Date: 2023-06-23 ## Context and Problem Statement diff --git a/docs/ocis/adr/0021-service-accounts.md b/docs/ocis/adr/0021-service-accounts.md index dc6ed305ee..776e6a9cc5 100644 --- a/docs/ocis/adr/0021-service-accounts.md +++ b/docs/ocis/adr/0021-service-accounts.md @@ -8,7 +8,7 @@ geekdocFilePath: 0021-service-accounts.md --- * Status: proposed -* Deciders: @butonic, @C0rby +* Deciders: [@butonic](https://github.com/butonic), [@c0rby](https://github.com/c0rby) * Date: 2023-01-18 ## Context and Problem Statement diff --git a/docs/ocis/adr/0022-sharing-and-space-management-api.md b/docs/ocis/adr/0022-sharing-and-space-management-api.md index 4a6ad4f368..4256e2d879 100644 --- a/docs/ocis/adr/0022-sharing-and-space-management-api.md +++ b/docs/ocis/adr/0022-sharing-and-space-management-api.md @@ -8,7 +8,7 @@ geekdocFilePath: 0022-sharing-and-space-management-api.md --- * Status: accepted -* Deciders: @jammingben @butonic @theonering @kobergj @micbar +* Deciders: [@JammingBen](https://github.com/JammingBen) [@butonic](https://github.com/butonic) [@theonering](https://github.com/theonering) [@kobergj](https://github.com/kobergj) [@micbar](https://github.com/micbar) * Date: 2023-08-08 Technical Story: [Public issue](https://github.com/owncloud/ocis/issues/6993) diff --git a/docs/ocis/adr/0023-index-and-store-metadata.md b/docs/ocis/adr/0023-index-and-store-metadata.md index 3dc7da9246..e040487911 100644 --- a/docs/ocis/adr/0023-index-and-store-metadata.md +++ b/docs/ocis/adr/0023-index-and-store-metadata.md @@ -9,7 +9,7 @@ geekdocFilePath: 0023-index-and-store-metadata.md * Status: accepted -* Deciders: @butonic, @dschmidt, @micbar, @dragotin +* Deciders: [@butonic](https://github.com/butonic), [@theonering](https://github.com/dschmidt), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin) * Date: 2023-10-17 ## Context and Problem Statement diff --git a/docs/ocis/adr/0024-msgpack-metadata.md b/docs/ocis/adr/0024-msgpack-metadata.md index 9e6c04eb5c..fb046dc687 100644 --- a/docs/ocis/adr/0024-msgpack-metadata.md +++ b/docs/ocis/adr/0024-msgpack-metadata.md @@ -9,7 +9,7 @@ geekdocFilePath: 0024-msgpack-metadata.md * Status: accepted -* Deciders: @butonic, @aduffeck, @micbar, @dragotin +* Deciders: [@butonic](https://github.com/butonic), [@aduffeck](https://github.com/aduffeck), [@micbar](https://github.com/micbar), [@dragotin](https://github.com/dragotin) * Date: [2023-03-15](https://github.com/cs3org/reva/pull/3711/commits/204253eee9dbb8e7fa93a01f3f94a2d28ce40a06) ## Context and Problem Statement diff --git a/docs/ocis/adr/0025-distributed-search-index.md b/docs/ocis/adr/0025-distributed-search-index.md index 672b7d98d6..5f257dbdc0 100644 --- a/docs/ocis/adr/0025-distributed-search-index.md +++ b/docs/ocis/adr/0025-distributed-search-index.md @@ -8,7 +8,7 @@ geekdocFilePath: 0025-distributed-search-index.md --- * Status: draft -* Deciders: @butonic, @fschade, @aduffeck +* Deciders: [@butonic](https://github.com/butonic), [@fschade](https://github.com/fschade), [@aduffeck](https://github.com/aduffeck) * Date: 2024-02-09 ## Context and Problem Statement diff --git a/docs/ocis/adr/0026-application-based-user-settings.md b/docs/ocis/adr/0026-application-based-user-settings.md index 8ada2bdf75..1ed488f4c1 100644 --- a/docs/ocis/adr/0026-application-based-user-settings.md +++ b/docs/ocis/adr/0026-application-based-user-settings.md @@ -8,7 +8,7 @@ geekdocFilePath: 0026-application-based-user-settings.md --- * Status: draft -* Deciders: @butonic, @fschade, @kulmann +* Deciders: [@butonic](https://github.com/butonic), [@fschade](https://github.com/fschade), [@kulmann](https://github.com/kulmann) * Date: 2024-02-09 ## Context and Problem Statement From 0df64c26cd0014942f92a52c96087de1fb24cf71 Mon Sep 17 00:00:00 2001 From: Sawjan Gurung Date: Mon, 19 Feb 2024 15:46:34 +0545 Subject: [PATCH 16/56] [tests-only] fix MOVE with another user dav path scenarios (#8460) * test(api): fix MOVE with another user dav path scenarios * test(api): fix php code style * test(api): fix dav paths * test(api): fix dav paths --- tests/TestHelpers/WebDavHelper.php | 8 ++++---- .../expected-failures-API-on-OCIS-storage.md | 9 --------- .../acceptance/features/bootstrap/AuthContext.php | 9 ++++++++- .../features/bootstrap/SpacesContext.php | 2 +- tests/acceptance/features/bootstrap/WebDav.php | 6 +++--- .../features/coreApiAuth/webDavCOPYAuth.feature | 14 ++++++++------ .../features/coreApiAuth/webDavDELETEAuth.feature | 4 ++-- .../features/coreApiAuth/webDavMOVEAuth.feature | 14 ++++++++------ 8 files changed, 34 insertions(+), 32 deletions(-) diff --git a/tests/TestHelpers/WebDavHelper.php b/tests/TestHelpers/WebDavHelper.php index 728416f893..b7bf86af2f 100644 --- a/tests/TestHelpers/WebDavHelper.php +++ b/tests/TestHelpers/WebDavHelper.php @@ -661,7 +661,7 @@ class WebDavHelper { $urlParameter = \http_build_query($urlParameter, '', '&'); $path .= '?' . $urlParameter; } - $fullUrl = self::sanitizeUrl($baseUrl . $davPath . $path); + $fullUrl = self::sanitizeUrl($baseUrl . "/$davPath" . $path); if ($authType === 'bearer') { $headers['Authorization'] = 'Bearer ' . $password; @@ -750,12 +750,12 @@ class WebDavHelper { // return spaces root path if spaceid is null // REPORT request uses spaces root path if ($spaceId === null) { - return "/remote.php/dav/spaces/"; + return "remote.php/dav/spaces/"; } if ($type === "trash-bin") { - return "/remote.php/dav/spaces/trash-bin/" . $spaceId . '/'; + return "remote.php/dav/spaces/trash-bin/" . $spaceId . '/'; } - return "/remote.php/dav/spaces/" . $spaceId . '/'; + return "remote.php/dav/spaces/" . $spaceId . '/'; } else { if ($davPathVersionToUse === self::DAV_VERSION_OLD) { if ($type === "trash-bin") { diff --git a/tests/acceptance/expected-failures-API-on-OCIS-storage.md b/tests/acceptance/expected-failures-API-on-OCIS-storage.md index 9f10eec887..dd6ee05db1 100644 --- a/tests/acceptance/expected-failures-API-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-API-on-OCIS-storage.md @@ -227,15 +227,6 @@ _ocdav: api compatibility, return correct status code_ - [coreApiAuth/webDavLOCKAuth.feature:46](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavLOCKAuth.feature#L46) - [coreApiAuth/webDavLOCKAuth.feature:58](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavLOCKAuth.feature#L58) -#### [send (MOVE,COPY) requests to another user's webDav endpoints as normal user gives 400 instead of 403](https://github.com/owncloud/ocis/issues/3882) - -_ocdav: api compatibility, return correct status code_ - -- [coreApiAuth/webDavMOVEAuth.feature:45](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavMOVEAuth.feature#L45) -- [coreApiAuth/webDavMOVEAuth.feature:54](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavMOVEAuth.feature#L54) -- [coreApiAuth/webDavCOPYAuth.feature:45](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavCOPYAuth.feature#L45) -- [coreApiAuth/webDavCOPYAuth.feature:54](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavCOPYAuth.feature#L54) - #### [send POST requests to another user's webDav endpoints as normal user](https://github.com/owncloud/ocis/issues/1287) _ocdav: api compatibility, return correct status code_ diff --git a/tests/acceptance/features/bootstrap/AuthContext.php b/tests/acceptance/features/bootstrap/AuthContext.php index bf414895ea..6a85dbcb00 100644 --- a/tests/acceptance/features/bootstrap/AuthContext.php +++ b/tests/acceptance/features/bootstrap/AuthContext.php @@ -25,6 +25,7 @@ use Behat\Gherkin\Node\TableNode; use Behat\Behat\Context\Context; use TestHelpers\SetupHelper; use \Psr\Http\Message\ResponseInterface; +use TestHelpers\WebDavHelper; /** * Authentication functions @@ -592,7 +593,13 @@ class AuthContext implements Context { public function userRequestsTheseEndpointsAboutUser(string $user, string $method, string $ofUser, TableNode $table):void { $headers = []; if ($method === 'MOVE' || $method === 'COPY') { - $headers['Destination'] = '/path/to/destination'; + $baseUrl = $this->featureContext->getBaseUrl(); + $suffix = ""; + if ($this->featureContext->getDavPathVersion() === WebDavHelper::DAV_VERSION_SPACES) { + $suffix = $this->featureContext->spacesContext->getSpaceIdByName($user, "Personal") . "/"; + } + $davPath = WebDavHelper::getDavPath($user, $this->featureContext->getDavPathVersion()); + $headers['Destination'] = "{$baseUrl}/{$davPath}{$suffix}moved"; } foreach ($table->getHash() as $row) { diff --git a/tests/acceptance/features/bootstrap/SpacesContext.php b/tests/acceptance/features/bootstrap/SpacesContext.php index 595b23adf8..5e61a12b0d 100644 --- a/tests/acceptance/features/bootstrap/SpacesContext.php +++ b/tests/acceptance/features/bootstrap/SpacesContext.php @@ -2048,7 +2048,7 @@ class SpacesContext implements Context { if ($toSpaceName === 'Shares') { $sharesPath = $this->featureContext->getSharesMountPath($user, $fileDestination); $davPath = WebDavHelper::getDavPath($user, $this->featureContext->getDavPathVersion()); - $headers['Destination'] = $baseUrl . $davPath . $sharesPath; + $headers['Destination'] = $baseUrl . "/$davPath" . $sharesPath; } else { $headers['Destination'] = $this->destinationHeaderValueWithSpaceName($user, $fileDestination, $toSpaceName, $url); } diff --git a/tests/acceptance/features/bootstrap/WebDav.php b/tests/acceptance/features/bootstrap/WebDav.php index 47a0f00be1..3bb34b0e00 100644 --- a/tests/acceptance/features/bootstrap/WebDav.php +++ b/tests/acceptance/features/bootstrap/WebDav.php @@ -5000,7 +5000,7 @@ trait WebDav { $sharesPath = $this->getSharesMountPath($user, $path) . '/?' . $urlParameter; $davPath = WebDavHelper::getDavPath($user, $this->getDavPathVersion()); - $fullUrl = $this->getBaseUrl() . $davPath . $sharesPath; + $fullUrl = $this->getBaseUrl() . "/$davPath" . $sharesPath; return HttpRequestHelper::sendRequest( $fullUrl, @@ -5027,7 +5027,7 @@ trait WebDav { $sharesPath = $this->getSharesMountPath($user, $destination); $davPath = WebDavHelper::getDavPath($user, $this->getDavPathVersion()); - $fullUrl = $this->getBaseUrl() . $davPath . $sharesPath; + $fullUrl = $this->getBaseUrl() . "/$davPath" . $sharesPath; return HttpRequestHelper::sendRequest( $fullUrl, @@ -5766,7 +5766,7 @@ trait WebDav { if ($entryNameToSearch !== null) { $entryNameToSearch = \trim($entryNameToSearch, "/"); } - $spacesBaseUrl = webDavHelper::getDavPath(null, webDavHelper::DAV_VERSION_SPACES); + $spacesBaseUrl = "/" . webDavHelper::getDavPath(null, webDavHelper::DAV_VERSION_SPACES); $searchResults = $this->getResponseXml()->xpath("//d:multistatus/d:response"); $results = []; foreach ($searchResults as $item) { diff --git a/tests/acceptance/features/coreApiAuth/webDavCOPYAuth.feature b/tests/acceptance/features/coreApiAuth/webDavCOPYAuth.feature index 61051b484a..ef611fbb1f 100644 --- a/tests/acceptance/features/coreApiAuth/webDavCOPYAuth.feature +++ b/tests/acceptance/features/coreApiAuth/webDavCOPYAuth.feature @@ -12,6 +12,7 @@ Feature: COPY file/folder And user "Alice" has created folder "/PARENT" And user "Alice" has created folder "/FOLDER" And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt" + And using new DAV path @smokeTest Scenario: send COPY requests to webDav endpoints as normal user with wrong password @@ -41,23 +42,24 @@ Feature: COPY file/folder | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "401" - + @issue-3882 Scenario: send COPY requests to another user's webDav endpoints as normal user When user "Brian" requests these endpoints with "COPY" about user "Alice" | endpoint | | /remote.php/dav/files/%username%/textfile0.txt | | /remote.php/dav/files/%username%/PARENT | | /remote.php/dav/files/%username%/PARENT/parent.txt | - Then the HTTP status code of responses on all endpoints should be "403" + Then the HTTP status code of responses on all endpoints should be "404" - @skipOnRevaMaster + @skipOnRevaMaster @issue-3882 Scenario: send COPY requests to another user's webDav endpoints as normal user using the spaces WebDAV API + Given using spaces DAV path When user "Brian" requests these endpoints with "COPY" about user "Alice" | endpoint | | /remote.php/dav/spaces/%spaceid%/textfile0.txt | | /remote.php/dav/spaces/%spaceid%/PARENT | | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | - Then the HTTP status code of responses on all endpoints should be "403" + Then the HTTP status code of responses on all endpoints should be "404" Scenario: send COPY requests to webDav endpoints using invalid username but correct password @@ -101,7 +103,7 @@ Feature: COPY file/folder | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "401" - + @issue-4332 @issue-3882 Scenario: send COPY requests to webDav endpoints with body as normal user When user "Alice" requests these endpoints with "COPY" including body "doesnotmatter" about user "Alice" | endpoint | @@ -113,7 +115,7 @@ Feature: COPY file/folder | /remote.php/dav/files/%username%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "415" - @skipOnRevaMaster + @skipOnRevaMaster @issue-4332 @issue-3882 Scenario: send COPY requests to webDav endpoints with body as normal user using the spaces WebDAV API When user "Alice" requests these endpoints with "COPY" including body "doesnotmatter" about user "Alice" | endpoint | diff --git a/tests/acceptance/features/coreApiAuth/webDavDELETEAuth.feature b/tests/acceptance/features/coreApiAuth/webDavDELETEAuth.feature index 43e04058e6..ae320d2a4d 100644 --- a/tests/acceptance/features/coreApiAuth/webDavDELETEAuth.feature +++ b/tests/acceptance/features/coreApiAuth/webDavDELETEAuth.feature @@ -104,7 +104,7 @@ Feature: delete file/folder | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "401" - + @issue-4332 Scenario: send DELETE requests to webDav endpoints with body as normal user When user "Alice" requests these endpoints with "DELETE" including body "doesnotmatter" about user "Alice" | endpoint | @@ -115,7 +115,7 @@ Feature: delete file/folder | /remote.php/dav/files/%username%/FOLDER | Then the HTTP status code of responses on all endpoints should be "415" - @skipOnRevaMaster + @skipOnRevaMaster @issue-4332 Scenario: send DELETE requests to webDav endpoints with body as normal user using the spaces WebDAV API When user "Alice" requests these endpoints with "DELETE" including body "doesnotmatter" about user "Alice" | endpoint | diff --git a/tests/acceptance/features/coreApiAuth/webDavMOVEAuth.feature b/tests/acceptance/features/coreApiAuth/webDavMOVEAuth.feature index 6f980e6243..d8839985c8 100644 --- a/tests/acceptance/features/coreApiAuth/webDavMOVEAuth.feature +++ b/tests/acceptance/features/coreApiAuth/webDavMOVEAuth.feature @@ -12,6 +12,7 @@ Feature: MOVE file/folder And user "Alice" has created folder "/PARENT" And user "Alice" has created folder "/FOLDER" And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt" + And using new DAV path @smokeTest Scenario: send MOVE requests to webDav endpoints as normal user with wrong password @@ -41,23 +42,24 @@ Feature: MOVE file/folder | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "401" - + @issue-3882 Scenario: send MOVE requests to another user's webDav endpoints as normal user When user "Brian" requests these endpoints with "MOVE" about user "Alice" | endpoint | | /remote.php/dav/files/%username%/textfile0.txt | | /remote.php/dav/files/%username%/PARENT | | /remote.php/dav/files/%username%/PARENT/parent.txt | - Then the HTTP status code of responses on all endpoints should be "403" + Then the HTTP status code of responses on all endpoints should be "404" - @skipOnRevaMaster + @skipOnRevaMaster @issue-3882 Scenario: send MOVE requests to another user's webDav endpoints as normal user using the spaces WebDAV API + Given using spaces DAV path When user "Brian" requests these endpoints with "MOVE" about user "Alice" | endpoint | | /remote.php/dav/spaces/%spaceid%/textfile0.txt | | /remote.php/dav/spaces/%spaceid%/PARENT | | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | - Then the HTTP status code of responses on all endpoints should be "403" + Then the HTTP status code of responses on all endpoints should be "404" Scenario: send MOVE requests to webDav endpoints using invalid username but correct password @@ -101,7 +103,7 @@ Feature: MOVE file/folder | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "401" - + @issue-4332 @issue-3882 Scenario: send MOVE requests to webDav endpoints with body as normal user When user "Alice" requests these endpoints with "MOVE" including body "doesnotmatter" about user "Alice" | endpoint | @@ -113,7 +115,7 @@ Feature: MOVE file/folder | /remote.php/dav/files/%username%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "415" - @skipOnRevaMaster + @skipOnRevaMaster @issue-4332 @issue-3882 Scenario: send MOVE requests to webDav endpoints with body as normal user using the spaces WebDAV API When user "Alice" requests these endpoints with "MOVE" including body "doesnotmatter" about user "Alice" | endpoint | From 7db5f15625f4540caeed3bb7a56b1778c0f74602 Mon Sep 17 00:00:00 2001 From: Sawjan Gurung Date: Mon, 19 Feb 2024 16:47:19 +0545 Subject: [PATCH 17/56] test(api): add test to try to download public link using basic auth (#8485) --- .../bootstrap/PublicWebDavContext.php | 45 +++++++++++++++++++ .../accessToPublicLinkShare.feature | 11 +++++ 2 files changed, 56 insertions(+) diff --git a/tests/acceptance/features/bootstrap/PublicWebDavContext.php b/tests/acceptance/features/bootstrap/PublicWebDavContext.php index 38e9910666..1c4bd50fe4 100644 --- a/tests/acceptance/features/bootstrap/PublicWebDavContext.php +++ b/tests/acceptance/features/bootstrap/PublicWebDavContext.php @@ -115,6 +115,19 @@ class PublicWebDavContext implements Context { $this->featureContext->setResponse($response); } + /** + * @When /^user "([^"]*)" tries to download file "([^"]*)" from the last public link using own basic auth and new public WebDAV API$/ + * + * @param string $user + * @param string $path + * + * @return void + */ + public function userTriesToDownloadFileFromPublicLinkUsingBasicAuthAndPublicWebdav(string $user, string $path): void { + $response = $this->downloadFromPublicLinkAsUser($path, $user); + $this->featureContext->setResponse($response); + } + /** * @When /^the public deletes (?:file|folder|entry) "([^"]*)" from the last public link share using the (old|new) public WebDAV API$/ * @@ -283,6 +296,38 @@ class PublicWebDavContext implements Context { $this->featureContext->setResponse($response); } + /** + * @param string $path + * @param string $user + * @param bool $shareNg + * + * @return ResponseInterface + */ + public function downloadFromPublicLinkAsUser(string $path, string $user, bool $shareNg = false): ResponseInterface { + $path = \ltrim($path, "/"); + if ($shareNg) { + $token = $this->featureContext->shareNgGetLastCreatedLinkShareToken(); + } else { + $token = $this->featureContext->getLastCreatedPublicShareToken(); + } + + $davPath = WebDavHelper::getDavPath( + $token, + 0, + "public-files-new" + ); + + $username = $this->featureContext->getActualUsername($user); + $password = $this->featureContext->getPasswordForUser($user); + $fullUrl = $this->featureContext->getBaseUrl() . "/$davPath$path"; + + return HttpRequestHelper::get( + $fullUrl, + $this->featureContext->getStepLineRef(), + $username, + $password + ); + } /** * @param string $path * @param string $password diff --git a/tests/acceptance/features/coreApiSharePublicLink1/accessToPublicLinkShare.feature b/tests/acceptance/features/coreApiSharePublicLink1/accessToPublicLinkShare.feature index 3e08f07ce5..7c18cbaa60 100644 --- a/tests/acceptance/features/coreApiSharePublicLink1/accessToPublicLinkShare.feature +++ b/tests/acceptance/features/coreApiSharePublicLink1/accessToPublicLinkShare.feature @@ -57,3 +57,14 @@ Feature: accessing a public link share | testavatar.jpg | | textfile0.txt | Then the HTTP status code of responses on all endpoints should be "200" + + @issue-web-10473 + Scenario: user tries to download public link file using own basic auth + And user "Alice" has created folder "FOLDER" + And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "FOLDER/textfile.txt" + And user "Alice" has created a public link share with settings + | path | FOLDER | + | permissions | change | + | password | %public% | + When user "Alice" tries to download file "textfile.txt" from the last public link using own basic auth and new public WebDAV API + Then the HTTP status code should be "401" From bc48fbdf81e77c411b3b5cc2279fd8c4f6885a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 19 Feb 2024 12:49:08 +0100 Subject: [PATCH 18/56] Deprecate sharing cs3 backends (#8478) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- changelog/unreleased/deprecate-sharing-cs3-backends.md | 5 +++++ ocis/pkg/command/migrate.go | 4 ++-- services/sharing/pkg/config/config.go | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 changelog/unreleased/deprecate-sharing-cs3-backends.md diff --git a/changelog/unreleased/deprecate-sharing-cs3-backends.md b/changelog/unreleased/deprecate-sharing-cs3-backends.md new file mode 100644 index 0000000000..d9e3e63c35 --- /dev/null +++ b/changelog/unreleased/deprecate-sharing-cs3-backends.md @@ -0,0 +1,5 @@ +Change: Deprecate sharing cs3 backends + +The `cs3` user and public sharing drivers have already been replaced by `jsoncs3`. We now mark them as deprecated in preparation to kill a lot of unused code in reva. + +https://github.com/owncloud/ocis/pull/8478 diff --git a/ocis/pkg/command/migrate.go b/ocis/pkg/command/migrate.go index 7c16f207c3..319cc83500 100644 --- a/ocis/pkg/command/migrate.go +++ b/ocis/pkg/command/migrate.go @@ -308,7 +308,7 @@ func MigrateShares(cfg *config.Config) *cli.Command { }, &cli.StringFlag{ Name: "to", - Value: "cs3", + Value: "jsoncs3", Usage: "Share manager to import the data into", }, }, @@ -403,7 +403,7 @@ func MigratePublicShares(cfg *config.Config) *cli.Command { }, &cli.StringFlag{ Name: "to", - Value: "cs3", + Value: "jsoncs3", Usage: "Public share manager to import the data into", }, }, diff --git a/services/sharing/pkg/config/config.go b/services/sharing/pkg/config/config.go index f7fc47b6d7..f537400349 100644 --- a/services/sharing/pkg/config/config.go +++ b/services/sharing/pkg/config/config.go @@ -21,9 +21,9 @@ type Config struct { SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"SHARING_SKIP_USER_GROUPS_IN_TOKEN" desc:"Disables the loading of user's group memberships from the reva access token."` - UserSharingDriver string `yaml:"user_sharing_driver" env:"SHARING_USER_DRIVER" desc:"Driver to be used to persist shares. Supported values are 'jsoncs3', 'json', 'cs3' and 'owncloudsql'."` + UserSharingDriver string `yaml:"user_sharing_driver" env:"SHARING_USER_DRIVER" desc:"Driver to be used to persist shares. Supported values are 'jsoncs3', 'json', 'cs3' (deprecated) and 'owncloudsql'."` UserSharingDrivers UserSharingDrivers `yaml:"user_sharing_drivers"` - PublicSharingDriver string `yaml:"public_sharing_driver" env:"SHARING_PUBLIC_DRIVER" desc:"Driver to be used to persist public shares. Supported values are 'jsoncs3', 'json' and 'cs3'."` + PublicSharingDriver string `yaml:"public_sharing_driver" env:"SHARING_PUBLIC_DRIVER" desc:"Driver to be used to persist public shares. Supported values are 'jsoncs3', 'json' and 'cs3' (deprecated)."` PublicSharingDrivers PublicSharingDrivers `yaml:"public_sharing_drivers"` WriteableShareMustHavePassword bool `yaml:"public_sharing_writeableshare_must_have_password" env:"OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD;SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD" desc:"Set this to true if you want to enforce passwords on Uploader, Editor or Contributor shares. If not using the global OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD, you must define the FRONTEND_OCS_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD in the frontend service."` PublicShareMustHavePassword bool `yaml:"public_sharing_share_must_have_password" env:"OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD;SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD" desc:"Set this to true if you want to enforce passwords on all public shares."` From 54ad3b9a1488cfb9567b6974d43feed390b4e048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 19 Feb 2024 11:49:45 +0000 Subject: [PATCH 19/56] Automated changelog update [skip ci] --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04f2e3b53a..d2cc4c36a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ The following sections list the changes for unreleased. * Bugfix - Fix extended env parser: [#8409](https://github.com/owncloud/ocis/pull/8409) * Bugfix - Graph/drives/permission Expiration date update: [#8413](https://github.com/owncloud/ocis/pull/8413) * Bugfix - Fix search error message: [#8444](https://github.com/owncloud/ocis/pull/8444) +* Change - Deprecate sharing cs3 backends: [#8478](https://github.com/owncloud/ocis/pull/8478) * Enhancement - Improve ocis single binary start: [#8320](https://github.com/owncloud/ocis/pull/8320) * Enhancement - Use environment variables in yaml config files: [#8339](https://github.com/owncloud/ocis/pull/8339) * Enhancement - Bump reva: [#8340](https://github.com/owncloud/ocis/pull/8340) @@ -104,6 +105,14 @@ The following sections list the changes for unreleased. https://github.com/owncloud/ocis/issues/8442 https://github.com/owncloud/ocis/pull/8444 +* Change - Deprecate sharing cs3 backends: [#8478](https://github.com/owncloud/ocis/pull/8478) + + The `cs3` user and public sharing drivers have already been replaced by + `jsoncs3`. We now mark them as deprecated in preparation to kill a lot of unused + code in reva. + + https://github.com/owncloud/ocis/pull/8478 + * Enhancement - Improve ocis single binary start: [#8320](https://github.com/owncloud/ocis/pull/8320) Removes waiting times when starting the single binary. Improves ocis single From d5bb0bf27663f1710c6f6f416f595de295d2ac9d Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 19 Feb 2024 18:15:54 +0545 Subject: [PATCH 20/56] chore: fix format of env-var-deltas --- docs/services/general-info/env-var-deltas/4.0.0-5.0.0-added.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/services/general-info/env-var-deltas/4.0.0-5.0.0-added.md b/docs/services/general-info/env-var-deltas/4.0.0-5.0.0-added.md index 9303ac2a64..06a6f81e4b 100644 --- a/docs/services/general-info/env-var-deltas/4.0.0-5.0.0-added.md +++ b/docs/services/general-info/env-var-deltas/4.0.0-5.0.0-added.md @@ -219,7 +219,7 @@ | | `OCIS_EVENTS_AUTH_PASSWORD;USERLOG_EVENTS_AUTH_PASSWORD` | The password to authenticate with the events broker. The events broker is the ocis service which receives and delivers events between the services. | | | | `OCIS_SERVICE_ACCOUNT_ID;USERLOG_SERVICE_ACCOUNT_ID` | The ID of the service account the service should use. See the 'auth-service' service description for more details. | | | | `OCIS_SERVICE_ACCOUNT_SECRET;USERLOG_SERVICE_ACCOUNT_SECRET` | The service account secret. | | -| services/web/pkg/config/options.go | `WEB_OPTION_LOGIN_URL`Specifies the target URL to the login page. This is helpful when an external IdP is used. This option is disabled by default. Example URL like: https://www.myidp.com/login. | | | +| services/web/pkg/config/options.go | `WEB_OPTION_LOGIN_URL` | Specifies the target URL to the login page. This is helpful when an external IdP is used. This option is disabled by default. Example URL like: https://www.myidp.com/login. | | | | | `WEB_OPTION_DISABLED_EXTENSIONS` | A list to disable specific Web extensions identified by their ID. The ID can e.g. be taken from the 'index.ts' file of the web extension. Example: 'com.github.owncloud.web.files.search,com.github.owncloud.web.files.print'. See the Environment Variable Types description for more details. | | | | `WEB_OPTION_USER_LIST_REQUIRES_FILTER` | Defines whether one or more filters must be set in order to list users in the Web admin settings. Set this option to 'true' if running in an environment with a lot of users and listing all users could slow down performance. Defaults to 'false'. | false | | | `WEB_OPTION_EMBED_ENABLED` | Defines whether Web should be running in 'embed' mode. Setting this to 'true' will enable a stripped down version of Web with reduced functionality used to integrate Web into other applications like via iFrame. Setting it to 'false' or not setting it (default) will run Web as usual with all functionality enabled. See the text description for more details. | | From b3287e8e1b218489220dabee442fc4335eb47718 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Mon, 19 Feb 2024 16:15:35 +0100 Subject: [PATCH 21/56] chore: upgrade deployments --- .../continuous-deployment-config/ocis_keycloak/latest.yml | 6 +++--- .../ocis_keycloak/released.yml | 8 ++++---- .../continuous-deployment-config/ocis_ldap/latest.yml | 6 +++--- .../continuous-deployment-config/ocis_ldap/released.yml | 8 ++++---- .../continuous-deployment-config/ocis_s3/latest.yml | 6 +++--- .../continuous-deployment-config/ocis_traefik/daily.yml | 6 +++--- .../continuous-deployment-config/ocis_traefik/latest.yml | 6 +++--- .../ocis_traefik/released.yml | 8 ++++---- .../continuous-deployment-config/ocis_wopi/daily.yml | 6 +++--- .../continuous-deployment-config/ocis_wopi/latest.yml | 6 +++--- .../continuous-deployment-config/ocis_wopi/released.yml | 8 ++++---- 11 files changed, 37 insertions(+), 37 deletions(-) diff --git a/deployments/continuous-deployment-config/ocis_keycloak/latest.yml b/deployments/continuous-deployment-config/ocis_keycloak/latest.yml index 7f2e605dc4..3f153ed9cb 100644 --- a/deployments/continuous-deployment-config/ocis_keycloak/latest.yml +++ b/deployments/continuous-deployment-config/ocis_keycloak/latest.yml @@ -2,12 +2,12 @@ - name: continuous-deployment-ocis-keycloak-latest server: server_type: cx21 - image: ubuntu-20.04 + image: ubuntu-22.04 location: nbg1 initial_ssh_key_names: - owncloud-ocis@drone.owncloud.com labels: - owner: wkloucek + owner: ocis-team for: oCIS-continuous-deployment-examples rebuild: $REBUILD rebuild_carry_paths: @@ -31,7 +31,7 @@ docker_compose_path: deployments/examples/ocis_keycloak env: INSECURE: "false" - TRAEFIK_ACME_MAIL: wkloucek@owncloud.com + TRAEFIK_ACME_MAIL: mbarz@owncloud.com OCIS_DOCKER_TAG: latest OCIS_DOMAIN: ocis.ocis-keycloak.latest.owncloud.works KEYCLOAK_DOMAIN: keycloak.ocis-keycloak.latest.owncloud.works diff --git a/deployments/continuous-deployment-config/ocis_keycloak/released.yml b/deployments/continuous-deployment-config/ocis_keycloak/released.yml index 7b47456729..1f8705a07f 100644 --- a/deployments/continuous-deployment-config/ocis_keycloak/released.yml +++ b/deployments/continuous-deployment-config/ocis_keycloak/released.yml @@ -2,12 +2,12 @@ - name: continuous-deployment-ocis-keycloak-released server: server_type: cx21 - image: ubuntu-20.04 + image: ubuntu-22.04 location: nbg1 initial_ssh_key_names: - owncloud-ocis@drone.owncloud.com labels: - owner: wkloucek + owner: ocis-team for: oCIS-continuous-deployment-examples rebuild: $REBUILD rebuild_carry_paths: @@ -31,8 +31,8 @@ docker_compose_path: deployments/examples/ocis_keycloak env: INSECURE: "false" - TRAEFIK_ACME_MAIL: wkloucek@owncloud.com - OCIS_DOCKER_TAG: 4.0.0 + TRAEFIK_ACME_MAIL: mbarz@owncloud.com + OCIS_DOCKER_TAG: 4.0.6 OCIS_DOMAIN: ocis.ocis-keycloak.released.owncloud.works KEYCLOAK_DOMAIN: keycloak.ocis-keycloak.released.owncloud.works COMPOSE_FILE: docker-compose.yml:monitoring_tracing/docker-compose-additions.yml diff --git a/deployments/continuous-deployment-config/ocis_ldap/latest.yml b/deployments/continuous-deployment-config/ocis_ldap/latest.yml index 38df065132..a103621bc2 100644 --- a/deployments/continuous-deployment-config/ocis_ldap/latest.yml +++ b/deployments/continuous-deployment-config/ocis_ldap/latest.yml @@ -2,12 +2,12 @@ - name: continuous-deployment-ocis-ldap-latest server: server_type: cx21 - image: ubuntu-20.04 + image: ubuntu-22.04 location: nbg1 initial_ssh_key_names: - owncloud-ocis@drone.owncloud.com labels: - owner: wkloucek + owner: ocis-team for: oCIS-continuous-deployment-examples rebuild: $REBUILD rebuild_carry_paths: @@ -31,7 +31,7 @@ docker_compose_path: deployments/examples/ocis_ldap env: INSECURE: "false" - TRAEFIK_ACME_MAIL: wkloucek@owncloud.com + TRAEFIK_ACME_MAIL: mbarz@owncloud.com OCIS_DOCKER_TAG: latest OCIS_DOMAIN: ocis.ocis-ldap.latest.owncloud.works LDAP_MANAGER_DOMAIN: ldap.ocis-ldap.latest.owncloud.works diff --git a/deployments/continuous-deployment-config/ocis_ldap/released.yml b/deployments/continuous-deployment-config/ocis_ldap/released.yml index abba2b35f3..00a4a95064 100644 --- a/deployments/continuous-deployment-config/ocis_ldap/released.yml +++ b/deployments/continuous-deployment-config/ocis_ldap/released.yml @@ -2,12 +2,12 @@ - name: continuous-deployment-ocis-ldap-released server: server_type: cx21 - image: ubuntu-20.04 + image: ubuntu-22.04 location: nbg1 initial_ssh_key_names: - owncloud-ocis@drone.owncloud.com labels: - owner: wkloucek + owner: ocis-team for: oCIS-continuous-deployment-examples rebuild: $REBUILD rebuild_carry_paths: @@ -31,8 +31,8 @@ docker_compose_path: deployments/examples/ocis_ldap env: INSECURE: "false" - TRAEFIK_ACME_MAIL: wkloucek@owncloud.com - OCIS_DOCKER_TAG: 4.0.0 + TRAEFIK_ACME_MAIL: mbarz@owncloud.com + OCIS_DOCKER_TAG: 4.0.6 OCIS_DOMAIN: ocis.ocis-ldap.released.owncloud.works LDAP_MANAGER_DOMAIN: ldap.ocis-ldap.released.owncloud.works COMPOSE_FILE: docker-compose.yml:monitoring_tracing/docker-compose-additions.yml diff --git a/deployments/continuous-deployment-config/ocis_s3/latest.yml b/deployments/continuous-deployment-config/ocis_s3/latest.yml index a6a37bf714..629ab936cc 100644 --- a/deployments/continuous-deployment-config/ocis_s3/latest.yml +++ b/deployments/continuous-deployment-config/ocis_s3/latest.yml @@ -2,12 +2,12 @@ - name: continuous-deployment-ocis-s3-latest server: server_type: cx21 - image: ubuntu-20.04 + image: ubuntu-22.04 location: nbg1 initial_ssh_key_names: - owncloud-ocis@drone.owncloud.com labels: - owner: wkloucek + owner: ocis-team for: oCIS-continuous-deployment-examples rebuild: $REBUILD rebuild_carry_paths: @@ -31,7 +31,7 @@ docker_compose_path: deployments/examples/ocis_s3 env: INSECURE: "false" - TRAEFIK_ACME_MAIL: wkloucek@owncloud.com + TRAEFIK_ACME_MAIL: mbarz@owncloud.com OCIS_DOCKER_TAG: latest OCIS_DOMAIN: ocis.ocis-s3.latest.owncloud.works MINIO_DOMAIN: minio.ocis-s3.latest.owncloud.works diff --git a/deployments/continuous-deployment-config/ocis_traefik/daily.yml b/deployments/continuous-deployment-config/ocis_traefik/daily.yml index 7f5da3f3f2..505693fb73 100644 --- a/deployments/continuous-deployment-config/ocis_traefik/daily.yml +++ b/deployments/continuous-deployment-config/ocis_traefik/daily.yml @@ -2,12 +2,12 @@ - name: continuous-deployment-ocis-traefik-daily server: server_type: cx21 - image: ubuntu-20.04 + image: ubuntu-22.04 location: nbg1 initial_ssh_key_names: - owncloud-ocis@drone.owncloud.com labels: - owner: wkloucek + owner: ocis-team for: oCIS-continuous-deployment-examples rebuild: $REBUILD rebuild_carry_paths: @@ -31,7 +31,7 @@ docker_compose_path: deployments/examples/ocis_traefik env: INSECURE: "false" - TRAEFIK_ACME_MAIL: wkloucek@owncloud.com + TRAEFIK_ACME_MAIL: mbarz@owncloud.com OCIS_DOCKER_TAG: latest OCIS_DOMAIN: ocis.ocis-traefik.daily.owncloud.works DEMO_USERS: "true" diff --git a/deployments/continuous-deployment-config/ocis_traefik/latest.yml b/deployments/continuous-deployment-config/ocis_traefik/latest.yml index abb6072303..cbdf59c87b 100644 --- a/deployments/continuous-deployment-config/ocis_traefik/latest.yml +++ b/deployments/continuous-deployment-config/ocis_traefik/latest.yml @@ -2,12 +2,12 @@ - name: continuous-deployment-ocis-traefik-latest server: server_type: cx21 - image: ubuntu-20.04 + image: ubuntu-22.04 location: nbg1 initial_ssh_key_names: - owncloud-ocis@drone.owncloud.com labels: - owner: wkloucek + owner: ocis-team for: oCIS-continuous-deployment-examples rebuild: $REBUILD rebuild_carry_paths: @@ -31,7 +31,7 @@ docker_compose_path: deployments/examples/ocis_traefik env: INSECURE: "false" - TRAEFIK_ACME_MAIL: wkloucek@owncloud.com + TRAEFIK_ACME_MAIL: mbarz@owncloud.com OCIS_DOCKER_TAG: latest OCIS_DOMAIN: ocis.ocis-traefik.latest.owncloud.works DEMO_USERS: "true" diff --git a/deployments/continuous-deployment-config/ocis_traefik/released.yml b/deployments/continuous-deployment-config/ocis_traefik/released.yml index befd8657bb..e9edb16e93 100644 --- a/deployments/continuous-deployment-config/ocis_traefik/released.yml +++ b/deployments/continuous-deployment-config/ocis_traefik/released.yml @@ -2,12 +2,12 @@ - name: continuous-deployment-ocis-traefik-released server: server_type: cx21 - image: ubuntu-20.04 + image: ubuntu-22.04 location: nbg1 initial_ssh_key_names: - owncloud-ocis@drone.owncloud.com labels: - owner: wkloucek + owner: ocis-team for: oCIS-continuous-deployment-examples rebuild: $REBUILD rebuild_carry_paths: @@ -31,8 +31,8 @@ docker_compose_path: deployments/examples/ocis_traefik env: INSECURE: "false" - TRAEFIK_ACME_MAIL: wkloucek@owncloud.com - OCIS_DOCKER_TAG: 4.0.0 + TRAEFIK_ACME_MAIL: mbarz@owncloud.com + OCIS_DOCKER_TAG: 4.0.6 OCIS_DOMAIN: ocis.ocis-traefik.released.owncloud.works DEMO_USERS: "true" INBUCKET_DOMAIN: mail.ocis-traefik.released.owncloud.works diff --git a/deployments/continuous-deployment-config/ocis_wopi/daily.yml b/deployments/continuous-deployment-config/ocis_wopi/daily.yml index 85c43d21ac..afa7c4356d 100644 --- a/deployments/continuous-deployment-config/ocis_wopi/daily.yml +++ b/deployments/continuous-deployment-config/ocis_wopi/daily.yml @@ -2,12 +2,12 @@ - name: continuous-deployment-ocis-wopi-daily server: server_type: cx21 - image: ubuntu-20.04 + image: ubuntu-22.04 location: nbg1 initial_ssh_key_names: - owncloud-ocis@drone.owncloud.com labels: - owner: wkloucek + owner: ocis-team for: oCIS-continuous-deployment-examples rebuild: $REBUILD rebuild_carry_paths: @@ -31,7 +31,7 @@ docker_compose_path: deployments/examples/ocis_wopi env: INSECURE: "false" - TRAEFIK_ACME_MAIL: wkloucek@owncloud.com + TRAEFIK_ACME_MAIL: mbarz@owncloud.com OCIS_DOCKER_TAG: latest OCIS_DOMAIN: ocis.ocis-wopi.daily.owncloud.works COMPANION_DOMAIN: companion.ocis-wopi.daily.owncloud.works diff --git a/deployments/continuous-deployment-config/ocis_wopi/latest.yml b/deployments/continuous-deployment-config/ocis_wopi/latest.yml index a806c0a4ef..61a8c40523 100644 --- a/deployments/continuous-deployment-config/ocis_wopi/latest.yml +++ b/deployments/continuous-deployment-config/ocis_wopi/latest.yml @@ -2,12 +2,12 @@ - name: continuous-deployment-ocis-wopi-latest server: server_type: cx21 - image: ubuntu-20.04 + image: ubuntu-22.04 location: nbg1 initial_ssh_key_names: - owncloud-ocis@drone.owncloud.com labels: - owner: wkloucek + owner: ocis-team for: oCIS-continuous-deployment-examples rebuild: $REBUILD rebuild_carry_paths: @@ -31,7 +31,7 @@ docker_compose_path: deployments/examples/ocis_wopi env: INSECURE: "false" - TRAEFIK_ACME_MAIL: wkloucek@owncloud.com + TRAEFIK_ACME_MAIL: mbarz@owncloud.com OCIS_DOCKER_TAG: latest OCIS_DOMAIN: ocis.ocis-wopi.latest.owncloud.works COMPANION_DOMAIN: companion.ocis-wopi.latest.owncloud.works diff --git a/deployments/continuous-deployment-config/ocis_wopi/released.yml b/deployments/continuous-deployment-config/ocis_wopi/released.yml index c8521d3400..e288df3677 100644 --- a/deployments/continuous-deployment-config/ocis_wopi/released.yml +++ b/deployments/continuous-deployment-config/ocis_wopi/released.yml @@ -2,12 +2,12 @@ - name: continuous-deployment-ocis-wopi-released server: server_type: cx21 - image: ubuntu-20.04 + image: ubuntu-22.04 location: nbg1 initial_ssh_key_names: - owncloud-ocis@drone.owncloud.com labels: - owner: wkloucek + owner: ocis-team for: oCIS-continuous-deployment-examples rebuild: $REBUILD rebuild_carry_paths: @@ -31,8 +31,8 @@ docker_compose_path: deployments/examples/ocis_wopi env: INSECURE: "false" - TRAEFIK_ACME_MAIL: wkloucek@owncloud.com - OCIS_DOCKER_TAG: 4.0.0 + TRAEFIK_ACME_MAIL: mbarz@owncloud.com + OCIS_DOCKER_TAG: 4.0.6 OCIS_DOMAIN: ocis.ocis-wopi.released.owncloud.works COMPANION_DOMAIN: companion.ocis-wopi.released.owncloud.works COMPANION_IMAGE: owncloud/uppy-companion:3.12.13-owncloud From 1d3c0dc7724a77d6f7535988860baaa526c237f1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 20 Feb 2024 06:17:44 +0000 Subject: [PATCH 22/56] build(deps): bump github.com/jellydator/ttlcache/v3 from 3.1.1 to 3.2.0 Bumps [github.com/jellydator/ttlcache/v3](https://github.com/jellydator/ttlcache) from 3.1.1 to 3.2.0. - [Release notes](https://github.com/jellydator/ttlcache/releases) - [Commits](https://github.com/jellydator/ttlcache/compare/v3.1.1...v3.2.0) --- updated-dependencies: - dependency-name: github.com/jellydator/ttlcache/v3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- .../jellydator/ttlcache/v3/cache.go | 4 ++++ .../github.com/jellydator/ttlcache/v3/item.go | 20 ++++++++++++++----- vendor/modules.txt | 2 +- 5 files changed, 23 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 453176e76f..68904ca2a8 100644 --- a/go.mod +++ b/go.mod @@ -51,7 +51,7 @@ require ( github.com/gorilla/mux v1.8.1 github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/jellydator/ttlcache/v2 v2.11.1 - github.com/jellydator/ttlcache/v3 v3.1.1 + github.com/jellydator/ttlcache/v3 v3.2.0 github.com/jinzhu/now v1.1.5 github.com/justinas/alice v1.2.0 github.com/leonelquinteros/gotext v1.5.3-0.20230317130943-71a59c05b2c1 diff --git a/go.sum b/go.sum index 785197cc1e..05d79a4890 100644 --- a/go.sum +++ b/go.sum @@ -1544,8 +1544,8 @@ github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOl github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jellydator/ttlcache/v2 v2.11.1 h1:AZGME43Eh2Vv3giG6GeqeLeFXxwxn1/qHItqWZl6U64= github.com/jellydator/ttlcache/v2 v2.11.1/go.mod h1:RtE5Snf0/57e+2cLWFYWCCsLas2Hy3c5Z4n14XmSvTI= -github.com/jellydator/ttlcache/v3 v3.1.1 h1:RCgYJqo3jgvhl+fEWvjNW8thxGWsgxi+TPhRir1Y9y8= -github.com/jellydator/ttlcache/v3 v3.1.1/go.mod h1:hi7MGFdMAwZna5n2tuvh63DvFLzVKySzCVW6+0gA2n4= +github.com/jellydator/ttlcache/v3 v3.2.0 h1:6lqVJ8X3ZaUwvzENqPAobDsXNExfUJd61u++uW8a3LE= +github.com/jellydator/ttlcache/v3 v3.2.0/go.mod h1:hi7MGFdMAwZna5n2tuvh63DvFLzVKySzCVW6+0gA2n4= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jhump/protoreflect v1.6.0 h1:h5jfMVslIg6l29nsMs0D8Wj17RDVdNYti0vDN/PZZoE= github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74= diff --git a/vendor/github.com/jellydator/ttlcache/v3/cache.go b/vendor/github.com/jellydator/ttlcache/v3/cache.go index a1547fcb28..1ad3afbece 100644 --- a/vendor/github.com/jellydator/ttlcache/v3/cache.go +++ b/vendor/github.com/jellydator/ttlcache/v3/cache.go @@ -148,6 +148,10 @@ func (c *Cache[K, V]) set(key K, value V, ttl time.Duration) *Item[K, V] { c.evict(EvictionReasonCapacityReached, c.items.lru.Back()) } + if ttl == PreviousOrDefaultTTL { + ttl = c.options.ttl + } + // create a new item item := newItem(key, value, ttl, c.options.enableVersionTracking) elem = c.items.lru.PushFront(item) diff --git a/vendor/github.com/jellydator/ttlcache/v3/item.go b/vendor/github.com/jellydator/ttlcache/v3/item.go index 72568e07e5..c3c26cf6ba 100644 --- a/vendor/github.com/jellydator/ttlcache/v3/item.go +++ b/vendor/github.com/jellydator/ttlcache/v3/item.go @@ -9,6 +9,10 @@ const ( // NoTTL indicates that an item should never expire. NoTTL time.Duration = -1 + // PreviousOrDefaultTTL indicates that existing TTL of item should be used + // default TTL will be used as fallback if item doesn't exist + PreviousOrDefaultTTL time.Duration = -2 + // DefaultTTL indicates that the default TTL value of the cache // instance should be used. DefaultTTL time.Duration = 0 @@ -58,17 +62,23 @@ func (item *Item[K, V]) update(value V, ttl time.Duration) { defer item.mu.Unlock() item.value = value + + // update version if enabled + if item.version > -1 { + item.version++ + } + + // no need to update ttl or expiry in this case + if ttl == PreviousOrDefaultTTL { + return + } + item.ttl = ttl // reset expiration timestamp because the new TTL may be // 0 or below item.expiresAt = time.Time{} item.touchUnsafe() - - // update version if enabled - if item.version > -1 { - item.version++ - } } // touch updates the item's expiration timestamp. diff --git a/vendor/modules.txt b/vendor/modules.txt index 9c5837990c..06aa65cd9d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1217,7 +1217,7 @@ github.com/jbenet/go-context/io # github.com/jellydator/ttlcache/v2 v2.11.1 ## explicit; go 1.15 github.com/jellydator/ttlcache/v2 -# github.com/jellydator/ttlcache/v3 v3.1.1 +# github.com/jellydator/ttlcache/v3 v3.2.0 ## explicit; go 1.18 github.com/jellydator/ttlcache/v3 # github.com/jinzhu/now v1.1.5 From 58862d7231a7044e1ccd86ff6daf8d2c081e8d39 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Wed, 14 Feb 2024 15:23:29 +0545 Subject: [PATCH 23/56] Added tests to lists file with same name shared by two users --- .../apiSharingNg/sharedWithMe.feature | 294 ++++++++++++++++++ 1 file changed, 294 insertions(+) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMe.feature b/tests/acceptance/features/apiSharingNg/sharedWithMe.feature index b0bee3d760..659d496533 100755 --- a/tests/acceptance/features/apiSharingNg/sharedWithMe.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMe.feature @@ -2921,3 +2921,297 @@ Feature: an user gets the resources shared to them } } """ + + + Scenario: user lists the file with same name shared by two users with him/her + Given user "Carol" has been created with default attributes and without skeleton files + And user "Alice" has uploaded file with content "to share" to "textfile.txt" + And user "Carol" has uploaded file with content "to share" to "textfile.txt" + And user "Alice" has sent the following share invitation: + | resource | textfile.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + And user "Carol" has sent the following share invitation: + | resource | textfile.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + When user "Brian" lists the shares shared with him using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": ["value"], + "properties": { + "value": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "createdBy", + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [true] + }, + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["textfile (1).txt"] + }, + "remoteItem": { + "type": "object", + "required": [ + "createdBy", + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions" + ], + "properties": { + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName","id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["textfile.txt"] + }, + "permissions": { + "type": "array", + "items": [ + { + "type": "object", + "required": ["grantedToV2", "id", "invitation", "roles"], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + } + } + } + } + } + }, + "invitation": { + "type": "object", + "required": ["invitedBy"], + "properties": { + "invitedBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + } + } + } + } + ] + } + } + } + } + }, + { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "createdBy", + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [true] + }, + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["textfile.txt"] + }, + "remoteItem": { + "type": "object", + "required": [ + "createdBy", + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions" + ], + "properties": { + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["textfile.txt"] + }, + "permissions": { + "type": "array", + "items": [ + { + "type": "object", + "required": ["grantedToV2", "id", "invitation", "roles"], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + } + } + } + } + } + }, + "invitation": { + "type": "object", + "required": ["invitedBy"], + "properties": { + "invitedBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + } + } + } + } + ] + } + } + } + } + } + ] + } + } + } + } + """ From a94fffd84c78bd270fb1b84ef2c2f5c18e68fd82 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Wed, 14 Feb 2024 15:27:17 +0545 Subject: [PATCH 24/56] Added tests to lists folder with same name shared by two users --- .../apiSharingNg/sharedWithMe.feature | 294 ++++++++++++++++++ 1 file changed, 294 insertions(+) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMe.feature b/tests/acceptance/features/apiSharingNg/sharedWithMe.feature index 659d496533..3a529757f3 100755 --- a/tests/acceptance/features/apiSharingNg/sharedWithMe.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMe.feature @@ -3215,3 +3215,297 @@ Feature: an user gets the resources shared to them } } """ + + + Scenario: user lists the folder with same name shared by two users with him/her + Given user "Carol" has been created with default attributes and without skeleton files + And user "Alice" has created folder "folderToShare" + And user "Carol" has created folder "folderToShare" + And user "Alice" has sent the following share invitation: + | resource | folderToShare | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + And user "Carol" has sent the following share invitation: + | resource | folderToShare | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + When user "Brian" lists the shares shared with him using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": ["value"], + "properties": { + "value": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "createdBy", + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [true] + }, + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["folderToShare (1)"] + }, + "remoteItem": { + "type": "object", + "required": [ + "createdBy", + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions" + ], + "properties": { + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName","id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["folderToShare"] + }, + "permissions": { + "type": "array", + "items": [ + { + "type": "object", + "required": ["grantedToV2", "id", "invitation", "roles"], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + } + } + } + } + } + }, + "invitation": { + "type": "object", + "required": ["invitedBy"], + "properties": { + "invitedBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + } + } + } + } + ] + } + } + } + } + }, + { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "createdBy", + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [true] + }, + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["folderToShare"] + }, + "remoteItem": { + "type": "object", + "required": [ + "createdBy", + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions" + ], + "properties": { + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["folderToShare"] + }, + "permissions": { + "type": "array", + "items": [ + { + "type": "object", + "required": ["grantedToV2", "id", "invitation", "roles"], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + } + } + } + } + } + }, + "invitation": { + "type": "object", + "required": ["invitedBy"], + "properties": { + "invitedBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + } + } + } + } + ] + } + } + } + } + } + ] + } + } + } + } + """ From 80c980f1a99ad79f97594fb1a309a452b4a810d6 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Tue, 20 Feb 2024 12:50:09 +0545 Subject: [PATCH 25/56] Strict check for json schema --- tests/acceptance/features/apiSharingNg/sharedWithMe.feature | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMe.feature b/tests/acceptance/features/apiSharingNg/sharedWithMe.feature index 3a529757f3..8995ba5d4b 100755 --- a/tests/acceptance/features/apiSharingNg/sharedWithMe.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMe.feature @@ -2949,6 +2949,8 @@ Feature: an user gets the resources shared to them "properties": { "value": { "type": "array", + "minItems": 2, + "maxItems": 2, "items": { "oneOf": [ { @@ -3243,6 +3245,8 @@ Feature: an user gets the resources shared to them "properties": { "value": { "type": "array", + "minItems": 2, + "maxItems": 2, "items": { "oneOf": [ { From 51065ac85ac81c849790410abef3b7e43e73e4c5 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Wed, 14 Feb 2024 12:29:22 +0545 Subject: [PATCH 26/56] Added tests to lists file shared with group and user when sync is disabled --- .../sharedWithMeSyncDisabled.feature | 142 ++++++++++++++++++ 1 file changed, 142 insertions(+) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature index 5ffa99b394..b6510c1b1e 100644 --- a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature @@ -1922,3 +1922,145 @@ Feature: listing sharedWithMe when auto-sync is disabled } } """ + + + Scenario: user who is also a member of group lists the file shared with them when auto-sync is disabled + Given user "Carol" has been created with default attributes and without skeleton files + And group "grp1" has been created + And the following users have been added to the following groups + | username | groupname | + | Brian | grp1 | + | Carol | grp1 | + And user "Alice" has uploaded file with content "to share" to "textfile.txt" + And user "Brian" has disabled the auto-sync share + And user "Alice" has sent the following share invitation: + | resource | textfile.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + And user "Alice" has sent the following share invitation: + | resource | textfile.txt | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Viewer | + When user "Brian" lists the shares shared with him using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "createdBy", + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem", + "size" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [false] + }, + "remoteItem": { + "type": "object", + "required": [ + "createdBy", + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions", + "size" + ], + "properties": { + "permissions": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "required": [ + "grantedToV2", + "id", + "invitation", + "roles" + ], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["user"], + "properties": { + "group": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + } + } + } + } + } + } + }, + { + "type": "object", + "required": [ + "grantedToV2", + "id", + "invitation", + "roles" + ], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["group"], + "properties": { + "group": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["grp1"] + } + } + } + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + """ From bcb2b2731c22a5b35a1d5c7fd9574a3585569580 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Wed, 14 Feb 2024 12:29:41 +0545 Subject: [PATCH 27/56] Added tests to lists folder shared with group and user when sync is disabled --- .../sharedWithMeSyncDisabled.feature | 140 ++++++++++++++++++ 1 file changed, 140 insertions(+) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature index b6510c1b1e..63ee4204cd 100644 --- a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature @@ -2064,3 +2064,143 @@ Feature: listing sharedWithMe when auto-sync is disabled } } """ + + + Scenario: user who is also a member of group lists the folder shared with them when auto-sync is disabled + Given user "Carol" has been created with default attributes and without skeleton files + And group "grp1" has been created + And the following users have been added to the following groups + | username | groupname | + | Brian | grp1 | + | Carol | grp1 | + And user "Alice" has created folder "folderToShare" + And user "Brian" has disabled the auto-sync share + And user "Alice" has sent the following share invitation: + | resource | folderToShare | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + And user "Alice" has sent the following share invitation: + | resource | folderToShare | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Viewer | + When user "Brian" lists the shares shared with him using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "createdBy", + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [false] + }, + "remoteItem": { + "type": "object", + "required": [ + "createdBy", + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions" + ], + "properties": { + "permissions": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "required": [ + "grantedToV2", + "id", + "invitation", + "roles" + ], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["user"], + "properties": { + "group": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + } + } + } + } + } + } + }, + { + "type": "object", + "required": [ + "grantedToV2", + "id", + "invitation", + "roles" + ], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["group"], + "properties": { + "group": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["grp1"] + } + } + } + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + """ From 890777151ccc820ff8bd7b8cea2c9a0e4aad92ce Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Tue, 20 Feb 2024 13:06:39 +0545 Subject: [PATCH 28/56] Updated scenario description, removed user carol creation step --- .../sharedWithMeSyncDisabled.feature | 36 ++++++++----------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature index 63ee4204cd..cb90342681 100644 --- a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature @@ -13,7 +13,7 @@ Feature: listing sharedWithMe when auto-sync is disabled And user "Brian" has disabled the auto-sync share - Scenario: user lists the file shared with them when auto-sync is disabled + Scenario: user lists the file shared with them Given user "Alice" has uploaded file with content "to share" to "textfile.txt" And user "Alice" has sent the following share invitation: | resource | textfile.txt | @@ -280,7 +280,7 @@ Feature: listing sharedWithMe when auto-sync is disabled """ - Scenario: user lists the folder shared with them when auto-sync is disabled + Scenario: user lists the folder shared with them Given user "Alice" has created folder "folderToShare" And user "Alice" has sent the following share invitation: | resource | folderToShare | @@ -517,9 +517,8 @@ Feature: listing sharedWithMe when auto-sync is disabled """ - Scenario: group member lists the file shared with them when auto-sync is disabled - Given user "Carol" has been created with default attributes and without skeleton files - And group "grp1" has been created + Scenario: group member lists the file shared with them + Given group "grp1" has been created And the following users have been added to the following groups | username | groupname | | Brian | grp1 | @@ -789,9 +788,8 @@ Feature: listing sharedWithMe when auto-sync is disabled """ - Scenario: group member lists the folder shared with them when auto-sync is disabled - Given user "Carol" has been created with default attributes and without skeleton files - And group "grp1" has been created + Scenario: group member lists the folder shared with them + Given group "grp1" has been created And the following users have been added to the following groups | username | groupname | | Brian | grp1 | @@ -1031,7 +1029,7 @@ Feature: listing sharedWithMe when auto-sync is disabled """ - Scenario: user lists file shares shared with them from project-space when auto-sync is disabled + Scenario: user lists file shares shared with them from project-space Given using spaces DAV path And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API And user "Alice" has created a space "projectSpace" with the default quota using the Graph API @@ -1272,7 +1270,7 @@ Feature: listing sharedWithMe when auto-sync is disabled """ - Scenario: user lists folder shares shared with them from project-space when auto-sync is disabled + Scenario: user lists folder shares shared with them from project-space Given using spaces DAV path And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API And user "Alice" has created a space "projectSpace" with the default quota using the Graph API @@ -1488,9 +1486,8 @@ Feature: listing sharedWithMe when auto-sync is disabled """ - Scenario: group member lists the file shared with them from project-space when auto-sync is disabled + Scenario: group member lists the file shared with them from project-space Given using spaces DAV path - And user "Carol" has been created with default attributes and without skeleton files And group "grp1" has been created And the following users have been added to the following groups | username | groupname | @@ -1721,9 +1718,8 @@ Feature: listing sharedWithMe when auto-sync is disabled """ - Scenario: group member lists the space folder shared with them from project-space when auto-sync is disabled + Scenario: group member lists the space folder shared with them from project-space Given using spaces DAV path - And user "Carol" has been created with default attributes and without skeleton files And group "grp1" has been created And the following users have been added to the following groups | username | groupname | @@ -1924,13 +1920,11 @@ Feature: listing sharedWithMe when auto-sync is disabled """ - Scenario: user who is also a member of group lists the file shared with them when auto-sync is disabled - Given user "Carol" has been created with default attributes and without skeleton files - And group "grp1" has been created + Scenario: user who is also a member of group lists the file shared with them + Given group "grp1" has been created And the following users have been added to the following groups | username | groupname | | Brian | grp1 | - | Carol | grp1 | And user "Alice" has uploaded file with content "to share" to "textfile.txt" And user "Brian" has disabled the auto-sync share And user "Alice" has sent the following share invitation: @@ -2066,13 +2060,11 @@ Feature: listing sharedWithMe when auto-sync is disabled """ - Scenario: user who is also a member of group lists the folder shared with them when auto-sync is disabled - Given user "Carol" has been created with default attributes and without skeleton files - And group "grp1" has been created + Scenario: user who is also a member of group lists the folder shared with them + Given group "grp1" has been created And the following users have been added to the following groups | username | groupname | | Brian | grp1 | - | Carol | grp1 | And user "Alice" has created folder "folderToShare" And user "Brian" has disabled the auto-sync share And user "Alice" has sent the following share invitation: From 6c376722956734e8768436fcad2d4cf55597ce3a Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Tue, 20 Feb 2024 13:08:50 +0545 Subject: [PATCH 29/56] Strict check for json schema --- .../features/apiSharingNg/sharedWithMeSyncDisabled.feature | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature index cb90342681..c0a50b7144 100644 --- a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature @@ -1991,6 +1991,8 @@ Feature: listing sharedWithMe when auto-sync is disabled "properties": { "permissions": { "type": "array", + "minItems": 2, + "maxItems": 2, "items": { "oneOf": [ { @@ -2129,6 +2131,8 @@ Feature: listing sharedWithMe when auto-sync is disabled "properties": { "permissions": { "type": "array", + "minItems": 2, + "maxItems": 2, "items": { "oneOf": [ { From c7cfb371a74f3e2fcce66d19a1ecfcd271f6340b Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Tue, 20 Feb 2024 13:11:34 +0545 Subject: [PATCH 30/56] Removed disabled step, it is in background --- .../features/apiSharingNg/sharedWithMeSyncDisabled.feature | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature index c0a50b7144..619a77b600 100644 --- a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature @@ -1926,7 +1926,6 @@ Feature: listing sharedWithMe when auto-sync is disabled | username | groupname | | Brian | grp1 | And user "Alice" has uploaded file with content "to share" to "textfile.txt" - And user "Brian" has disabled the auto-sync share And user "Alice" has sent the following share invitation: | resource | textfile.txt | | space | Personal | @@ -2068,7 +2067,6 @@ Feature: listing sharedWithMe when auto-sync is disabled | username | groupname | | Brian | grp1 | And user "Alice" has created folder "folderToShare" - And user "Brian" has disabled the auto-sync share And user "Alice" has sent the following share invitation: | resource | folderToShare | | space | Personal | From 49b0ae702bee174352c98fdfe05a44daaa98e5e5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 15 Feb 2024 06:57:25 +0000 Subject: [PATCH 31/56] build(deps): bump github.com/tidwall/gjson from 1.17.0 to 1.17.1 Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson) from 1.17.0 to 1.17.1. - [Commits](https://github.com/tidwall/gjson/compare/v1.17.0...v1.17.1) --- updated-dependencies: - dependency-name: github.com/tidwall/gjson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/tidwall/gjson/gjson.go | 4 ++++ vendor/modules.txt | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 68904ca2a8..347f16ad4e 100644 --- a/go.mod +++ b/go.mod @@ -82,7 +82,7 @@ require ( github.com/spf13/cobra v1.8.0 github.com/stretchr/testify v1.8.4 github.com/thejerf/suture/v4 v4.0.2 - github.com/tidwall/gjson v1.17.0 + github.com/tidwall/gjson v1.17.1 github.com/tus/tusd v1.13.0 github.com/urfave/cli/v2 v2.27.1 github.com/xhit/go-simple-mail/v2 v2.16.0 diff --git a/go.sum b/go.sum index 05d79a4890..604498deb0 100644 --- a/go.sum +++ b/go.sum @@ -2012,8 +2012,8 @@ github.com/thanhpk/randstr v1.0.4 h1:IN78qu/bR+My+gHCvMEXhR/i5oriVHcTB/BJJIRTsNo github.com/thanhpk/randstr v1.0.4/go.mod h1:M/H2P1eNLZzlDwAzpkkkUvoyNNMbzRGhESZuEQk3r0U= github.com/thejerf/suture/v4 v4.0.2 h1:VxIH/J8uYvqJY1+9fxi5GBfGRkRZ/jlSOP6x9HijFQc= github.com/thejerf/suture/v4 v4.0.2/go.mod h1:g0e8vwskm9tI0jRjxrnA6lSr0q6OfPdWJVX7G5bVWRs= -github.com/tidwall/gjson v1.17.0 h1:/Jocvlh98kcTfpN2+JzGQWQcqrPQwDrVEMApx/M5ZwM= -github.com/tidwall/gjson v1.17.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/gjson v1.17.1 h1:wlYEnwqAHgzmhNUFfw7Xalt2JzQvsMx2Se4PcoFCT/U= +github.com/tidwall/gjson v1.17.1/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= diff --git a/vendor/github.com/tidwall/gjson/gjson.go b/vendor/github.com/tidwall/gjson/gjson.go index 79498250ae..4acd087c05 100644 --- a/vendor/github.com/tidwall/gjson/gjson.go +++ b/vendor/github.com/tidwall/gjson/gjson.go @@ -1926,6 +1926,10 @@ func AppendJSONString(dst []byte, s string) []byte { if s[i] < ' ' { dst = append(dst, '\\') switch s[i] { + case '\b': + dst = append(dst, 'b') + case '\f': + dst = append(dst, 'f') case '\n': dst = append(dst, 'n') case '\r': diff --git a/vendor/modules.txt b/vendor/modules.txt index 06aa65cd9d..ad0d1abe41 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1762,7 +1762,7 @@ github.com/tchap/go-patricia/v2/patricia # github.com/thejerf/suture/v4 v4.0.2 ## explicit; go 1.9 github.com/thejerf/suture/v4 -# github.com/tidwall/gjson v1.17.0 +# github.com/tidwall/gjson v1.17.1 ## explicit; go 1.12 github.com/tidwall/gjson # github.com/tidwall/match v1.1.1 From 3e5ccad80f5b967d279e572eadcc1eb1e9972cc5 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Wed, 14 Feb 2024 14:07:44 +0545 Subject: [PATCH 32/56] auto-sync-disabled: Added tests to lists shares, when same file shared by two user --- .../sharedWithMeSyncDisabled.feature | 295 ++++++++++++++++++ 1 file changed, 295 insertions(+) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature index 619a77b600..f24d7dc112 100644 --- a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature @@ -2198,3 +2198,298 @@ Feature: listing sharedWithMe when auto-sync is disabled } } """ + + + Scenario: user lists the file with same name shared by two users with him/her when auto sync is disabled + Given user "Carol" has been created with default attributes and without skeleton files + And user "Alice" has uploaded file with content "to share" to "textfile.txt" + And user "Carol" has uploaded file with content "to share" to "textfile.txt" + And user "Brian" has disabled the auto-sync share + And user "Alice" has sent the following share invitation: + | resource | textfile.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + And user "Carol" has sent the following share invitation: + | resource | textfile.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + When user "Brian" lists the shares shared with him using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": ["value"], + "properties": { + "value": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "createdBy", + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [false] + }, + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["textfile.txt"] + }, + "remoteItem": { + "type": "object", + "required": [ + "createdBy", + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions" + ], + "properties": { + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName","id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["textfile.txt"] + }, + "permissions": { + "type": "array", + "items": [ + { + "type": "object", + "required": ["grantedToV2", "id", "invitation", "roles"], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + } + } + } + } + } + }, + "invitation": { + "type": "object", + "required": ["invitedBy"], + "properties": { + "invitedBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + } + } + } + } + ] + } + } + } + } + }, + { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "createdBy", + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [false] + }, + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["textfile.txt"] + }, + "remoteItem": { + "type": "object", + "required": [ + "createdBy", + "eTag", + "file", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions" + ], + "properties": { + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["textfile.txt"] + }, + "permissions": { + "type": "array", + "items": [ + { + "type": "object", + "required": ["grantedToV2", "id", "invitation", "roles"], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + } + } + } + } + } + }, + "invitation": { + "type": "object", + "required": ["invitedBy"], + "properties": { + "invitedBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + } + } + } + } + ] + } + } + } + } + } + ] + } + } + } + } + """ From 68692162606d6db157cb675a29ae2a61aa205033 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Wed, 14 Feb 2024 17:05:22 +0545 Subject: [PATCH 33/56] auto-sync-disabled: Added tests to lists shares, when same folder shared by two user --- .../sharedWithMeSyncDisabled.feature | 295 ++++++++++++++++++ 1 file changed, 295 insertions(+) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature index f24d7dc112..8f468a7ce6 100644 --- a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature @@ -2493,3 +2493,298 @@ Feature: listing sharedWithMe when auto-sync is disabled } } """ + + + Scenario: user lists the folder with same name shared by two users with him/her when auto sync is disabled + Given user "Carol" has been created with default attributes and without skeleton files + And user "Alice" has created folder "folderToShare" + And user "Carol" has created folder "folderToShare" + And user "Brian" has disabled the auto-sync share + And user "Alice" has sent the following share invitation: + | resource | folderToShare | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + And user "Carol" has sent the following share invitation: + | resource | folderToShare | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + When user "Brian" lists the shares shared with him using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": ["value"], + "properties": { + "value": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "createdBy", + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [false] + }, + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["folderToShare"] + }, + "remoteItem": { + "type": "object", + "required": [ + "createdBy", + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions" + ], + "properties": { + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName","id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["folderToShare"] + }, + "permissions": { + "type": "array", + "items": [ + { + "type": "object", + "required": ["grantedToV2", "id", "invitation", "roles"], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + } + } + } + } + } + }, + "invitation": { + "type": "object", + "required": ["invitedBy"], + "properties": { + "invitedBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Carol King"] + } + } + } + } + } + } + } + } + ] + } + } + } + } + }, + { + "type": "object", + "required": [ + "@UI.Hidden", + "@client.synchronize", + "createdBy", + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "remoteItem" + ], + "properties": { + "@UI.Hidden": { + "type": "boolean", + "enum": [false] + }, + "@client.synchronize": { + "type": "boolean", + "enum": [false] + }, + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["folderToShare"] + }, + "remoteItem": { + "type": "object", + "required": [ + "createdBy", + "eTag", + "folder", + "id", + "lastModifiedDateTime", + "name", + "parentReference", + "permissions" + ], + "properties": { + "createdBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + }, + "name": { + "type": "string", + "enum": ["folderToShare"] + }, + "permissions": { + "type": "array", + "items": [ + { + "type": "object", + "required": ["grantedToV2", "id", "invitation", "roles"], + "properties": { + "grantedToV2": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + } + } + } + } + } + }, + "invitation": { + "type": "object", + "required": ["invitedBy"], + "properties": { + "invitedBy": { + "type": "object", + "required": ["user"], + "properties": { + "user": { + "type": "object", + "required": ["displayName", "id"], + "properties": { + "displayName": { + "type": "string", + "enum": ["Alice Hansen"] + } + } + } + } + } + } + } + } + ] + } + } + } + } + } + ] + } + } + } + } + """ From aa67452e2b501de82cc5f838d7995d683d6d0d93 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Tue, 20 Feb 2024 16:58:44 +0545 Subject: [PATCH 34/56] Strict check for json schema --- .../apiSharingNg/sharedWithMeSyncDisabled.feature | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature index 8f468a7ce6..513b65baf0 100644 --- a/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMeSyncDisabled.feature @@ -2200,11 +2200,10 @@ Feature: listing sharedWithMe when auto-sync is disabled """ - Scenario: user lists the file with same name shared by two users with him/her when auto sync is disabled + Scenario: user lists the file with same name shared by two users with him/her Given user "Carol" has been created with default attributes and without skeleton files And user "Alice" has uploaded file with content "to share" to "textfile.txt" And user "Carol" has uploaded file with content "to share" to "textfile.txt" - And user "Brian" has disabled the auto-sync share And user "Alice" has sent the following share invitation: | resource | textfile.txt | | space | Personal | @@ -2227,6 +2226,8 @@ Feature: listing sharedWithMe when auto-sync is disabled "properties": { "value": { "type": "array", + "minItems": 2, + "maxItems": 2, "items": { "oneOf": [ { @@ -2495,11 +2496,10 @@ Feature: listing sharedWithMe when auto-sync is disabled """ - Scenario: user lists the folder with same name shared by two users with him/her when auto sync is disabled + Scenario: user lists the folder with same name shared by two users with him/her Given user "Carol" has been created with default attributes and without skeleton files And user "Alice" has created folder "folderToShare" And user "Carol" has created folder "folderToShare" - And user "Brian" has disabled the auto-sync share And user "Alice" has sent the following share invitation: | resource | folderToShare | | space | Personal | @@ -2522,6 +2522,8 @@ Feature: listing sharedWithMe when auto-sync is disabled "properties": { "value": { "type": "array", + "minItems": 2, + "maxItems": 2, "items": { "oneOf": [ { From 6d9e23d6cd3abdba3ed0a7ddf11170a44576694e Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Tue, 20 Feb 2024 10:51:41 +0100 Subject: [PATCH 35/56] chore: bump web to v8.0.0-rc.5 --- .drone.env | 2 +- changelog/unreleased/update-web-8.0.0.md | 11 ++++++++++- services/web/Makefile | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.drone.env b/.drone.env index a3f7c85062..d682f8d979 100644 --- a/.drone.env +++ b/.drone.env @@ -1,3 +1,3 @@ # The test runner source for UI tests -WEB_COMMITID=6fca4f4f12aa58d21c73d299b47bda2a9407eb4e +WEB_COMMITID=98f771cb1424a864805bffd9084ddfc3eea01e49 WEB_BRANCH=stable-8.0 diff --git a/changelog/unreleased/update-web-8.0.0.md b/changelog/unreleased/update-web-8.0.0.md index f30738b62e..f7e61664f9 100644 --- a/changelog/unreleased/update-web-8.0.0.md +++ b/changelog/unreleased/update-web-8.0.0.md @@ -1,7 +1,12 @@ -Enhancement: Update web to v8.0.0-rc.4 +Enhancement: Update web to v8.0.0-rc.5 Tags: web +We updated ownCloud Web to v8.0.0-rc.5. Please refer to the changelog (linked) for details on the web release. + +## Summary +* Bugfix [owncloud/web#10473](https://github.com/owncloud/web/issues/10473): Public link file download + We updated ownCloud Web to v8.0.0-rc.4. Please refer to the changelog (linked) for details on the web release. ## Summary @@ -141,6 +146,10 @@ We updated ownCloud Web to v8.0.0-alpha.12. Please refer to the changelog (linke * Enhancement [owncloud/web#10099](https://github.com/owncloud/web/pull/10099): Support mandatory filter while listing users * Enhancement [owncloud/web#10102](https://github.com/owncloud/web/pull/10102): Registering quick actions as extension +https://github.com/owncloud/ocis/pull/8491 +https://github.com/owncloud/web/releases/tag/v8.0.0-rc.5 +https://github.com/owncloud/ocis/pull/8468 +https://github.com/owncloud/web/releases/tag/v8.0.0-rc.4 https://github.com/owncloud/ocis/pull/8342 https://github.com/owncloud/web/releases/tag/v8.0.0-rc.3 https://github.com/owncloud/ocis/pull/8154 diff --git a/services/web/Makefile b/services/web/Makefile index b5da39a7b8..d2d8c87213 100644 --- a/services/web/Makefile +++ b/services/web/Makefile @@ -1,6 +1,6 @@ SHELL := bash NAME := web -WEB_ASSETS_VERSION = v8.0.0-rc.4 +WEB_ASSETS_VERSION = v8.0.0-rc.5 include ../../.make/recursion.mk From de405dbf6aa5b8f2a23632fc9b494989a5fbe501 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Tue, 20 Feb 2024 19:22:03 +0000 Subject: [PATCH 36/56] Automated changelog update [skip ci] --- CHANGELOG.md | 65 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 38 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2cc4c36a1..4d295447dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,10 +52,10 @@ The following sections list the changes for unreleased. * Enhancement - Improve ocis single binary start: [#8320](https://github.com/owncloud/ocis/pull/8320) * Enhancement - Use environment variables in yaml config files: [#8339](https://github.com/owncloud/ocis/pull/8339) * Enhancement - Bump reva: [#8340](https://github.com/owncloud/ocis/pull/8340) -* Enhancement - Update web to v8.0.0-rc.4: [#8342](https://github.com/owncloud/ocis/pull/8342) * Enhancement - Allow sending multiple user ids in one sse event: [#8379](https://github.com/owncloud/ocis/pull/8379) * Enhancement - Allow to skip service listing: [#8408](https://github.com/owncloud/ocis/pull/8408) * Enhancement - Add a make step to validate the env var annotations: [#8436](https://github.com/owncloud/ocis/pull/8436) +* Enhancement - Update web to v8.0.0-rc.5: [#8491](https://github.com/owncloud/ocis/pull/8491) ## Details @@ -152,10 +152,42 @@ The following sections list the changes for unreleased. https://github.com/owncloud/ocis/issues/8291 https://github.com/owncloud/ocis/pull/8340 -* Enhancement - Update web to v8.0.0-rc.4: [#8342](https://github.com/owncloud/ocis/pull/8342) +* Enhancement - Allow sending multiple user ids in one sse event: [#8379](https://github.com/owncloud/ocis/pull/8379) + + Sending multiple user ids in one sse event is now possible which reduces the + number of sent events. + + https://github.com/owncloud/ocis/pull/8379 + https://github.com/cs3org/reva/pull/4501 + +* Enhancement - Allow to skip service listing: [#8408](https://github.com/owncloud/ocis/pull/8408) + + The ocis version cmd listed all services by default. This is not always + intended, so we allow to skip the listing of the services by using the + --skip-services flag. + + https://github.com/owncloud/ocis/issues/8070 + https://github.com/owncloud/ocis/pull/8408 + +* Enhancement - Add a make step to validate the env var annotations: [#8436](https://github.com/owncloud/ocis/pull/8436) + + We have added a make step `make validate-env-var-annotations` to validate the + env var annotations in to the environment variables. + + https://github.com/owncloud/ocis/issues/8258 + https://github.com/owncloud/ocis/pull/8436 + +* Enhancement - Update web to v8.0.0-rc.5: [#8491](https://github.com/owncloud/ocis/pull/8491) Tags: web + We updated ownCloud Web to v8.0.0-rc.5. Please refer to the changelog (linked) + for details on the web release. + + ## Summary * Bugfix + [owncloud/web#10473](https://github.com/owncloud/web/issues/10473): Public link + file download + We updated ownCloud Web to v8.0.0-rc.4. Please refer to the changelog (linked) for details on the web release. @@ -405,6 +437,8 @@ The following sections list the changes for unreleased. [owncloud/web#10102](https://github.com/owncloud/web/pull/10102): Registering quick actions as extension + https://github.com/owncloud/ocis/pull/8491 + https://github.com/owncloud/ocis/pull/8468 https://github.com/owncloud/ocis/pull/8342 https://github.com/owncloud/ocis/pull/8154 https://github.com/owncloud/ocis/pull/8154 @@ -413,6 +447,8 @@ The following sections list the changes for unreleased. https://github.com/owncloud/ocis/pull/7952 https://github.com/owncloud/ocis/pull/7918 https://github.com/owncloud/ocis/pull/7883 + https://github.com/owncloud/web/releases/tag/v8.0.0-rc.5 + https://github.com/owncloud/web/releases/tag/v8.0.0-rc.4 https://github.com/owncloud/web/releases/tag/v8.0.0-rc.3 https://github.com/owncloud/web/releases/tag/v8.0.0-rc.2 https://github.com/owncloud/web/releases/tag/v8.0.0-rc.2 @@ -422,31 +458,6 @@ The following sections list the changes for unreleased. https://github.com/owncloud/web/releases/tag/v8.0.0-alpha.13 https://github.com/owncloud/web/releases/tag/v8.0.0-alpha.12 -* Enhancement - Allow sending multiple user ids in one sse event: [#8379](https://github.com/owncloud/ocis/pull/8379) - - Sending multiple user ids in one sse event is now possible which reduces the - number of sent events. - - https://github.com/owncloud/ocis/pull/8379 - https://github.com/cs3org/reva/pull/4501 - -* Enhancement - Allow to skip service listing: [#8408](https://github.com/owncloud/ocis/pull/8408) - - The ocis version cmd listed all services by default. This is not always - intended, so we allow to skip the listing of the services by using the - --skip-services flag. - - https://github.com/owncloud/ocis/issues/8070 - https://github.com/owncloud/ocis/pull/8408 - -* Enhancement - Add a make step to validate the env var annotations: [#8436](https://github.com/owncloud/ocis/pull/8436) - - We have added a make step `make validate-env-var-annotations` to validate the - env var annotations in to the environment variables. - - https://github.com/owncloud/ocis/issues/8258 - https://github.com/owncloud/ocis/pull/8436 - # Changelog for [4.0.6] (2024-02-07) The following sections list the changes for 4.0.6. From b480cc517eac4ab51e484558d507b69b0e3f23fd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 06:49:15 +0000 Subject: [PATCH 37/56] build(deps): bump github.com/go-chi/chi/v5 from 5.0.11 to 5.0.12 Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.0.11 to 5.0.12. - [Release notes](https://github.com/go-chi/chi/releases) - [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md) - [Commits](https://github.com/go-chi/chi/compare/v5.0.11...v5.0.12) --- updated-dependencies: - dependency-name: github.com/go-chi/chi/v5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/go-chi/chi/v5/CHANGELOG.md | 5 +++++ vendor/github.com/go-chi/chi/v5/README.md | 2 ++ .../go-chi/chi/v5/middleware/maybe.go | 2 +- vendor/github.com/go-chi/chi/v5/mux.go | 16 +++++++++++++++ vendor/github.com/go-chi/chi/v5/path_value.go | 20 +++++++++++++++++++ .../go-chi/chi/v5/path_value_fallback.go | 19 ++++++++++++++++++ vendor/modules.txt | 2 +- 9 files changed, 67 insertions(+), 5 deletions(-) create mode 100644 vendor/github.com/go-chi/chi/v5/path_value.go create mode 100644 vendor/github.com/go-chi/chi/v5/path_value_fallback.go diff --git a/go.mod b/go.mod index 347f16ad4e..81cbda3efe 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( github.com/egirna/icap-client v0.1.1 github.com/gabriel-vasile/mimetype v1.4.3 github.com/ggwhite/go-masker v1.1.0 - github.com/go-chi/chi/v5 v5.0.11 + github.com/go-chi/chi/v5 v5.0.12 github.com/go-chi/cors v1.2.1 github.com/go-chi/render v1.0.3 github.com/go-ldap/ldap/v3 v3.4.6 diff --git a/go.sum b/go.sum index 604498deb0..4e24f6a4ca 100644 --- a/go.sum +++ b/go.sum @@ -1138,8 +1138,8 @@ github.com/go-asn1-ber/asn1-ber v1.5.5 h1:MNHlNMBDgEKD4TcKr36vQN68BA00aDfjIt3/bD github.com/go-asn1-ber/asn1-ber v1.5.5/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0= github.com/go-chi/chi v4.0.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ= github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= -github.com/go-chi/chi/v5 v5.0.11 h1:BnpYbFZ3T3S1WMpD79r7R5ThWX40TaFB7L31Y8xqSwA= -github.com/go-chi/chi/v5 v5.0.11/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= +github.com/go-chi/chi/v5 v5.0.12 h1:9euLV5sTrTNTRUU9POmDUvfxyj6LAABLUcEWO+JJb4s= +github.com/go-chi/chi/v5 v5.0.12/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/go-chi/cors v1.2.1 h1:xEC8UT3Rlp2QuWNEr4Fs/c2EAGVKBwy/1vHx3bppil4= github.com/go-chi/cors v1.2.1/go.mod h1:sSbTewc+6wYHBBCW7ytsFSn836hqM7JxpglAy2Vzc58= github.com/go-chi/render v1.0.3 h1:AsXqd2a1/INaIfUSKq3G5uA8weYx20FOsM7uSoCyyt4= diff --git a/vendor/github.com/go-chi/chi/v5/CHANGELOG.md b/vendor/github.com/go-chi/chi/v5/CHANGELOG.md index 83d5aa28f2..25b45b9743 100644 --- a/vendor/github.com/go-chi/chi/v5/CHANGELOG.md +++ b/vendor/github.com/go-chi/chi/v5/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v5.0.12 (2024-02-16) + +- History of changes: see https://github.com/go-chi/chi/compare/v5.0.11...v5.0.12 + + ## v5.0.11 (2023-12-19) - History of changes: see https://github.com/go-chi/chi/compare/v5.0.10...v5.0.11 diff --git a/vendor/github.com/go-chi/chi/v5/README.md b/vendor/github.com/go-chi/chi/v5/README.md index 4b1c99d12d..21cbb0fc0a 100644 --- a/vendor/github.com/go-chi/chi/v5/README.md +++ b/vendor/github.com/go-chi/chi/v5/README.md @@ -354,6 +354,7 @@ with `net/http` can be used with chi's mux. | [RouteHeaders] | Route handling for request headers | | [SetHeader] | Short-hand middleware to set a response header key/value | | [StripSlashes] | Strip slashes on routing paths | +| [Sunset] | Sunset set Deprecation/Sunset header to response | | [Throttle] | Puts a ceiling on the number of concurrent requests | | [Timeout] | Signals to the request context when the timeout deadline is reached | | [URLFormat] | Parse extension from url and put it on request context | @@ -380,6 +381,7 @@ with `net/http` can be used with chi's mux. [RouteHeaders]: https://pkg.go.dev/github.com/go-chi/chi/middleware#RouteHeaders [SetHeader]: https://pkg.go.dev/github.com/go-chi/chi/middleware#SetHeader [StripSlashes]: https://pkg.go.dev/github.com/go-chi/chi/middleware#StripSlashes +[Sunset]: https://pkg.go.dev/github.com/go-chi/chi/v5/middleware#Sunset [Throttle]: https://pkg.go.dev/github.com/go-chi/chi/middleware#Throttle [ThrottleBacklog]: https://pkg.go.dev/github.com/go-chi/chi/middleware#ThrottleBacklog [ThrottleWithOpts]: https://pkg.go.dev/github.com/go-chi/chi/middleware#ThrottleWithOpts diff --git a/vendor/github.com/go-chi/chi/v5/middleware/maybe.go b/vendor/github.com/go-chi/chi/v5/middleware/maybe.go index d8ca63b918..eabca005a6 100644 --- a/vendor/github.com/go-chi/chi/v5/middleware/maybe.go +++ b/vendor/github.com/go-chi/chi/v5/middleware/maybe.go @@ -4,7 +4,7 @@ import "net/http" // Maybe middleware will allow you to change the flow of the middleware stack execution depending on return // value of maybeFn(request). This is useful for example if you'd like to skip a middleware handler if -// a request does not satisfied the maybeFn logic. +// a request does not satisfy the maybeFn logic. func Maybe(mw func(http.Handler) http.Handler, maybeFn func(r *http.Request) bool) func(http.Handler) http.Handler { return func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { diff --git a/vendor/github.com/go-chi/chi/v5/mux.go b/vendor/github.com/go-chi/chi/v5/mux.go index 735ab23239..6dc1904d9b 100644 --- a/vendor/github.com/go-chi/chi/v5/mux.go +++ b/vendor/github.com/go-chi/chi/v5/mux.go @@ -107,12 +107,24 @@ func (mx *Mux) Use(middlewares ...func(http.Handler) http.Handler) { // Handle adds the route `pattern` that matches any http method to // execute the `handler` http.Handler. func (mx *Mux) Handle(pattern string, handler http.Handler) { + parts := strings.SplitN(pattern, " ", 2) + if len(parts) == 2 { + mx.Method(parts[0], parts[1], handler) + return + } + mx.handle(mALL, pattern, handler) } // HandleFunc adds the route `pattern` that matches any http method to // execute the `handlerFn` http.HandlerFunc. func (mx *Mux) HandleFunc(pattern string, handlerFn http.HandlerFunc) { + parts := strings.SplitN(pattern, " ", 2) + if len(parts) == 2 { + mx.Method(parts[0], parts[1], handlerFn) + return + } + mx.handle(mALL, pattern, handlerFn) } @@ -440,6 +452,10 @@ func (mx *Mux) routeHTTP(w http.ResponseWriter, r *http.Request) { // Find the route if _, _, h := mx.tree.FindRoute(rctx, method, routePath); h != nil { + if supportsPathValue { + setPathValue(rctx, r) + } + h.ServeHTTP(w, r) return } diff --git a/vendor/github.com/go-chi/chi/v5/path_value.go b/vendor/github.com/go-chi/chi/v5/path_value.go new file mode 100644 index 0000000000..7e78171e5c --- /dev/null +++ b/vendor/github.com/go-chi/chi/v5/path_value.go @@ -0,0 +1,20 @@ +//go:build go1.22 +// +build go1.22 + +package chi + +import "net/http" + +// supportsPathValue is true if the Go version is 1.22 and above. +// +// If this is true, `net/http.Request` has methods `SetPathValue` and `PathValue`. +const supportsPathValue = true + +// setPathValue sets the path values in the Request value +// based on the provided request context. +func setPathValue(rctx *Context, r *http.Request) { + for i, key := range rctx.URLParams.Keys { + value := rctx.URLParams.Values[i] + r.SetPathValue(key, value) + } +} diff --git a/vendor/github.com/go-chi/chi/v5/path_value_fallback.go b/vendor/github.com/go-chi/chi/v5/path_value_fallback.go new file mode 100644 index 0000000000..f551781a43 --- /dev/null +++ b/vendor/github.com/go-chi/chi/v5/path_value_fallback.go @@ -0,0 +1,19 @@ +//go:build !go1.22 +// +build !go1.22 + +package chi + +import "net/http" + +// supportsPathValue is true if the Go version is 1.22 and above. +// +// If this is true, `net/http.Request` has methods `SetPathValue` and `PathValue`. +const supportsPathValue = false + +// setPathValue sets the path values in the Request value +// based on the provided request context. +// +// setPathValue is only supported in Go 1.22 and above so +// this is just a blank function so that it compiles. +func setPathValue(rctx *Context, r *http.Request) { +} diff --git a/vendor/modules.txt b/vendor/modules.txt index ad0d1abe41..0de7198da2 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -814,7 +814,7 @@ github.com/go-acme/lego/v4/challenge # github.com/go-asn1-ber/asn1-ber v1.5.5 ## explicit; go 1.13 github.com/go-asn1-ber/asn1-ber -# github.com/go-chi/chi/v5 v5.0.11 +# github.com/go-chi/chi/v5 v5.0.12 ## explicit; go 1.14 github.com/go-chi/chi/v5 github.com/go-chi/chi/v5/middleware From d2d4fcd43b705369fe5afa805545806fed692789 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 06:49:05 +0000 Subject: [PATCH 38/56] build(deps): bump github.com/libregraph/lico from 0.61.1 to 0.61.2 Bumps [github.com/libregraph/lico](https://github.com/libregraph/lico) from 0.61.1 to 0.61.2. - [Changelog](https://github.com/libregraph/lico/blob/master/CHANGELOG.md) - [Commits](https://github.com/libregraph/lico/compare/v0.61.1...v0.61.2) --- updated-dependencies: - dependency-name: github.com/libregraph/lico dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/libregraph/lico/CHANGELOG.md | 8 ++++++++ vendor/github.com/libregraph/lico/identifier/package.json | 2 +- vendor/github.com/libregraph/lico/oidc/provider/html.go | 2 +- vendor/modules.txt | 2 +- 6 files changed, 14 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 81cbda3efe..770627e281 100644 --- a/go.mod +++ b/go.mod @@ -56,7 +56,7 @@ require ( github.com/justinas/alice v1.2.0 github.com/leonelquinteros/gotext v1.5.3-0.20230317130943-71a59c05b2c1 github.com/libregraph/idm v0.4.1-0.20231213140724-56a222fb4215 - github.com/libregraph/lico v0.61.1 + github.com/libregraph/lico v0.61.2 github.com/mitchellh/mapstructure v1.5.0 github.com/mna/pigeon v1.2.1 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 diff --git a/go.sum b/go.sum index 4e24f6a4ca..12c6daa1b7 100644 --- a/go.sum +++ b/go.sum @@ -1623,8 +1623,8 @@ github.com/leonelquinteros/gotext v1.5.3-0.20230317130943-71a59c05b2c1 h1:k56sFO github.com/leonelquinteros/gotext v1.5.3-0.20230317130943-71a59c05b2c1/go.mod h1:AT4NpQrOmyj1L/+hLja6aR0lk81yYYL4ePnj2kp7d6M= github.com/libregraph/idm v0.4.1-0.20231213140724-56a222fb4215 h1:Yw/I6l/0S/zDq2Hnibvwy8cVLpMaBwDe0aUSv/FNU6U= github.com/libregraph/idm v0.4.1-0.20231213140724-56a222fb4215/go.mod h1:h/B7mB5OqrsrobydErMGewHxonYDKjGOaJsFabXyRo8= -github.com/libregraph/lico v0.61.1 h1:md5z939Fq3pUuRWNA0M2y8F7xel+XWgp9vCXwMih8mQ= -github.com/libregraph/lico v0.61.1/go.mod h1:pnRet4pexWmy6rAB2fLAlEU885ShDIJhbjbuekDSlMU= +github.com/libregraph/lico v0.61.2 h1:sU8eQ2E9Uq5wnTkD33YX5+gRj59MkPLgDVoB72L1q8w= +github.com/libregraph/lico v0.61.2/go.mod h1:TgZGBAYzVRQSRdBC8PgGQKjYhtXuTr6UCM3ZZyGTleQ= github.com/libregraph/oidc-go v1.0.0 h1:l2tE/EwLyLXVy0B5BuVKgIFX9pNpz/5J3x5IBw0KEhc= github.com/libregraph/oidc-go v1.0.0/go.mod h1:7TRHrY/H1Vg6JqFjV0oAe1+kN+mGFBqXYvclSyvhRyc= github.com/linode/linodego v0.25.3/go.mod h1:GSBKPpjoQfxEfryoCRcgkuUOCuVtGHWhzI8OMdycNTE= diff --git a/vendor/github.com/libregraph/lico/CHANGELOG.md b/vendor/github.com/libregraph/lico/CHANGELOG.md index f789281e7d..ba0848f1ab 100644 --- a/vendor/github.com/libregraph/lico/CHANGELOG.md +++ b/vendor/github.com/libregraph/lico/CHANGELOG.md @@ -4,6 +4,14 @@ +## v0.61.2 (2024-02-19) + +- Limit oidc check session iframe postMessage hook scope +- Bump vite from 4.5.0 to 4.5.2 in /identifier +- Bump follow-redirects from 1.14.8 to 1.15.4 in /identifier +- Bump golang.org/x/crypto from 0.14.0 to 0.17.0 + + ## v0.61.1 (2023-11-22) - Fix branding settings cache usage diff --git a/vendor/github.com/libregraph/lico/identifier/package.json b/vendor/github.com/libregraph/lico/identifier/package.json index ff868e7496..8ad257719b 100644 --- a/vendor/github.com/libregraph/lico/identifier/package.json +++ b/vendor/github.com/libregraph/lico/identifier/package.json @@ -61,7 +61,7 @@ "jsdom": "^22.1.0", "source-map-explorer": "^1.8.0", "typescript": "^5.2.2", - "vite": "^4.5.0", + "vite": "^4.5.2", "vite-plugin-checker": "^0.6.2", "vite-plugin-eslint": "^1.8.1", "vitest": "^0.34.6" diff --git a/vendor/github.com/libregraph/lico/oidc/provider/html.go b/vendor/github.com/libregraph/lico/oidc/provider/html.go index 56a2d2298b..a65441ef36 100644 --- a/vendor/github.com/libregraph/lico/oidc/provider/html.go +++ b/vendor/github.com/libregraph/lico/oidc/provider/html.go @@ -188,7 +188,7 @@ c.u(b.B());c.u(n.substr(0,64-(d.f[1]+8&63)));c.c(d.f[0]<<3|d.f[0]>>>28);c.c(d.f[ window.addEventListener('message', function(event) { // Only do something when receiving a message from our parent or // from another window which shares our parent. - if (window.parent === event.source || window.parent === event.source.parent) { + if (window.parent === event.source || (window !== event.source && window.parent === event.source.parent)) { var response = receiveMessage(event.origin, event.data); event.source.postMessage(response, event.origin); } diff --git a/vendor/modules.txt b/vendor/modules.txt index 0de7198da2..1de4b96845 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1269,7 +1269,7 @@ github.com/libregraph/idm/server github.com/libregraph/idm/server/handler github.com/libregraph/idm/server/handler/boltdb github.com/libregraph/idm/server/handler/ldif -# github.com/libregraph/lico v0.61.1 +# github.com/libregraph/lico v0.61.2 ## explicit; go 1.18 github.com/libregraph/lico github.com/libregraph/lico/bootstrap From c92ebf4b467df260867f757add74a9db33915ce8 Mon Sep 17 00:00:00 2001 From: Amrita <54478846+amrita-shrestha@users.noreply.github.com> Date: Wed, 21 Feb 2024 14:54:40 +0545 Subject: [PATCH 39/56] [full-ci][tests-only]add tests coverage for removing expiration date from shares (#8490) * add tests coverage for removing expiration date from share link * add coverage for folder --- .../features/apiSharingNg/linkShare.feature | 71 +++++++++++++++++ .../updateShareInvitations.feature | 76 ++++++++++++++++++- .../features/bootstrap/SharingNgContext.php | 10 +-- 3 files changed, 151 insertions(+), 6 deletions(-) diff --git a/tests/acceptance/features/apiSharingNg/linkShare.feature b/tests/acceptance/features/apiSharingNg/linkShare.feature index 23a419d97d..252b0a9b8d 100644 --- a/tests/acceptance/features/apiSharingNg/linkShare.feature +++ b/tests/acceptance/features/apiSharingNg/linkShare.feature @@ -518,6 +518,77 @@ Feature: Create a share link for a resource } """ + @issues-8405 + Scenario Outline: remove expiration date of a resource link share + Given user "Alice" has uploaded file with content "other data" to "textfile1.txt" + And user "Alice" has created folder "folder" + And user "Alice" has created the following link share: + | resource | | + | space | Personal | + | permissionsRole | view | + | password | %public% | + | expirationDateTime | 2200-07-15T14:00:00.000Z | + When user "Alice" updates the last public link share using the Graph API with + | resource | | + | space | Personal | + | expirationDateTime | | + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": [ + "hasPassword", + "id", + "link" + ], + "properties": { + "hasPassword": { + "type": "boolean", + "enum": [true] + }, + "id": { + "type": "string", + "pattern": "^[a-zA-Z]{15}$" + }, + "link": { + "type": "object", + "minItems": 5, + "maxItems": 5, + "required": [ + "@libre.graph.displayName", + "@libre.graph.quickLink", + "preventsDownload", + "type", + "webUrl" + ], + "properties": { + "@libre.graph.quickLink": { + "type": "boolean", + "enum": [false] + }, + "preventsDownload": { + "type": "boolean", + "enum": [false] + }, + "type": { + "type": "string", + "enum": ["view"] + }, + "webUrl": { + "type": "string", + "pattern": "^%base_url%\/s\/[a-zA-Z]{15}$" + } + } + } + } + } + """ + Examples: + | path | + | textfile1.txt | + | folder | + @env-config Scenario: set password on a file's link share Given the following configs have been set: diff --git a/tests/acceptance/features/apiSharingNg/updateShareInvitations.feature b/tests/acceptance/features/apiSharingNg/updateShareInvitations.feature index 0ba82e457d..f98612bed5 100644 --- a/tests/acceptance/features/apiSharingNg/updateShareInvitations.feature +++ b/tests/acceptance/features/apiSharingNg/updateShareInvitations.feature @@ -83,6 +83,80 @@ Feature: Update permission of a share """ + Scenario Outline: user removes expiration date of a share + Given user "Alice" has uploaded file with content "hello world" to "testfile.txt" + And user "Alice" has created folder "folder" + And user "Alice" has sent the following share invitation: + | resource | | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + | expirationDateTime | 2025-07-15T14:00:00Z | + When user "Alice" updates the last share with the following using the Graph API: + | space | Personal | + | resource | | + | expirationDateTime | | + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "minItems": 3, + "maxItems": 3, + "required": [ + "grantedToV2", + "id", + "roles" + ], + "properties": { + "grantedToV2": { + "type": "object", + "required": [ + "user" + ], + "properties":{ + "user": { + "type": "object", + "required": [ + "displayName", + "id" + ], + "properties": { + "displayName": { + "type": "string", + "enum": ["Brian Murphy"] + }, + "id": { + "type": "string", + "pattern": "^%user_id_pattern%$" + } + } + } + } + }, + "id": { + "type": "string", + "pattern": "^%permissions_id_pattern%$" + }, + "roles": { + "type": "array", + "items": [ + { + "type": "string", + "pattern": "^%role_id_pattern%$" + } + ] + } + } + } + """ + Examples: + | path | + | testfile.txt | + | folder | + + Scenario Outline: user updates role of a share Given user "Alice" has uploaded file with content "to share" to "/textfile1.txt" And user "Alice" has created folder "FolderToShare" @@ -157,4 +231,4 @@ Feature: Update permission of a share | Editor | FolderToShare | Viewer | | Editor | FolderToShare | Uploader | | Uploader | FolderToShare | Editor | - | Uploader | FolderToShare | Viewer | \ No newline at end of file + | Uploader | FolderToShare | Viewer | diff --git a/tests/acceptance/features/bootstrap/SharingNgContext.php b/tests/acceptance/features/bootstrap/SharingNgContext.php index 4c6453ea1d..bd33bc4167 100644 --- a/tests/acceptance/features/bootstrap/SharingNgContext.php +++ b/tests/acceptance/features/bootstrap/SharingNgContext.php @@ -262,11 +262,11 @@ class SharingNgContext implements Context { $body = []; if (\array_key_exists('permissionsRole', $bodyRows)) { - $body["roles"] = [GraphHelper::getPermissionsRoleIdByName($bodyRows['permissionsRole'])]; + $body['roles'] = [GraphHelper::getPermissionsRoleIdByName($bodyRows['permissionsRole'])]; } if (\array_key_exists('expirationDateTime', $bodyRows)) { - $body["expirationDateTime"] = $bodyRows['expirationDateTime']; + $body['expirationDateTime'] = empty($bodyRows['expirationDateTime']) ? null : $bodyRows['expirationDateTime']; } return GraphHelper::updateShare( @@ -357,16 +357,16 @@ class SharingNgContext implements Context { $bodyRows = $body->getRowsHash(); $space = $bodyRows['space']; $resource = $bodyRows['resource']; - $spaceId = ($this->spacesContext->getSpaceByName($user, $space))["id"]; + $spaceId = ($this->spacesContext->getSpaceByName($user, $space))['id']; $itemId = $this->spacesContext->getResourceId($user, $space, $resource); $body = []; if (\array_key_exists('permissionsRole', $bodyRows)) { - $body["link"]["type"] = $bodyRows['permissionsRole']; + $body['link']['type'] = $bodyRows['permissionsRole']; } if (\array_key_exists('expirationDateTime', $bodyRows)) { - $body["expirationDateTime"] = $bodyRows['expirationDateTime']; + $body['expirationDateTime'] = empty($bodyRows['expirationDateTime']) ? null : $bodyRows['expirationDateTime']; } return GraphHelper::updateShare( From 5ed57cc09a28dd43784f4f2f53500d91b0bdfb46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Wed, 21 Feb 2024 10:20:36 +0100 Subject: [PATCH 40/56] Bump reva deps (#8412) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * bump dependencies Signed-off-by: Jörn Friedrich Dreyer * bump reva and add config options Signed-off-by: Jörn Friedrich Dreyer --------- Signed-off-by: Jörn Friedrich Dreyer --- go.mod | 53 +- go.sum | 127 +- ocis-pkg/service/grpc/client.go | 3 +- services/sharing/pkg/config/config.go | 2 + .../pkg/config/defaults/defaultconfig.go | 1 + services/sharing/pkg/revaconfig/config.go | 1 + services/storage-users/pkg/config/config.go | 33 +- .../pkg/config/defaults/defaultconfig.go | 46 + .../storage-users/pkg/revaconfig/config.go | 28 + .../storage-users/pkg/revaconfig/drivers.go | 6 + .../expected-failures-API-on-OCIS-storage.md | 22 - .../asaskevich/govalidator/validator.go | 39 +- vendor/github.com/beevik/etree/CONTRIBUTORS | 1 + vendor/github.com/beevik/etree/README.md | 1 + .../github.com/beevik/etree/RELEASE_NOTES.md | 9 + vendor/github.com/beevik/etree/etree.go | 30 +- vendor/github.com/beevik/etree/helpers.go | 8 +- vendor/github.com/beevik/etree/path.go | 65 +- vendor/github.com/coreos/go-oidc/.gitignore | 2 - vendor/github.com/coreos/go-oidc/.travis.yml | 16 - .../github.com/coreos/go-oidc/CONTRIBUTING.md | 71 - vendor/github.com/coreos/go-oidc/DCO | 36 - vendor/github.com/coreos/go-oidc/LICENSE | 202 - vendor/github.com/coreos/go-oidc/MAINTAINERS | 3 - vendor/github.com/coreos/go-oidc/NOTICE | 5 - vendor/github.com/coreos/go-oidc/README.md | 72 - .../coreos/go-oidc/code-of-conduct.md | 61 - vendor/github.com/coreos/go-oidc/jose.go | 20 - vendor/github.com/coreos/go-oidc/jwks.go | 228 - vendor/github.com/coreos/go-oidc/oidc.go | 409 - vendor/github.com/coreos/go-oidc/test | 16 - vendor/github.com/coreos/go-oidc/verify.go | 336 - .../interceptors/eventsmiddleware/events.go | 10 +- .../usershareprovider/usershareprovider.go | 26 +- .../http/services/datagateway/datagateway.go | 220 +- .../handlers/apps/sharing/shares/shares.go | 2 +- .../reva/v2/pkg/auth/manager/oidc/oidc.go | 2 +- .../cs3org/reva/v2/pkg/micro/ocdav/option.go | 34 +- .../cs3org/reva/v2/pkg/micro/ocdav/service.go | 5 +- .../cs3org/reva/v2/pkg/rgrpc/rgrpc.go | 11 +- .../reva/v2/pkg/rgrpc/todo/pool/connection.go | 12 +- .../v2/pkg/rhttp/datatx/manager/tus/tus.go | 37 +- .../jsoncs3/providercache/providercache.go | 10 +- .../receivedsharecache/receivedsharecache.go | 9 +- .../manager/jsoncs3/sharecache/sharecache.go | 7 + .../storage/fs/s3ng/blobstore/blobstore.go | 28 +- .../reva/v2/pkg/storage/fs/s3ng/option.go | 29 + .../reva/v2/pkg/storage/fs/s3ng/s3ng.go | 11 +- .../reva/v2/pkg/storage/utils/metadata/cs3.go | 4 +- .../cs3org/reva/v2/pkg/trace/context.go | 3 +- .../cs3org/reva/v2/pkg/trace/options.go | 9 + .../cs3org/reva/v2/pkg/trace/trace.go | 104 +- vendor/github.com/emvi/iso-639-1/CHANGELOG.md | 5 + vendor/github.com/emvi/iso-639-1/list.go | 116 +- vendor/github.com/go-sql-driver/mysql/AUTHORS | 9 + .../go-sql-driver/mysql/CHANGELOG.md | 34 + .../github.com/go-sql-driver/mysql/README.md | 21 +- .../go-sql-driver/mysql/atomic_bool.go | 19 + .../go-sql-driver/mysql/atomic_bool_go118.go | 47 + vendor/github.com/go-sql-driver/mysql/auth.go | 56 +- .../go-sql-driver/mysql/collations.go | 3 +- .../go-sql-driver/mysql/conncheck.go | 1 + .../go-sql-driver/mysql/conncheck_dummy.go | 1 + .../go-sql-driver/mysql/connection.go | 26 +- .../github.com/go-sql-driver/mysql/const.go | 2 +- .../github.com/go-sql-driver/mysql/driver.go | 6 +- vendor/github.com/go-sql-driver/mysql/dsn.go | 73 +- .../github.com/go-sql-driver/mysql/errors.go | 18 +- .../github.com/go-sql-driver/mysql/fields.go | 14 +- vendor/github.com/go-sql-driver/mysql/fuzz.go | 1 + .../github.com/go-sql-driver/mysql/infile.go | 32 +- .../go-sql-driver/mysql/nulltime.go | 21 + .../go-sql-driver/mysql/nulltime_go113.go | 40 - .../go-sql-driver/mysql/nulltime_legacy.go | 39 - .../github.com/go-sql-driver/mysql/packets.go | 90 +- .../go-sql-driver/mysql/statement.go | 8 +- .../go-sql-driver/mysql/transaction.go | 4 +- .../github.com/go-sql-driver/mysql/utils.go | 122 +- vendor/github.com/hashicorp/go-hclog/LICENSE | 4 +- .../github.com/hashicorp/go-hclog/README.md | 5 +- .../hashicorp/go-hclog/colorize_unix.go | 35 +- .../hashicorp/go-hclog/colorize_windows.go | 41 +- .../github.com/hashicorp/go-hclog/context.go | 3 + .../github.com/hashicorp/go-hclog/exclude.go | 3 + .../github.com/hashicorp/go-hclog/global.go | 3 + .../hashicorp/go-hclog/interceptlogger.go | 3 + .../hashicorp/go-hclog/intlogger.go | 148 +- .../github.com/hashicorp/go-hclog/logger.go | 39 + .../hashicorp/go-hclog/nulllogger.go | 5 + .../github.com/hashicorp/go-hclog/stdlog.go | 3 + .../github.com/hashicorp/go-hclog/writer.go | 3 + .../hashicorp/go-plugin/CHANGELOG.md | 87 +- vendor/github.com/hashicorp/go-plugin/LICENSE | 2 + .../github.com/hashicorp/go-plugin/README.md | 5 +- .../hashicorp/go-plugin/buf.gen.yaml | 14 + .../github.com/hashicorp/go-plugin/buf.yaml | 7 + .../github.com/hashicorp/go-plugin/client.go | 390 +- .../hashicorp/go-plugin/constants.go | 16 + .../hashicorp/go-plugin/discover.go | 3 + .../github.com/hashicorp/go-plugin/error.go | 3 + .../hashicorp/go-plugin/grpc_broker.go | 247 +- .../hashicorp/go-plugin/grpc_client.go | 12 +- .../hashicorp/go-plugin/grpc_controller.go | 3 + .../hashicorp/go-plugin/grpc_server.go | 24 +- .../hashicorp/go-plugin/grpc_stdio.go | 3 + .../internal/cmdrunner/addr_translator.go | 16 + .../internal/cmdrunner/cmd_reattach.go | 63 + .../internal/cmdrunner/cmd_runner.go | 129 + .../internal/cmdrunner/notes_unix.go | 70 + .../internal/cmdrunner/notes_windows.go | 46 + .../go-plugin/internal/cmdrunner/process.go | 25 + .../{ => internal/cmdrunner}/process_posix.go | 5 +- .../cmdrunner}/process_windows.go | 5 +- .../grpcmux/blocked_client_listener.go | 51 + .../grpcmux/blocked_server_listener.go | 49 + .../internal/grpcmux/grpc_client_muxer.go | 105 + .../go-plugin/internal/grpcmux/grpc_muxer.go | 41 + .../internal/grpcmux/grpc_server_muxer.go | 190 + .../go-plugin/internal/plugin/gen.go | 3 - .../internal/plugin/grpc_broker.pb.go | 383 +- .../internal/plugin/grpc_broker.proto | 11 +- .../internal/plugin/grpc_broker_grpc.pb.go | 142 + .../internal/plugin/grpc_controller.pb.go | 234 +- .../internal/plugin/grpc_controller.proto | 5 +- .../plugin/grpc_controller_grpc.pb.go | 110 + .../internal/plugin/grpc_stdio.pb.go | 358 +- .../internal/plugin/grpc_stdio.proto | 5 +- .../internal/plugin/grpc_stdio_grpc.pb.go | 148 + .../hashicorp/go-plugin/log_entry.go | 3 + vendor/github.com/hashicorp/go-plugin/mtls.go | 3 + .../hashicorp/go-plugin/mux_broker.go | 3 + .../github.com/hashicorp/go-plugin/plugin.go | 3 + .../github.com/hashicorp/go-plugin/process.go | 26 +- .../hashicorp/go-plugin/protocol.go | 3 + .../hashicorp/go-plugin/rpc_client.go | 3 + .../hashicorp/go-plugin/rpc_server.go | 16 +- .../hashicorp/go-plugin/runner/runner.go | 72 + .../github.com/hashicorp/go-plugin/server.go | 104 +- .../hashicorp/go-plugin/server_mux.go | 3 + .../github.com/hashicorp/go-plugin/stream.go | 3 + .../github.com/hashicorp/go-plugin/testing.go | 59 +- vendor/github.com/hashicorp/yamux/session.go | 108 +- vendor/github.com/hashicorp/yamux/stream.go | 27 +- vendor/github.com/huandu/xstrings/.travis.yml | 7 - vendor/github.com/huandu/xstrings/README.md | 170 +- vendor/github.com/huandu/xstrings/convert.go | 75 +- vendor/github.com/huandu/xstrings/format.go | 28 +- .../github.com/huandu/xstrings/manipulate.go | 12 +- .../huandu/xstrings/stringbuilder.go | 3 +- .../huandu/xstrings/stringbuilder_go110.go | 3 +- .../github.com/huandu/xstrings/translate.go | 52 +- .../github.com/iancoleman/strcase/acronyms.go | 11 +- vendor/github.com/iancoleman/strcase/camel.go | 11 +- .../github.com/klauspost/cpuid/v2/README.md | 253 +- vendor/github.com/klauspost/cpuid/v2/cpuid.go | 287 +- .../klauspost/cpuid/v2/detect_x86.go | 3 +- .../klauspost/cpuid/v2/featureid_string.go | 374 +- .../klauspost/cpuid/v2/os_darwin_arm64.go | 2 +- .../github.com/mattn/go-sqlite3/callback.go | 16 +- vendor/github.com/mattn/go-sqlite3/convert.go | 10 +- vendor/github.com/mattn/go-sqlite3/doc.go | 99 +- .../mattn/go-sqlite3/sqlite3-binding.c | 8317 +++++++++++------ .../mattn/go-sqlite3/sqlite3-binding.h | 152 +- vendor/github.com/mattn/go-sqlite3/sqlite3.go | 182 +- .../mattn/go-sqlite3/sqlite3_func_crypt.go | 24 +- .../mattn/go-sqlite3/sqlite3_go18.go | 4 +- .../mattn/go-sqlite3/sqlite3_libsqlite3.go | 1 + .../go-sqlite3/sqlite3_load_extension.go | 1 + .../go-sqlite3/sqlite3_load_extension_omit.go | 1 + .../sqlite3_opt_allow_uri_authority.go | 1 + .../mattn/go-sqlite3/sqlite3_opt_app_armor.go | 4 +- .../go-sqlite3/sqlite3_opt_column_metadata.go | 1 + .../go-sqlite3/sqlite3_opt_foreign_keys.go | 1 + .../mattn/go-sqlite3/sqlite3_opt_fts5.go | 1 + .../mattn/go-sqlite3/sqlite3_opt_icu.go | 1 + .../go-sqlite3/sqlite3_opt_introspect.go | 1 + .../go-sqlite3/sqlite3_opt_math_functions.go | 1 + .../mattn/go-sqlite3/sqlite3_opt_preupdate.go | 1 + .../go-sqlite3/sqlite3_opt_preupdate_hook.go | 9 +- .../go-sqlite3/sqlite3_opt_preupdate_omit.go | 1 + .../go-sqlite3/sqlite3_opt_secure_delete.go | 1 + .../sqlite3_opt_secure_delete_fast.go | 1 + .../mattn/go-sqlite3/sqlite3_opt_serialize.go | 1 + .../go-sqlite3/sqlite3_opt_serialize_omit.go | 1 + .../mattn/go-sqlite3/sqlite3_opt_stat4.go | 1 + .../go-sqlite3/sqlite3_opt_unlock_notify.go | 4 +- .../mattn/go-sqlite3/sqlite3_opt_userauth.go | 36 +- .../go-sqlite3/sqlite3_opt_userauth_omit.go | 36 +- .../go-sqlite3/sqlite3_opt_vacuum_full.go | 1 + .../go-sqlite3/sqlite3_opt_vacuum_incr.go | 1 + .../mattn/go-sqlite3/sqlite3_opt_vtable.go | 13 +- .../mattn/go-sqlite3/sqlite3_other.go | 1 + .../mattn/go-sqlite3/sqlite3_solaris.go | 1 + .../mattn/go-sqlite3/sqlite3_trace.go | 1 + .../mattn/go-sqlite3/sqlite3_type.go | 2 +- .../go-sqlite3/sqlite3_usleep_windows.go | 1 + .../mattn/go-sqlite3/sqlite3_windows.go | 1 + .../mattn/go-sqlite3/static_mock.go | 5 +- .../github.com/mileusna/useragent/.gitignore | 3 + .../github.com/mileusna/useragent/README.md | 4 +- vendor/github.com/mileusna/useragent/is.go | 6 + vendor/github.com/mileusna/useragent/ua.go | 234 +- .../github.com/mileusna/useragent/version.go | 65 + .../github.com/minio/minio-go/v7/.gitignore | 3 +- vendor/github.com/minio/minio-go/v7/Makefile | 6 +- vendor/github.com/minio/minio-go/v7/README.md | 120 +- .../minio/minio-go/v7/README_zh_CN.md | 260 - .../minio/minio-go/v7/api-bucket-lifecycle.go | 42 +- .../minio-go/v7/api-bucket-notification.go | 7 + .../minio/minio-go/v7/api-bucket-policy.go | 4 +- .../minio-go/v7/api-bucket-replication.go | 70 +- .../minio/minio-go/v7/api-bucket-tagging.go | 3 +- .../minio/minio-go/v7/api-compose-object.go | 12 +- .../minio/minio-go/v7/api-copy-object.go | 3 +- .../minio/minio-go/v7/api-datatypes.go | 79 +- .../minio/minio-go/v7/api-error-response.go | 33 +- .../minio/minio-go/v7/api-get-object.go | 25 +- .../minio/minio-go/v7/api-get-options.go | 57 +- .../github.com/minio/minio-go/v7/api-list.go | 78 +- .../minio/minio-go/v7/api-object-tagging.go | 38 +- .../minio/minio-go/v7/api-presigned.go | 12 +- .../minio/minio-go/v7/api-put-bucket.go | 2 +- .../minio-go/v7/api-put-object-common.go | 2 +- .../minio-go/v7/api-put-object-fan-out.go | 164 + .../minio-go/v7/api-put-object-multipart.go | 21 +- .../minio-go/v7/api-put-object-streaming.go | 234 +- .../minio/minio-go/v7/api-put-object.go | 63 +- .../minio-go/v7/api-putobject-snowball.go | 35 +- .../minio/minio-go/v7/api-remove.go | 16 +- .../minio/minio-go/v7/api-s3-datatypes.go | 17 +- .../minio/minio-go/v7/api-select.go | 32 +- .../github.com/minio/minio-go/v7/api-stat.go | 13 +- vendor/github.com/minio/minio-go/v7/api.go | 74 +- .../minio/minio-go/v7/bucket-cache.go | 11 +- .../github.com/minio/minio-go/v7/checksum.go | 210 + .../github.com/minio/minio-go/v7/constants.go | 4 + vendor/github.com/minio/minio-go/v7/core.go | 27 +- .../minio/minio-go/v7/functional_tests.go | 761 +- .../v7/pkg/credentials/assume_role.go | 15 +- .../v7/pkg/credentials/credentials.json | 7 + .../v7/pkg/credentials/credentials.sample | 3 + .../v7/pkg/credentials/error_response.go | 3 +- .../pkg/credentials/file_aws_credentials.go | 50 +- .../v7/pkg/credentials/file_minio_client.go | 11 +- .../minio-go/v7/pkg/credentials/iam_aws.go | 120 +- .../v7/pkg/credentials/sts_client_grants.go | 4 +- .../v7/pkg/credentials/sts_ldap_identity.go | 4 +- .../v7/pkg/credentials/sts_tls_identity.go | 6 +- .../v7/pkg/credentials/sts_web_identity.go | 4 +- .../minio-go/v7/pkg/encrypt/server-side.go | 56 +- .../minio-go/v7/pkg/lifecycle/lifecycle.go | 75 +- .../v7/pkg/notification/notification.go | 70 +- .../v7/pkg/replication/replication.go | 255 +- .../minio/minio-go/v7/pkg/s3utils/utils.go | 75 +- ...st-signature-streaming-unsigned-trailer.go | 3 +- .../pkg/signer/request-signature-streaming.go | 40 +- .../v7/pkg/signer/request-signature-v4.go | 2 +- .../minio/minio-go/v7/pkg/signer/utils.go | 2 +- .../minio/minio-go/v7/pkg/tags/tags.go | 9 + .../minio/minio-go/v7/post-policy.go | 45 +- .../minio/minio-go/v7/retry-continous.go | 2 +- vendor/github.com/minio/minio-go/v7/retry.go | 2 +- .../minio/minio-go/v7/s3-endpoints.go | 6 + .../github.com/minio/minio-go/v7/transport.go | 3 +- vendor/github.com/minio/minio-go/v7/utils.go | 30 +- .../minio/sha256-simd/cpuid_other.go | 6 +- vendor/github.com/minio/sha256-simd/sha256.go | 131 +- .../sha256-simd/sha256blockAvx512_amd64.go | 3 +- .../sha256-simd/sha256blockAvx512_amd64.s | 2 +- .../minio/sha256-simd/sha256blockSha_amd64.go | 6 - .../minio/sha256-simd/sha256block_amd64.go | 14 +- ...56blockSha_amd64.s => sha256block_amd64.s} | 4 +- .../minio/sha256-simd/sha256block_arm64.go | 13 +- .../minio/sha256-simd/sha256block_arm64.s | 4 +- .../minio/sha256-simd/sha256block_other.go | 11 +- .../alertmanager/asset/assets_vfsdata.go | 12 +- .../alertmanager/template/default.tmpl | 22 + .../alertmanager/template/email.html | 2 +- .../alertmanager/template/email.tmpl | 2 +- .../alertmanager/template/template.go | 114 +- vendor/go-micro.dev/v4/.gitignore | 5 + vendor/go-micro.dev/v4/.golangci.yaml | 251 + vendor/go-micro.dev/v4/.richstyle.yaml | 29 + vendor/go-micro.dev/v4/README.md | 52 +- vendor/go-micro.dev/v4/api/api.go | 34 +- vendor/go-micro.dev/v4/api/default.go | 7 +- vendor/go-micro.dev/v4/api/handler/handler.go | 2 +- vendor/go-micro.dev/v4/api/handler/options.go | 20 +- vendor/go-micro.dev/v4/api/handler/rpc/rpc.go | 138 +- .../go-micro.dev/v4/api/handler/rpc/stream.go | 58 +- vendor/go-micro.dev/v4/api/options.go | 14 +- .../go-micro.dev/v4/api/resolver/options.go | 6 +- .../go-micro.dev/v4/api/resolver/resolver.go | 10 +- .../v4/api/resolver/vpath/vpath.go | 5 +- vendor/go-micro.dev/v4/api/router/endpoint.go | 6 +- vendor/go-micro.dev/v4/api/router/options.go | 7 +- .../v4/api/router/registry/registry.go | 83 +- vendor/go-micro.dev/v4/api/router/router.go | 4 +- .../v4/api/router/util/compile.go | 25 +- .../go-micro.dev/v4/api/router/util/parse.go | 48 +- .../v4/api/router/util/pattern.go | 12 +- .../v4/api/router/util/runtime.go | 17 +- .../go-micro.dev/v4/api/router/util/types.go | 8 +- .../go-micro.dev/v4/api/server/acme/acme.go | 6 +- .../v4/api/server/acme/options.go | 29 +- .../go-micro.dev/v4/api/server/cors/cors.go | 8 +- .../go-micro.dev/v4/api/server/http/http.go | 10 +- vendor/go-micro.dev/v4/api/server/options.go | 21 +- vendor/go-micro.dev/v4/api/server/server.go | 2 +- vendor/go-micro.dev/v4/auth/auth.go | 54 +- vendor/go-micro.dev/v4/auth/noop.go | 18 +- vendor/go-micro.dev/v4/auth/options.go | 44 +- vendor/go-micro.dev/v4/auth/rules.go | 2 +- vendor/go-micro.dev/v4/broker/broker.go | 9 +- vendor/go-micro.dev/v4/broker/http.go | 44 +- vendor/go-micro.dev/v4/broker/memory.go | 16 +- vendor/go-micro.dev/v4/broker/options.go | 48 +- vendor/go-micro.dev/v4/cache/memory.go | 2 +- vendor/go-micro.dev/v4/cache/options.go | 14 +- vendor/go-micro.dev/v4/client/cache.go | 18 +- vendor/go-micro.dev/v4/client/client.go | 56 +- vendor/go-micro.dev/v4/client/options.go | 196 +- vendor/go-micro.dev/v4/client/retry.go | 11 +- vendor/go-micro.dev/v4/client/rpc_client.go | 216 +- vendor/go-micro.dev/v4/client/rpc_codec.go | 81 +- vendor/go-micro.dev/v4/client/rpc_message.go | 2 +- vendor/go-micro.dev/v4/client/rpc_request.go | 6 +- vendor/go-micro.dev/v4/client/rpc_response.go | 4 +- vendor/go-micro.dev/v4/client/rpc_stream.go | 34 +- vendor/go-micro.dev/v4/client/wrapper.go | 8 +- vendor/go-micro.dev/v4/codec/bytes/bytes.go | 2 +- vendor/go-micro.dev/v4/codec/codec.go | 11 +- vendor/go-micro.dev/v4/codec/grpc/grpc.go | 7 +- .../go-micro.dev/v4/codec/json/marshaler.go | 2 +- .../go-micro.dev/v4/codec/jsonrpc/client.go | 12 +- .../go-micro.dev/v4/codec/jsonrpc/jsonrpc.go | 10 +- .../go-micro.dev/v4/codec/jsonrpc/server.go | 4 +- .../go-micro.dev/v4/codec/proto/marshaler.go | 2 +- .../v4/codec/protorpc/protorpc.go | 10 +- vendor/go-micro.dev/v4/config/README.md | 24 +- vendor/go-micro.dev/v4/config/config.go | 27 +- vendor/go-micro.dev/v4/config/default.go | 12 +- .../go-micro.dev/v4/config/loader/loader.go | 15 +- .../v4/config/loader/memory/memory.go | 45 +- .../v4/config/loader/memory/options.go | 4 +- vendor/go-micro.dev/v4/config/options.go | 6 +- .../v4/config/reader/json/json.go | 2 +- .../v4/config/reader/json/values.go | 2 +- .../go-micro.dev/v4/config/reader/reader.go | 6 +- .../v4/config/source/changeset.go | 2 +- .../v4/config/source/file/README.md | 31 +- .../v4/config/source/file/file.go | 2 +- .../v4/config/source/file/options.go | 4 +- .../v4/config/source/file/watcher.go | 34 +- .../v4/config/source/file/watcher_linux.go | 33 +- .../go-micro.dev/v4/config/source/options.go | 4 +- .../go-micro.dev/v4/config/source/source.go | 12 +- vendor/go-micro.dev/v4/debug/log/log.go | 18 +- vendor/go-micro.dev/v4/debug/log/options.go | 22 +- vendor/go-micro.dev/v4/debug/log/os.go | 14 +- .../v4/debug/profile/http/http.go | 6 +- .../v4/debug/profile/pprof/pprof.go | 8 +- .../go-micro.dev/v4/debug/profile/profile.go | 2 +- vendor/go-micro.dev/v4/debug/trace/default.go | 2 +- vendor/go-micro.dev/v4/debug/trace/noop.go | 21 + vendor/go-micro.dev/v4/debug/trace/options.go | 6 +- vendor/go-micro.dev/v4/debug/trace/trace.go | 69 +- vendor/go-micro.dev/v4/errors/errors.go | 10 +- vendor/go-micro.dev/v4/events/events.go | 38 +- vendor/go-micro.dev/v4/events/memory.go | 14 +- vendor/go-micro.dev/v4/events/options.go | 52 +- vendor/go-micro.dev/v4/events/store.go | 9 +- vendor/go-micro.dev/v4/logger/default.go | 18 +- vendor/go-micro.dev/v4/logger/level.go | 2 +- vendor/go-micro.dev/v4/logger/logger.go | 8 +- vendor/go-micro.dev/v4/logger/options.go | 20 +- vendor/go-micro.dev/v4/logo.png | Bin 37687 -> 8705 bytes vendor/go-micro.dev/v4/metadata/metadata.go | 14 +- vendor/go-micro.dev/v4/micro.go | 15 +- vendor/go-micro.dev/v4/options.go | 107 +- .../go-micro.dev/v4/registry/cache/README.md | 6 +- .../go-micro.dev/v4/registry/cache/cache.go | 35 +- .../go-micro.dev/v4/registry/cache/options.go | 4 +- .../go-micro.dev/v4/registry/mdns_registry.go | 30 +- vendor/go-micro.dev/v4/registry/memory.go | 8 +- .../v4/registry/memory_watcher.go | 2 +- vendor/go-micro.dev/v4/registry/options.go | 30 +- vendor/go-micro.dev/v4/registry/registry.go | 14 +- vendor/go-micro.dev/v4/registry/watcher.go | 24 +- vendor/go-micro.dev/v4/runtime/default.go | 43 +- .../v4/runtime/local/build/build.go | 14 +- .../v4/runtime/local/build/options.go | 2 +- .../go-micro.dev/v4/runtime/local/git/git.go | 10 +- .../v4/runtime/local/process/os/os.go | 1 - .../v4/runtime/local/process/process.go | 12 +- .../v4/runtime/local/source/options.go | 2 +- .../v4/runtime/local/source/source.go | 4 +- vendor/go-micro.dev/v4/runtime/options.go | 113 +- vendor/go-micro.dev/v4/runtime/runtime.go | 38 +- vendor/go-micro.dev/v4/runtime/service.go | 36 +- vendor/go-micro.dev/v4/selector/default.go | 18 +- vendor/go-micro.dev/v4/selector/options.go | 18 +- vendor/go-micro.dev/v4/selector/selector.go | 6 +- vendor/go-micro.dev/v4/selector/strategy.go | 4 +- vendor/go-micro.dev/v4/server/context.go | 3 +- vendor/go-micro.dev/v4/server/handler.go | 12 +- vendor/go-micro.dev/v4/server/options.go | 106 +- vendor/go-micro.dev/v4/server/rpc_codec.go | 82 +- vendor/go-micro.dev/v4/server/rpc_event.go | 5 +- vendor/go-micro.dev/v4/server/rpc_events.go | 143 + vendor/go-micro.dev/v4/server/rpc_handler.go | 18 +- vendor/go-micro.dev/v4/server/rpc_helper.go | 101 + vendor/go-micro.dev/v4/server/rpc_request.go | 14 +- vendor/go-micro.dev/v4/server/rpc_router.go | 81 +- vendor/go-micro.dev/v4/server/rpc_server.go | 1525 ++- vendor/go-micro.dev/v4/server/rpc_stream.go | 8 +- vendor/go-micro.dev/v4/server/rpc_util.go | 13 +- vendor/go-micro.dev/v4/server/server.go | 41 +- vendor/go-micro.dev/v4/server/subscriber.go | 8 +- vendor/go-micro.dev/v4/server/wrapper.go | 4 +- vendor/go-micro.dev/v4/service.go | 25 +- vendor/go-micro.dev/v4/store/memory.go | 6 +- vendor/go-micro.dev/v4/store/options.go | 73 +- vendor/go-micro.dev/v4/store/store.go | 12 +- vendor/go-micro.dev/v4/transport/context.go | 2 +- .../v4/transport/headers/headers.go | 33 + .../go-micro.dev/v4/transport/http_client.go | 204 + .../v4/transport/http_listener.go | 132 + .../go-micro.dev/v4/transport/http_proxy.go | 16 +- .../go-micro.dev/v4/transport/http_socket.go | 264 + .../v4/transport/http_transport.go | 600 +- vendor/go-micro.dev/v4/transport/memory.go | 88 +- vendor/go-micro.dev/v4/transport/options.go | 85 +- vendor/go-micro.dev/v4/transport/transport.go | 1 + vendor/go-micro.dev/v4/util/addr/addr.go | 149 +- vendor/go-micro.dev/v4/util/cmd/cmd.go | 2 +- vendor/go-micro.dev/v4/util/cmd/options.go | 68 +- vendor/go-micro.dev/v4/util/grpc/grpc.go | 4 +- vendor/go-micro.dev/v4/util/log/README.md | 17 - vendor/go-micro.dev/v4/util/log/log.go | 227 - vendor/go-micro.dev/v4/util/mdns/client.go | 56 +- vendor/go-micro.dev/v4/util/mdns/dns_sd.go | 4 +- vendor/go-micro.dev/v4/util/mdns/server.go | 41 +- vendor/go-micro.dev/v4/util/mdns/zone.go | 18 +- vendor/go-micro.dev/v4/util/net/net.go | 7 +- vendor/go-micro.dev/v4/util/pool/default.go | 47 +- vendor/go-micro.dev/v4/util/pool/pool.go | 7 +- vendor/go-micro.dev/v4/util/qson/merge.go | 1 + vendor/go-micro.dev/v4/util/qson/qson.go | 18 +- vendor/go-micro.dev/v4/util/registry/util.go | 8 +- vendor/go-micro.dev/v4/util/ring/buffer.go | 28 +- vendor/go-micro.dev/v4/util/signal/signal.go | 2 +- vendor/go-micro.dev/v4/util/socket/pool.go | 6 +- vendor/go-micro.dev/v4/util/socket/socket.go | 18 +- .../etcd/api/v3/etcdserverpb/rpc.pb.go | 516 +- .../etcd/api/v3/etcdserverpb/rpc.proto | 2 +- .../etcd/api/v3/v3rpc/rpctypes/error.go | 3 + .../go.etcd.io/etcd/api/v3/version/version.go | 2 +- .../etcd/client/pkg/v3/logutil/zap.go | 24 +- vendor/go.etcd.io/etcd/client/v3/client.go | 5 +- vendor/go.etcd.io/etcd/client/v3/doc.go | 4 +- .../client/v3/internal/endpoint/endpoint.go | 31 +- vendor/go.etcd.io/etcd/client/v3/lease.go | 4 +- .../etcd/client/v3/namespace/doc.go | 1 - vendor/go.etcd.io/etcd/client/v3/txn.go | 17 +- vendor/go.etcd.io/etcd/client/v3/watch.go | 2 +- .../google.golang.org/grpc/otelgrpc/config.go | 16 + .../grpc/otelgrpc/interceptor.go | 97 +- .../grpc/otelgrpc/stats_handler.go | 89 +- .../grpc/otelgrpc/version.go | 2 +- .../otel/metric/noop/noop.go | 264 + vendor/go.uber.org/atomic/CHANGELOG.md | 10 + vendor/go.uber.org/atomic/bool.go | 2 +- vendor/go.uber.org/atomic/duration.go | 2 +- vendor/go.uber.org/atomic/error.go | 14 +- vendor/go.uber.org/atomic/float32.go | 2 +- vendor/go.uber.org/atomic/float64.go | 2 +- vendor/go.uber.org/atomic/int32.go | 2 +- vendor/go.uber.org/atomic/int64.go | 2 +- vendor/go.uber.org/atomic/pointer_go118.go | 41 +- .../atomic/pointer_go118_pre119.go | 60 + vendor/go.uber.org/atomic/string.go | 23 +- vendor/go.uber.org/atomic/string_ext.go | 15 +- vendor/go.uber.org/atomic/time.go | 2 +- vendor/go.uber.org/atomic/uint32.go | 2 +- vendor/go.uber.org/atomic/uint64.go | 2 +- vendor/go.uber.org/atomic/uintptr.go | 2 +- .../{versions_go121.go => versions.go} | 9 +- .../tools/internal/versions/versions_go122.go | 38 - vendor/modules.txt | 77 +- 490 files changed, 19130 insertions(+), 11163 deletions(-) delete mode 100644 vendor/github.com/coreos/go-oidc/.gitignore delete mode 100644 vendor/github.com/coreos/go-oidc/.travis.yml delete mode 100644 vendor/github.com/coreos/go-oidc/CONTRIBUTING.md delete mode 100644 vendor/github.com/coreos/go-oidc/DCO delete mode 100644 vendor/github.com/coreos/go-oidc/LICENSE delete mode 100644 vendor/github.com/coreos/go-oidc/MAINTAINERS delete mode 100644 vendor/github.com/coreos/go-oidc/NOTICE delete mode 100644 vendor/github.com/coreos/go-oidc/README.md delete mode 100644 vendor/github.com/coreos/go-oidc/code-of-conduct.md delete mode 100644 vendor/github.com/coreos/go-oidc/jose.go delete mode 100644 vendor/github.com/coreos/go-oidc/jwks.go delete mode 100644 vendor/github.com/coreos/go-oidc/oidc.go delete mode 100644 vendor/github.com/coreos/go-oidc/test delete mode 100644 vendor/github.com/coreos/go-oidc/verify.go create mode 100644 vendor/github.com/emvi/iso-639-1/CHANGELOG.md create mode 100644 vendor/github.com/go-sql-driver/mysql/atomic_bool.go create mode 100644 vendor/github.com/go-sql-driver/mysql/atomic_bool_go118.go delete mode 100644 vendor/github.com/go-sql-driver/mysql/nulltime_go113.go delete mode 100644 vendor/github.com/go-sql-driver/mysql/nulltime_legacy.go create mode 100644 vendor/github.com/hashicorp/go-plugin/buf.gen.yaml create mode 100644 vendor/github.com/hashicorp/go-plugin/buf.yaml create mode 100644 vendor/github.com/hashicorp/go-plugin/constants.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/addr_translator.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/cmd_reattach.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/cmd_runner.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/notes_unix.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/notes_windows.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/process.go rename vendor/github.com/hashicorp/go-plugin/{ => internal/cmdrunner}/process_posix.go (79%) rename vendor/github.com/hashicorp/go-plugin/{ => internal/cmdrunner}/process_windows.go (86%) create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/grpcmux/blocked_client_listener.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/grpcmux/blocked_server_listener.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/grpcmux/grpc_client_muxer.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/grpcmux/grpc_muxer.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/grpcmux/grpc_server_muxer.go delete mode 100644 vendor/github.com/hashicorp/go-plugin/internal/plugin/gen.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/plugin/grpc_broker_grpc.pb.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/plugin/grpc_controller_grpc.pb.go create mode 100644 vendor/github.com/hashicorp/go-plugin/internal/plugin/grpc_stdio_grpc.pb.go create mode 100644 vendor/github.com/hashicorp/go-plugin/runner/runner.go delete mode 100644 vendor/github.com/huandu/xstrings/.travis.yml create mode 100644 vendor/github.com/mileusna/useragent/version.go delete mode 100644 vendor/github.com/minio/minio-go/v7/README_zh_CN.md create mode 100644 vendor/github.com/minio/minio-go/v7/api-put-object-fan-out.go create mode 100644 vendor/github.com/minio/minio-go/v7/checksum.go create mode 100644 vendor/github.com/minio/minio-go/v7/pkg/credentials/credentials.json delete mode 100644 vendor/github.com/minio/sha256-simd/sha256blockSha_amd64.go rename vendor/github.com/minio/sha256-simd/{sha256blockSha_amd64.s => sha256block_amd64.s} (99%) create mode 100644 vendor/go-micro.dev/v4/.golangci.yaml create mode 100644 vendor/go-micro.dev/v4/.richstyle.yaml create mode 100644 vendor/go-micro.dev/v4/debug/trace/noop.go create mode 100644 vendor/go-micro.dev/v4/server/rpc_events.go create mode 100644 vendor/go-micro.dev/v4/server/rpc_helper.go create mode 100644 vendor/go-micro.dev/v4/transport/headers/headers.go create mode 100644 vendor/go-micro.dev/v4/transport/http_client.go create mode 100644 vendor/go-micro.dev/v4/transport/http_listener.go create mode 100644 vendor/go-micro.dev/v4/transport/http_socket.go delete mode 100644 vendor/go-micro.dev/v4/util/log/README.md delete mode 100644 vendor/go-micro.dev/v4/util/log/log.go create mode 100644 vendor/go.opentelemetry.io/otel/metric/noop/noop.go create mode 100644 vendor/go.uber.org/atomic/pointer_go118_pre119.go rename vendor/golang.org/x/tools/internal/versions/{versions_go121.go => versions.go} (80%) delete mode 100644 vendor/golang.org/x/tools/internal/versions/versions_go122.go diff --git a/go.mod b/go.mod index 770627e281..7ade84ee2d 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/cenkalti/backoff v2.2.1+incompatible github.com/coreos/go-oidc/v3 v3.9.0 github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781 - github.com/cs3org/reva/v2 v2.18.1-0.20240208105019-d5e420d294be + github.com/cs3org/reva/v2 v2.18.1-0.20240221074425-cac6c6935c60 github.com/dhowden/tag v0.0.0-20230630033851-978a0926ee25 github.com/disintegration/imaging v1.6.2 github.com/dutchcoders/go-clamd v0.0.0-20170520113014-b970184f4d9e @@ -86,7 +86,7 @@ require ( github.com/tus/tusd v1.13.0 github.com/urfave/cli/v2 v2.27.1 github.com/xhit/go-simple-mail/v2 v2.16.0 - go-micro.dev/v4 v4.9.0 + go-micro.dev/v4 v4.10.2 go.etcd.io/bbolt v1.3.8 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.48.0 go.opentelemetry.io/contrib/zpages v0.48.0 @@ -129,9 +129,9 @@ require ( github.com/amoghe/go-crypt v0.0.0-20220222110647-20eada5f5964 // indirect github.com/armon/go-metrics v0.4.1 // indirect github.com/armon/go-radix v1.0.0 // indirect - github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect + github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/aws/aws-sdk-go v1.45.1 // indirect - github.com/beevik/etree v1.2.0 // indirect + github.com/beevik/etree v1.3.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bitly/go-simplejson v0.5.0 // indirect github.com/bits-and-blooms/bitset v1.2.1 // indirect @@ -160,7 +160,6 @@ require ( github.com/cilium/ebpf v0.9.1 // indirect github.com/cloudflare/circl v1.3.7 // indirect github.com/containerd/cgroups/v3 v3.0.2 // indirect - github.com/coreos/go-oidc v2.2.1+incompatible // indirect github.com/coreos/go-semver v0.3.0 // indirect github.com/coreos/go-systemd/v22 v22.5.0 // indirect github.com/cornelk/hashmap v1.0.8 // indirect @@ -178,7 +177,7 @@ require ( github.com/dustin/go-humanize v1.0.1 // indirect github.com/egirna/icap v0.0.0-20181108071049-d5ee18bd70bc // indirect github.com/emirpasic/gods v1.18.1 // indirect - github.com/emvi/iso-639-1 v1.0.1 // indirect + github.com/emvi/iso-639-1 v1.1.0 // indirect github.com/evanphx/json-patch/v5 v5.5.0 // indirect github.com/fatih/color v1.14.1 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect @@ -197,12 +196,12 @@ require ( github.com/go-logr/stdr v1.2.2 // indirect github.com/go-micro/plugins/v4/events/natsjs v1.2.2-0.20231215124540-f7f8d3274bf9 // indirect github.com/go-micro/plugins/v4/store/nats-js v1.2.1-0.20231129143103-d72facc652f0 // indirect - github.com/go-micro/plugins/v4/store/redis v1.2.1-0.20230510195111-07cd57e1bc9d // indirect + github.com/go-micro/plugins/v4/store/redis v1.2.1 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect github.com/go-redis/redis/v8 v8.11.5 // indirect github.com/go-resty/resty/v2 v2.7.0 // indirect - github.com/go-sql-driver/mysql v1.6.0 // indirect + github.com/go-sql-driver/mysql v1.7.1 // indirect github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect github.com/go-test/deep v1.1.0 // indirect github.com/gobwas/glob v0.2.3 // indirect @@ -231,16 +230,16 @@ require ( github.com/hashicorp/consul/api v1.15.2 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/go-hclog v1.3.1 // indirect + github.com/hashicorp/go-hclog v1.6.2 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-msgpack v1.1.5 // indirect - github.com/hashicorp/go-plugin v1.4.5 // indirect + github.com/hashicorp/go-plugin v1.6.0 // indirect github.com/hashicorp/go-rootcerts v1.0.2 // indirect github.com/hashicorp/golang-lru v0.6.0 // indirect github.com/hashicorp/serf v0.10.0 // indirect - github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect - github.com/huandu/xstrings v1.3.2 // indirect - github.com/iancoleman/strcase v0.2.0 // indirect + github.com/hashicorp/yamux v0.1.1 // indirect + github.com/huandu/xstrings v1.4.0 // indirect + github.com/iancoleman/strcase v0.3.0 // indirect github.com/imdario/mergo v0.3.15 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect @@ -250,7 +249,7 @@ require ( github.com/juliangruber/go-intersect v1.1.0 // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.1.0 // indirect + github.com/klauspost/cpuid/v2 v2.2.6 // indirect github.com/leodido/go-urn v1.4.0 // indirect github.com/libregraph/oidc-go v1.0.0 // indirect github.com/longsleep/go-metrics v1.0.0 // indirect @@ -259,16 +258,16 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.19 // indirect github.com/mattn/go-runewidth v0.0.13 // indirect - github.com/mattn/go-sqlite3 v1.14.19 // indirect + github.com/mattn/go-sqlite3 v1.14.22 // indirect github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect github.com/maxymania/go-system v0.0.0-20170110133659-647cc364bf0b // indirect github.com/mendsley/gojwk v0.0.0-20141217222730-4d5ec6e58103 // indirect github.com/miekg/dns v1.1.50 // indirect - github.com/mileusna/useragent v1.2.1 // indirect + github.com/mileusna/useragent v1.3.4 // indirect github.com/minio/highwayhash v1.0.2 // indirect github.com/minio/md5-simd v1.1.2 // indirect - github.com/minio/minio-go/v7 v7.0.42 // indirect - github.com/minio/sha256-simd v1.0.0 // indirect + github.com/minio/minio-go/v7 v7.0.66 // indirect + github.com/minio/sha256-simd v1.0.1 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect @@ -289,7 +288,7 @@ require ( github.com/pjbgf/sha1cd v0.3.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pquerna/cachecontrol v0.1.0 // indirect - github.com/prometheus/alertmanager v0.25.1 // indirect + github.com/prometheus/alertmanager v0.26.0 // indirect github.com/prometheus/client_model v0.5.0 // indirect github.com/prometheus/common v0.45.0 // indirect github.com/prometheus/procfs v0.12.0 // indirect @@ -323,26 +322,26 @@ require ( github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect github.com/yashtewari/glob-intersection v0.2.0 // indirect - go.etcd.io/etcd/api/v3 v3.5.7 // indirect - go.etcd.io/etcd/client/pkg/v3 v3.5.7 // indirect - go.etcd.io/etcd/client/v3 v3.5.7 // indirect + go.etcd.io/etcd/api/v3 v3.5.12 // indirect + go.etcd.io/etcd/client/pkg/v3 v3.5.12 // indirect + go.etcd.io/etcd/client/v3 v3.5.12 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib v1.0.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.48.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.23.1 // indirect go.opentelemetry.io/otel/metric v1.23.1 // indirect go.opentelemetry.io/proto/otlp v1.1.0 // indirect - go.uber.org/atomic v1.10.0 // indirect + go.uber.org/atomic v1.11.0 // indirect go.uber.org/multierr v1.8.0 // indirect go.uber.org/zap v1.23.0 // indirect - golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect + golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3 // indirect golang.org/x/mod v0.14.0 // indirect golang.org/x/sys v0.17.0 // indirect golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.16.1 // indirect + golang.org/x/tools v0.17.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac // indirect + google.golang.org/genproto v0.0.0-20240205150955-31a09d347014 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect gopkg.in/cenkalti/backoff.v1 v1.1.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/go.sum b/go.sum index 12c6daa1b7..4b9ea7da0e 100644 --- a/go.sum +++ b/go.sum @@ -41,7 +41,7 @@ cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMz cloud.google.com/go v0.110.2/go.mod h1:k04UEeEtb6ZBRTv3dZz4CeJC3jKGxyhl0sAiVVquxiw= cloud.google.com/go v0.110.4/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= cloud.google.com/go v0.110.6/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= -cloud.google.com/go v0.111.0 h1:YHLKNupSD1KqjDbQ3+LVdQ81h/UJbJyZG203cEfnQgM= +cloud.google.com/go v0.112.0 h1:tpFCD7hpHFlQ8yPwT3x+QeXqc2T6+n6T+hmABHfDUSM= cloud.google.com/go/accessapproval v1.4.0/go.mod h1:zybIuC3KpDOvotz59lFe5qxRZx6C75OtwbisN56xYB4= cloud.google.com/go/accessapproval v1.5.0/go.mod h1:HFy3tuiGvMdcd/u+Cu5b9NkO1pEICJ46IR82PoUdplw= cloud.google.com/go/accessapproval v1.6.0/go.mod h1:R0EiYnwV5fsRFiKZkPHr6mwyk2wxUJ30nL4j2pcFY2E= @@ -212,8 +212,8 @@ cloud.google.com/go/compute v1.19.1/go.mod h1:6ylj3a05WF8leseCdIf77NK0g1ey+nj5IK cloud.google.com/go/compute v1.19.3/go.mod h1:qxvISKp/gYnXkSAD1ppcSOveRAmzxicEv/JlizULFrI= cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= cloud.google.com/go/compute v1.23.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= -cloud.google.com/go/compute v1.23.3 h1:6sVlXXBmbd7jNX0Ipq0trII3e4n1/MsADLK6a+aiVlk= -cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= +cloud.google.com/go/compute v1.23.4 h1:EBT9Nw4q3zyE7G45Wvv3MzolIrCJEuHys5muLY0wvAw= +cloud.google.com/go/compute v1.23.4/go.mod h1:/EJMj55asU6kAFnuZET8zqgwgJ9FvXWXOkkfQZa4ioI= cloud.google.com/go/compute/metadata v0.1.0/go.mod h1:Z1VN+bulIf6bt4P/C37K4DyZYZEXYonfTBHHFPO/4UU= cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= @@ -871,19 +871,19 @@ github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgI github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= -github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ= -github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/aws/aws-sdk-go v1.37.27/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/aws/aws-sdk-go v1.45.1 h1:PXuxDZIo/Y9Bvtg2t055+dY4hRwNAEcq6bUMv9fXcjk= github.com/aws/aws-sdk-go v1.45.1/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/bbalet/stopwords v1.0.0 h1:0TnGycCtY0zZi4ltKoOGRFIlZHv0WqpoIGUsObjztfo= github.com/bbalet/stopwords v1.0.0/go.mod h1:sAWrQoDMfqARGIn4s6dp7OW7ISrshUD8IP2q3KoqPjc= github.com/beevik/etree v1.1.0/go.mod h1:r8Aw8JqVegEf0w2fDnATrX9VpkMcyFeM0FhwO62wh+A= -github.com/beevik/etree v1.2.0 h1:l7WETslUG/T+xOPs47dtd6jov2Ii/8/OjCldk5fYfQw= -github.com/beevik/etree v1.2.0/go.mod h1:aiPf89g/1k3AShMVAzriilpcE4R/Vuor90y83zVZWFc= +github.com/beevik/etree v1.3.0 h1:hQTc+pylzIKDb23yYprodCWWTt+ojFfUZyzU09a/hmU= +github.com/beevik/etree v1.3.0/go.mod h1:aiPf89g/1k3AShMVAzriilpcE4R/Vuor90y83zVZWFc= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= -github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o= +github.com/benbjohnson/clock v1.3.5/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20160804104726-4c0e84591b9a/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= @@ -940,6 +940,8 @@ github.com/bombsimon/logrusr/v3 v3.1.0/go.mod h1:PksPPgSFEL2I52pla2glgCyyd2OqOHA github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= +github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= +github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/bytecodealliance/wasmtime-go/v3 v3.0.2 h1:3uZCA/BLTIu+DqCfguByNMJa2HVHpXvjfy0Dy7g6fuA= github.com/bytecodealliance/wasmtime-go/v3 v3.0.2/go.mod h1:RnUjnIXxEJcL6BgCvNyzCCRzZcxCgsZCi+RNlvYor5Q= @@ -995,8 +997,6 @@ github.com/containerd/cgroups/v3 v3.0.2 h1:f5WFqIVSgo5IZmtTT3qVBo6TzI1ON6sycSBKk github.com/containerd/cgroups/v3 v3.0.2/go.mod h1:JUgITrzdFqp42uI2ryGA+ge0ap/nxzYgkGmIcetmErE= github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-oidc v2.2.1+incompatible h1:mh48q/BqXqgjVHpy2ZY7WnWAbenxRjsz9N1i1YxjHAk= -github.com/coreos/go-oidc v2.2.1+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= github.com/coreos/go-oidc/v3 v3.9.0 h1:0J/ogVOd4y8P0f0xUh8l9t07xRP/d8tccvjHl2dcsSo= github.com/coreos/go-oidc/v3 v3.9.0/go.mod h1:rTKz2PYwftcrtoCzV5g5kvfJoWcm0Mk8AF8y1iAQro4= github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= @@ -1019,8 +1019,8 @@ github.com/crewjam/saml v0.4.14 h1:g9FBNx62osKusnFzs3QTN5L9CVA/Egfgm+stJShzw/c= github.com/crewjam/saml v0.4.14/go.mod h1:UVSZCf18jJkk6GpWNVqcyQJMD5HsRugBPf4I1nl2mME= github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781 h1:BUdwkIlf8IS2FasrrPg8gGPHQPOrQ18MS1Oew2tmGtY= github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY= -github.com/cs3org/reva/v2 v2.18.1-0.20240208105019-d5e420d294be h1:vljLn7q9NPfiynhzGBRD1sv8qhYGd6SZOHgvzv+Q9iA= -github.com/cs3org/reva/v2 v2.18.1-0.20240208105019-d5e420d294be/go.mod h1:GCN3g6uYE0Nvd31dGlhaGGyUviUfbG2NkecPRv5oSc4= +github.com/cs3org/reva/v2 v2.18.1-0.20240221074425-cac6c6935c60 h1:cx4hWeWKYnIa8m5z9JncRc+lt/+RB3mwg/kZWBbDPAc= +github.com/cs3org/reva/v2 v2.18.1-0.20240221074425-cac6c6935c60/go.mod h1:GRUrOp5HbFVwZTgR9bVrMZ/MvVy+Jhxw1PdMmhhKP9E= github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= @@ -1071,8 +1071,8 @@ github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a h1:mATvB/9r/3gvcej github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= -github.com/emvi/iso-639-1 v1.0.1 h1:4s6P8Uxc/RDkwCpxAr4NHOT/15a1swy9IQkB8PJCWVI= -github.com/emvi/iso-639-1 v1.0.1/go.mod h1:mghC4MDFyszxzH98ujf/K5whvB6B0nV4qCa5u94dP84= +github.com/emvi/iso-639-1 v1.1.0 h1:EhZiYVA+ysa/b7+0T2DD9hcX7E/5sh4o1KyDAIPu7VE= +github.com/emvi/iso-639-1 v1.1.0/go.mod h1:CSA53/Tx0xF9bk2DEA0Mr0wTdIxq7pqoVZgBOfoL5GI= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= @@ -1216,8 +1216,8 @@ github.com/go-micro/plugins/v4/server/http v1.2.2 h1:UK2/09AU0zV3wHELuR72TZzVU2v github.com/go-micro/plugins/v4/server/http v1.2.2/go.mod h1:YuAjaSPxcn3LI8j2FUsqx0Rxunrj4YwDV41Ax76rLl0= github.com/go-micro/plugins/v4/store/nats-js v1.2.1-0.20231129143103-d72facc652f0 h1:Qa1EBQ9UyCGecFAJQovl/MHGnvbcvDaM3qUoAG5Lnvk= github.com/go-micro/plugins/v4/store/nats-js v1.2.1-0.20231129143103-d72facc652f0/go.mod h1:aCRl8JQmqIaonOl88nFPY/BOQnHPVHY9ngStzLkXnYk= -github.com/go-micro/plugins/v4/store/redis v1.2.1-0.20230510195111-07cd57e1bc9d h1:HQoDDVyMfdkrgXNo03ZY4vzhoOXMDZVZ4SnpBDVID6E= -github.com/go-micro/plugins/v4/store/redis v1.2.1-0.20230510195111-07cd57e1bc9d/go.mod h1:MbCG0YiyPqETTtm7uHFmxQNCaW1o9hBoYtFwhbVjLUg= +github.com/go-micro/plugins/v4/store/redis v1.2.1 h1:d9kwr9bSpoK9vkHkqcv+isQUbgBCHpfwCV57pcAPS6c= +github.com/go-micro/plugins/v4/store/redis v1.2.1/go.mod h1:MbCG0YiyPqETTtm7uHFmxQNCaW1o9hBoYtFwhbVjLUg= github.com/go-micro/plugins/v4/transport/grpc v1.1.0 h1:mXfDYfFQLnVDzjGY3o84oe4prfux9h8txsnA19dKsj8= github.com/go-micro/plugins/v4/transport/grpc v1.1.0/go.mod h1:J5xMp70xXZzm8yafICrDrWaUDd8Gwy8vt0xif7NcOPg= github.com/go-micro/plugins/v4/wrapper/breaker/gobreaker v1.2.0 h1:EQj4l7fuOSz8ueUYhFlpZPp9+tN4JeONL32ARRKXW/U= @@ -1243,8 +1243,8 @@ github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq github.com/go-resty/resty/v2 v2.1.1-0.20191201195748-d7b97669fe48/go.mod h1:dZGr0i9PLlaaTD4H/hoZIDjQ+r6xq8mgbRzHZf7f2J8= github.com/go-resty/resty/v2 v2.7.0 h1:me+K9p3uhSmXtrBZ4k9jcEAfJmuC8IivWHwaLZwPrFY= github.com/go-resty/resty/v2 v2.7.0/go.mod h1:9PWDzw47qPphMRFfhsyk0NnSgvluHcljSMVIq3w7q0I= -github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= -github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= +github.com/go-sql-driver/mysql v1.7.1 h1:lUIinVbN1DY0xBg0eMOzmmtGoHwWBbvnWubQUrtU8EI= +github.com/go-sql-driver/mysql v1.7.1/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= @@ -1474,8 +1474,8 @@ github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/S github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v1.3.1 h1:vDwF1DFNZhntP4DAjuTpOw3uEgMUpXh1pB5fW9DqHpo= -github.com/hashicorp/go-hclog v1.3.1/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.6.2 h1:NOtoftovWkDheyUM/8JW3QMiXyxJK3uHRK7wV04nD2I= +github.com/hashicorp/go-hclog v1.6.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= @@ -1488,8 +1488,8 @@ github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHh github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-plugin v1.4.5 h1:oTE/oQR4eghggRg8VY7PAz3dr++VwDNBGCcOfIvHpBo= -github.com/hashicorp/go-plugin v1.4.5/go.mod h1:viDMjcLJuDui6pXb8U4HVfb8AamCWhHGUjr2IrTF67s= +github.com/hashicorp/go-plugin v1.6.0 h1:wgd4KxHJTVGGqWBq4QPB1i5BZNEx9BR8+OFmHDmTk8A= +github.com/hashicorp/go-plugin v1.6.0/go.mod h1:lBS5MtSSBZk0SHc66KACcjjlU6WzEVP/8pwz68aMkCI= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-retryablehttp v0.6.6/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= @@ -1523,13 +1523,14 @@ github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/J github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hashicorp/serf v0.10.0 h1:89qvvpfMQnz6c2y4pv7j2vUUmeT1+5TSZMexuTbtsPs= github.com/hashicorp/serf v0.10.0/go.mod h1:bXN03oZc5xlH46k/K1qTrpXb9ERKyY1/i/N5mxvgrZw= -github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 h1:xixZ2bWeofWV68J+x6AzmKuVM/JWCQwkWm6GW/MUR6I= -github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= +github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= -github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0= +github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= +github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/iij/doapi v0.0.0-20190504054126-0bbf12d6d7df/go.mod h1:QMZY7/J/KSQEhKWFeDesPjMj+wCHReeknARU3wqlyN4= @@ -1547,8 +1548,8 @@ github.com/jellydator/ttlcache/v2 v2.11.1/go.mod h1:RtE5Snf0/57e+2cLWFYWCCsLas2H github.com/jellydator/ttlcache/v3 v3.2.0 h1:6lqVJ8X3ZaUwvzENqPAobDsXNExfUJd61u++uW8a3LE= github.com/jellydator/ttlcache/v3 v3.2.0/go.mod h1:hi7MGFdMAwZna5n2tuvh63DvFLzVKySzCVW6+0gA2n4= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jhump/protoreflect v1.6.0 h1:h5jfMVslIg6l29nsMs0D8Wj17RDVdNYti0vDN/PZZoE= -github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74= +github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= +github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo= github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ= github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= @@ -1591,10 +1592,9 @@ github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHU github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= github.com/klauspost/cpuid/v2 v2.0.1/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.1.0 h1:eyi1Ad2aNJMW95zcSbmGg7Cg6cq3ADwLpMAP96d8rF0= -github.com/klauspost/cpuid/v2 v2.1.0/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= +github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= +github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/kobergj/plugins/v4/store/nats-js-kv v0.0.0-20231207143248-4d424e3ae348 h1:Czv6AW9Suj6npWd5BLZjobdD78c2RdzBeKBgkq3jYZk= github.com/kobergj/plugins/v4/store/nats-js-kv v0.0.0-20231207143248-4d424e3ae348/go.mod h1:Goi4eJ9SrKkxE6NsAVqBVNxfQFbwb7UbyII6743ldgM= github.com/kolo/xmlrpc v0.0.0-20200310150728-e0350524596b/go.mod h1:o03bZfuBwAXHetKXuInt4S7omeXUu62/A845kiycsSQ= @@ -1673,8 +1673,8 @@ github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4 github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mattn/go-sqlite3 v1.14.14/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= github.com/mattn/go-sqlite3 v1.14.15/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= -github.com/mattn/go-sqlite3 v1.14.19 h1:fhGleo2h1p8tVChob4I9HpmVFIAkKGpiukdrgQbWfGI= -github.com/mattn/go-sqlite3 v1.14.19/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= +github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= +github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/mattn/go-tty v0.0.0-20180219170247-931426f7535a/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE= github.com/mattn/go-tty v0.0.3/go.mod h1:ihxohKRERHTVzN+aSVRwACLCeqIoZAWpoICkkvrWyR0= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= @@ -1691,18 +1691,18 @@ github.com/miekg/dns v1.1.40/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7 github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= github.com/miekg/dns v1.1.50 h1:DQUfb9uc6smULcREF09Uc+/Gd46YWqJd5DbpPE9xkcA= github.com/miekg/dns v1.1.50/go.mod h1:e3IlAVfNqAllflbibAZEWOXOQ+Ynzk/dDozDxY7XnME= -github.com/mileusna/useragent v1.2.1 h1:p3RJWhi3LfuI6BHdddojREyK3p6qX67vIfOVMnUIVr0= -github.com/mileusna/useragent v1.2.1/go.mod h1:3d8TOmwL/5I8pJjyVDteHtgDGcefrFUX4ccGOMKNYYc= +github.com/mileusna/useragent v1.3.4 h1:MiuRRuvGjEie1+yZHO88UBYg8YBC/ddF6T7F56i3PCk= +github.com/mileusna/useragent v1.3.4/go.mod h1:3d8TOmwL/5I8pJjyVDteHtgDGcefrFUX4ccGOMKNYYc= github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8/go.mod h1:mC1jAcsrzbxHt8iiaC+zU4b1ylILSosueou12R++wfY= github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3/go.mod h1:RagcQ7I8IeTMnF8JTXieKnO4Z6JCsikNEzj0DwauVzE= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34= github.com/minio/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM= -github.com/minio/minio-go/v7 v7.0.42 h1:fP56plNR/Tkw/+Xczw9NL5TGxe5gJDvgd8LidNR3BEI= -github.com/minio/minio-go/v7 v7.0.42/go.mod h1:nCrRzjoSUQh8hgKKtu3Y708OLvRLtuASMg2/nvmbarw= -github.com/minio/sha256-simd v1.0.0 h1:v1ta+49hkWZyvaKwrQB8elexRqm6Y0aMLjCNsrYxo6g= -github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM= +github.com/minio/minio-go/v7 v7.0.66 h1:bnTOXOHjOqv/gcMuiVbN9o2ngRItvqE774dG9nq0Dzw= +github.com/minio/minio-go/v7 v7.0.66/go.mod h1:DHAgmyQEGdW3Cif0UooKOyrT3Vxs82zNdV6tkKhRtbs= +github.com/minio/sha256-simd v1.0.1 h1:6kaan5IFmwTNynnKKpDHe6FWHohJOHhCPchzK49dzMM= +github.com/minio/sha256-simd v1.0.1/go.mod h1:Pz6AKMiUdngCLpeTL/RJY1M9rUuPMYujV5xJjtbRSN8= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= @@ -1830,8 +1830,8 @@ github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35/go.mod h1:prY github.com/pquerna/cachecontrol v0.1.0 h1:yJMy84ti9h/+OEWa752kBTKv4XC30OtVVHYv/8cTqKc= github.com/pquerna/cachecontrol v0.1.0/go.mod h1:NrUG3Z7Rdu85UNR3vm7SOsl1nFIeSiQnrHV5K9mBcUI= github.com/pquerna/otp v1.3.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg= -github.com/prometheus/alertmanager v0.25.1 h1:LGBNMspOfv8h7brb+LWj2wnwBCg2ZuuKWTh6CAVw2/Y= -github.com/prometheus/alertmanager v0.25.1/go.mod h1:MEZ3rFVHqKZsw7IcNS/m4AWZeXThmJhumpiWR4eHU/w= +github.com/prometheus/alertmanager v0.26.0 h1:uOMJWfIwJguc3NaM3appWNbbrh6G/OjvaHMk22aBBYc= +github.com/prometheus/alertmanager v0.26.0/go.mod h1:rVcnARltVjavgVaNnmevxK7kOn7IZavyf0KNgHkbEpU= github.com/prometheus/client_golang v0.8.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= @@ -2008,8 +2008,8 @@ github.com/tchap/go-patricia/v2 v2.3.1 h1:6rQp39lgIYZ+MHmdEq4xzuk1t7OdC35z/xm0BG github.com/tchap/go-patricia/v2 v2.3.1/go.mod h1:VZRHKAb53DLaG+nA9EaYYiaEx6YztwDlLElMsnSHD4k= github.com/test-go/testify v1.1.4 h1:Tf9lntrKUMHiXQ07qBScBTSA0dhYQlu83hswqelv1iE= github.com/test-go/testify v1.1.4/go.mod h1:rH7cfJo/47vWGdi4GPj16x3/t1xGOj2YxzmNQzk2ghU= -github.com/thanhpk/randstr v1.0.4 h1:IN78qu/bR+My+gHCvMEXhR/i5oriVHcTB/BJJIRTsNo= -github.com/thanhpk/randstr v1.0.4/go.mod h1:M/H2P1eNLZzlDwAzpkkkUvoyNNMbzRGhESZuEQk3r0U= +github.com/thanhpk/randstr v1.0.6 h1:psAOktJFD4vV9NEVb3qkhRSMvYh4ORRaj1+w/hn4B+o= +github.com/thanhpk/randstr v1.0.6/go.mod h1:M/H2P1eNLZzlDwAzpkkkUvoyNNMbzRGhESZuEQk3r0U= github.com/thejerf/suture/v4 v4.0.2 h1:VxIH/J8uYvqJY1+9fxi5GBfGRkRZ/jlSOP6x9HijFQc= github.com/thejerf/suture/v4 v4.0.2/go.mod h1:g0e8vwskm9tI0jRjxrnA6lSr0q6OfPdWJVX7G5bVWRs= github.com/tidwall/gjson v1.17.1 h1:wlYEnwqAHgzmhNUFfw7Xalt2JzQvsMx2Se4PcoFCT/U= @@ -2068,17 +2068,17 @@ github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= -go-micro.dev/v4 v4.9.0 h1:pd1CpqMT9hA47jSmX8mfdGK865PkMh95Rwj5RdfqPqE= -go-micro.dev/v4 v4.9.0/go.mod h1:Ju8HrZ5hQSF+QguZ2QUs9Kbe42MHP1tJa/fpP5g07Cs= +go-micro.dev/v4 v4.10.2 h1:GWQf1+FcAiMf1yca3P09RNjB31Xtk0C5HiKHSpq/2qA= +go-micro.dev/v4 v4.10.2/go.mod h1:RV2AolXjTAil9Xm82QCMo1gknuZwD61oMUH14wJpECk= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= -go.etcd.io/etcd/api/v3 v3.5.7 h1:sbcmosSVesNrWOJ58ZQFitHMdncusIifYcrBfwrlJSY= -go.etcd.io/etcd/api/v3 v3.5.7/go.mod h1:9qew1gCdDDLu+VwmeG+iFpL+QlpHTo7iubavdVDgCAA= -go.etcd.io/etcd/client/pkg/v3 v3.5.7 h1:y3kf5Gbp4e4q7egZdn5T7W9TSHUvkClN6u+Rq9mEOmg= -go.etcd.io/etcd/client/pkg/v3 v3.5.7/go.mod h1:o0Abi1MK86iad3YrWhgUsbGx1pmTS+hrORWc2CamuhY= -go.etcd.io/etcd/client/v3 v3.5.7 h1:u/OhpiuCgYY8awOHlhIhmGIGpxfBU/GZBUP3m/3/Iz4= -go.etcd.io/etcd/client/v3 v3.5.7/go.mod h1:sOWmj9DZUMyAngS7QQwCyAXXAL6WhgTOPLNS/NabQgw= +go.etcd.io/etcd/api/v3 v3.5.12 h1:W4sw5ZoU2Juc9gBWuLk5U6fHfNVyY1WC5g9uiXZio/c= +go.etcd.io/etcd/api/v3 v3.5.12/go.mod h1:Ot+o0SWSyT6uHhA56al1oCED0JImsRiU9Dc26+C2a+4= +go.etcd.io/etcd/client/pkg/v3 v3.5.12 h1:EYDL6pWwyOsylrQyLp2w+HkQ46ATiOvoEdMarindU2A= +go.etcd.io/etcd/client/pkg/v3 v3.5.12/go.mod h1:seTzl2d9APP8R5Y2hFL3NVlD6qC/dOT+3kvrqPyTas4= +go.etcd.io/etcd/client/v3 v3.5.12 h1:v5lCPXn1pf1Uu3M4laUE2hp/geOTc5uPcYYsNe1lDxg= +go.etcd.io/etcd/client/v3 v3.5.12/go.mod h1:tSbBCakoWmmddL+BKVAJHa9km+O/E+bumDe9mSbPiqw= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -2092,8 +2092,8 @@ go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/contrib v1.0.0 h1:khwDCxdSspjOLmFnvMuSHd/5rPzbTx0+l6aURwtQdfE= go.opentelemetry.io/contrib v1.0.0/go.mod h1:EH4yDYeNoaTqn/8yCWQmfNB78VHfGX2Jt2bvnvzBlGM= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0 h1:PzIubN4/sjByhDRHLviCjJuweBXWFZWhghjg7cS28+M= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0/go.mod h1:Ct6zzQEuGK3WpJs2n4dn+wfJYzd/+hNnxMRTWjGn30M= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.48.0 h1:P+/g8GpuJGYbOp2tAdKrIPUX9JO02q8Q0YNlHolpibA= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.48.0/go.mod h1:tIKj3DbO8N9Y2xo52og3irLsPI4GW02DSMtrVgNMgxg= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.48.0 h1:doUP+ExOpH3spVTLS0FcWGLnQrPct/hD/bCPbDRUEAU= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.48.0/go.mod h1:rdENBZMT2OE6Ne/KLwpiXudnAsbdrdBaqBvTN8M8BgA= go.opentelemetry.io/contrib/zpages v0.48.0 h1:7vnqarYRu2VYvUUwrLWXRk5HqPuCbtuZdgR4eaVeP3Y= @@ -2123,8 +2123,8 @@ go.opentelemetry.io/proto/otlp v1.1.0/go.mod h1:GpBHCBWiqvVLDqmHZsoMM3C5ySeKTC7e go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= -go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= +go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= @@ -2186,8 +2186,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20220827204233-334a2380cb91/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= +golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3 h1:/RIbNt/Zr7rVhIkQhooTxCxFcdWLGIKnZA4IXNFSrvo= +golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3/go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= @@ -2477,7 +2477,6 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220708085239-5a0f0661e09d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -2626,8 +2625,8 @@ golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= -golang.org/x/tools v0.16.1 h1:TLyB3WofjdOEepBHAU20JdNC1Zbg87elYofWYAY5oZA= -golang.org/x/tools v0.16.1/go.mod h1:kYVVN6I1mBNoB1OX+noeBjbRk4IUEPa7JJ+TJMEooJ0= +golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc= +golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -2862,8 +2861,8 @@ google.golang.org/genproto v0.0.0-20230629202037-9506855d4529/go.mod h1:xZnkP7mR google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:O9kGHb51iE/nOGvQaDUuadVYqovW56s5emA88lQnj6Y= google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:0ggbjUrZYpy1q+ANUS30SEoGZ53cdfwtbuG7Ptgy108= google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5/go.mod h1:oH/ZOT02u4kWEp7oYBGYFFkCdKS/uYR9Z7+0/xuuFp8= -google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac h1:ZL/Teoy/ZGnzyrqK/Optxxp2pmVh+fmJ97slxSRyzUg= -google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac/go.mod h1:+Rvu7ElI+aLzyDQhpHMFMMltsD6m7nqpuWDd2CwJw3k= +google.golang.org/genproto v0.0.0-20240205150955-31a09d347014 h1:g/4bk7P6TPMkAUbUhquq98xey1slwvuVJPosdBqYJlU= +google.golang.org/genproto v0.0.0-20240205150955-31a09d347014/go.mod h1:xEgQu1e4stdSSsxPDK8Azkrk/ECl5HvdPf6nbZrTS5M= google.golang.org/genproto/googleapis/api v0.0.0-20230525234020-1aefcd67740a/go.mod h1:ts19tUU+Z0ZShN1y3aPyq2+O3d5FUNNgT6FtOzmrNn8= google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= diff --git a/ocis-pkg/service/grpc/client.go b/ocis-pkg/service/grpc/client.go index f8e857882e..06b8649d33 100644 --- a/ocis-pkg/service/grpc/client.go +++ b/ocis-pkg/service/grpc/client.go @@ -13,6 +13,7 @@ import ( "github.com/owncloud/ocis/v2/ocis-pkg/shared" "go-micro.dev/v4/client" "go.opentelemetry.io/otel/trace" + "go.opentelemetry.io/otel/trace/noop" ) // ClientOptions represent options (e.g. tls settings) for the grpc clients @@ -45,7 +46,7 @@ func WithTraceProvider(tp trace.TracerProvider) ClientOption { if tp != nil { o.tp = tp } else { - o.tp = trace.NewNoopTracerProvider() + o.tp = noop.NewTracerProvider() } } } diff --git a/services/sharing/pkg/config/config.go b/services/sharing/pkg/config/config.go index f537400349..1e3a7fb33e 100644 --- a/services/sharing/pkg/config/config.go +++ b/services/sharing/pkg/config/config.go @@ -21,6 +21,8 @@ type Config struct { SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"SHARING_SKIP_USER_GROUPS_IN_TOKEN" desc:"Disables the loading of user's group memberships from the reva access token."` + EnableResharing bool `yaml:"enable_resharing" env:"OCIS_ENABLE_RESHARING;SHARING_ENABLE_RESHARING" desc:"Changing this value is NOT supported. Enables the support for resharing."` + UserSharingDriver string `yaml:"user_sharing_driver" env:"SHARING_USER_DRIVER" desc:"Driver to be used to persist shares. Supported values are 'jsoncs3', 'json', 'cs3' (deprecated) and 'owncloudsql'."` UserSharingDrivers UserSharingDrivers `yaml:"user_sharing_drivers"` PublicSharingDriver string `yaml:"public_sharing_driver" env:"SHARING_PUBLIC_DRIVER" desc:"Driver to be used to persist public shares. Supported values are 'jsoncs3', 'json' and 'cs3' (deprecated)."` diff --git a/services/sharing/pkg/config/defaults/defaultconfig.go b/services/sharing/pkg/config/defaults/defaultconfig.go index 57026e0b9a..20d86a739a 100644 --- a/services/sharing/pkg/config/defaults/defaultconfig.go +++ b/services/sharing/pkg/config/defaults/defaultconfig.go @@ -35,6 +35,7 @@ func DefaultConfig() *config.Config { Name: "sharing", }, Reva: shared.DefaultRevaConfig(), + EnableResharing: true, UserSharingDriver: "jsoncs3", UserSharingDrivers: config.UserSharingDrivers{ JSON: config.UserSharingJSONDriver{ diff --git a/services/sharing/pkg/revaconfig/config.go b/services/sharing/pkg/revaconfig/config.go index 8f02b796de..d13427f2f0 100644 --- a/services/sharing/pkg/revaconfig/config.go +++ b/services/sharing/pkg/revaconfig/config.go @@ -86,6 +86,7 @@ func SharingConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string] }, }, }, + "disable_resharing": !cfg.EnableResharing, }, "publicshareprovider": map[string]interface{}{ "gateway_addr": cfg.Reva.Address, diff --git a/services/storage-users/pkg/config/config.go b/services/storage-users/pkg/config/config.go index 43cdaa61d8..0697ee7a58 100644 --- a/services/storage-users/pkg/config/config.go +++ b/services/storage-users/pkg/config/config.go @@ -84,6 +84,17 @@ type HTTPConfig struct { Namespace string `yaml:"-"` Protocol string `yaml:"protocol" env:"STORAGE_USERS_HTTP_PROTOCOL" desc:"The transport protocol of the HTTP service."` Prefix string + CORS CORS `yaml:"cors"` +} + +// CORS defines the available cors configuration. +type CORS struct { + AllowedOrigins []string `yaml:"allow_origins" env:"OCIS_CORS_ALLOW_ORIGINS;STORAGE_USERS_CORS_ALLOW_ORIGINS" desc:"A list of allowed CORS origins. See following chapter for more details: *Access-Control-Allow-Origin* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin. See the Environment Variable Types description for more details."` + AllowedMethods []string `yaml:"allow_methods" env:"OCIS_CORS_ALLOW_METHODS;STORAGE_USERS_CORS_ALLOW_METHODS" desc:"A list of allowed CORS methods. See following chapter for more details: *Access-Control-Request-Method* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method. See the Environment Variable Types description for more details."` + AllowedHeaders []string `yaml:"allow_headers" env:"OCIS_CORS_ALLOW_HEADERS;STORAGE_USERS_CORS_ALLOW_HEADERS" desc:"A list of allowed CORS headers. See following chapter for more details: *Access-Control-Request-Headers* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers. See the Environment Variable Types description for more details."` + AllowCredentials bool `yaml:"allow_credentials" env:"OCIS_CORS_ALLOW_CREDENTIALS;STORAGE_USERS_CORS_ALLOW_CREDENTIALS" desc:"Allow credentials for CORS.See following chapter for more details: *Access-Control-Allow-Credentials* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials."` + ExposedHeaders []string `yaml:"expose_headers" env:"OCIS_CORS_EXPOSE_HEADERS;STORAGE_USERS_CORS_EXPOSE_HEADERS" desc:"A list of exposed CORS headers. See following chapter for more details: *Access-Control-Expose-Headers* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers. See the Environment Variable Types description for more details."` + MaxAge uint `yaml:"max_age" env:"OCIS_CORS_MAX_AGE;STORAGE_USERS_CORS_MAX_AGE" desc:"The max cache duration of preflight headers. See following chapter for more details: *Access-Control-Max-Age* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age. See the Environment Variable Types description for more details."` } // Drivers combine all storage driver configurations @@ -132,14 +143,20 @@ type S3NGDriver struct { Propagator string `yaml:"propagator" env:"OCIS_DECOMPOSEDFS_PROPAGATOR;STORAGE_USERS_S3NG_PROPAGATOR" desc:"The propagator used for decomposedfs. At the moment, only 'sync' is fully supported, 'async' is available as an experimental option."` AsyncPropagatorOptions AsyncPropagatorOptions `yaml:"async_propagator_options"` // Root is the absolute path to the location of the data - Root string `yaml:"root" env:"STORAGE_USERS_S3NG_ROOT" desc:"The directory where the filesystem storage will store metadata for blobs. If not defined, the root directory derives from $OCIS_BASE_DATA_PATH:/storage/users."` - UserLayout string `yaml:"user_layout" env:"STORAGE_USERS_S3NG_USER_LAYOUT" desc:"Template string for the user storage layout in the user directory."` - PermissionsEndpoint string `yaml:"permissions_endpoint" env:"STORAGE_USERS_PERMISSION_ENDPOINT;STORAGE_USERS_S3NG_PERMISSIONS_ENDPOINT" desc:"Endpoint of the permissions service. The endpoints can differ for 'ocis' and 's3ng'."` - Region string `yaml:"region" env:"STORAGE_USERS_S3NG_REGION" desc:"Region of the S3 bucket."` - AccessKey string `yaml:"access_key" env:"STORAGE_USERS_S3NG_ACCESS_KEY" desc:"Access key for the S3 bucket."` - SecretKey string `yaml:"secret_key" env:"STORAGE_USERS_S3NG_SECRET_KEY" desc:"Secret key for the S3 bucket."` - Endpoint string `yaml:"endpoint" env:"STORAGE_USERS_S3NG_ENDPOINT" desc:"Endpoint for the S3 bucket."` - Bucket string `yaml:"bucket" env:"STORAGE_USERS_S3NG_BUCKET" desc:"Name of the S3 bucket."` + Root string `yaml:"root" env:"STORAGE_USERS_S3NG_ROOT" desc:"The directory where the filesystem storage will store metadata for blobs. If not defined, the root directory derives from $OCIS_BASE_DATA_PATH:/storage/users."` + UserLayout string `yaml:"user_layout" env:"STORAGE_USERS_S3NG_USER_LAYOUT" desc:"Template string for the user storage layout in the user directory."` + PermissionsEndpoint string `yaml:"permissions_endpoint" env:"STORAGE_USERS_PERMISSION_ENDPOINT;STORAGE_USERS_S3NG_PERMISSIONS_ENDPOINT" desc:"Endpoint of the permissions service. The endpoints can differ for 'ocis' and 's3ng'."` + Region string `yaml:"region" env:"STORAGE_USERS_S3NG_REGION" desc:"Region of the S3 bucket."` + AccessKey string `yaml:"access_key" env:"STORAGE_USERS_S3NG_ACCESS_KEY" desc:"Access key for the S3 bucket."` + SecretKey string `yaml:"secret_key" env:"STORAGE_USERS_S3NG_SECRET_KEY" desc:"Secret key for the S3 bucket."` + Endpoint string `yaml:"endpoint" env:"STORAGE_USERS_S3NG_ENDPOINT" desc:"Endpoint for the S3 bucket."` + Bucket string `yaml:"bucket" env:"STORAGE_USERS_S3NG_BUCKET" desc:"Name of the S3 bucket."` + DisableContentSha256 bool `yaml:"put_object_disable_content_sha254" env:"STORAGE_USERS_S3NG_PUT_OBJECT_DISABLE_CONTENT_SHA256" desc:"Disable sending content sha256 when copying objects to S3."` + DisableMultipart bool `yaml:"put_object_disable_multipart" env:"STORAGE_USERS_S3NG_PUT_OBJECT_DISABLE_MULTIPART" desc:"Disable multipart uploads when copying objects to S3"` + SendContentMd5 bool `yaml:"put_object_send_content_md5" env:"STORAGE_USERS_S3NG_PUT_OBJECT_SEND_CONTENT_MD5" desc:"Send a Content-MD5 header when copying objects to S3."` + ConcurrentStreamParts bool `yaml:"put_object_concurrent_stream_parts" env:"STORAGE_USERS_S3NG_PUT_OBJECT_CONCURRENT_STREAM_PARTS" desc:"Always precreate parts when copying objects to S3."` + NumThreads uint `yaml:"put_object_num_threads" env:"STORAGE_USERS_S3NG_PUT_OBJECT_NUM_THREADS" desc:"Number of concurrent uploads to use when copying objects to S3."` + PartSize uint64 `yaml:"put_object_part_size" env:"STORAGE_USERS_S3NG_PUT_OBJECT_PART_SIZE" desc:"Part size for concurrent uploads to S3."` // PersonalSpaceAliasTemplate contains the template used to construct // the personal space alias, eg: `"{{.SpaceType}}/{{.User.Username | lower}}"` PersonalSpaceAliasTemplate string `yaml:"personalspacealias_template" env:"STORAGE_USERS_S3NG_PERSONAL_SPACE_ALIAS_TEMPLATE" desc:"Template string to construct personal space aliases."` diff --git a/services/storage-users/pkg/config/defaults/defaultconfig.go b/services/storage-users/pkg/config/defaults/defaultconfig.go index 65510c8ec0..b615db8ba7 100644 --- a/services/storage-users/pkg/config/defaults/defaultconfig.go +++ b/services/storage-users/pkg/config/defaults/defaultconfig.go @@ -37,6 +37,49 @@ func DefaultConfig() *config.Config { Namespace: "com.owncloud.web", Protocol: "tcp", Prefix: "data", + CORS: config.CORS{ + AllowedOrigins: []string{"*"}, + AllowedMethods: []string{ + "POST", + "HEAD", + "PATCH", + "OPTIONS", + "GET", + "DELETE", + }, + AllowedHeaders: []string{ + "Authorization", + "Origin", + "X-Requested-With", + "X-Request-Id", + "X-HTTP-Method-Override", + "Content-Type", + "Upload-Length", + "Upload-Offset", + "Tus-Resumable", + "Upload-Metadata", + "Upload-Defer-Length", + "Upload-Concat", + "Upload-Incomplete", + "Upload-Draft-Interop-Version", + }, + AllowCredentials: true, + ExposedHeaders: []string{ + "Upload-Offset", + "Location", + "Upload-Length", + "Tus-Version", + "Tus-Resumable", + "Tus-Max-Size", + "Tus-Extension", + "Upload-Metadata", + "Upload-Defer-Length", + "Upload-Concat", + "Upload-Incomplete", + "Upload-Draft-Interop-Version", + }, + MaxAge: 86400, + }, }, Service: config.Service{ Name: "storage-users", @@ -69,6 +112,9 @@ func DefaultConfig() *config.Config { ShareFolder: "/Shares", UserLayout: "{{.Id.OpaqueId}}", Region: "default", + SendContentMd5: true, + ConcurrentStreamParts: true, + NumThreads: 4, PersonalSpaceAliasTemplate: "{{.SpaceType}}/{{.User.Username | lower}}", GeneralSpaceAliasTemplate: "{{.SpaceType}}/{{.SpaceName | replace \" \" \"-\" | lower}}", PermissionsEndpoint: "com.owncloud.api.settings", diff --git a/services/storage-users/pkg/revaconfig/config.go b/services/storage-users/pkg/revaconfig/config.go index f8ecffd9b7..aaa31f59e9 100644 --- a/services/storage-users/pkg/revaconfig/config.go +++ b/services/storage-users/pkg/revaconfig/config.go @@ -2,6 +2,9 @@ package revaconfig import ( + "strconv" + "strings" + "github.com/owncloud/ocis/v2/services/storage-users/pkg/config" ) @@ -74,6 +77,31 @@ func StorageUsersConfigFromStruct(cfg *config.Config) map[string]interface{} { "nats_enable_tls": cfg.Events.EnableTLS, "nats_username": cfg.Events.AuthUsername, "nats_password": cfg.Events.AuthPassword, + "data_txs": map[string]interface{}{ + "simple": map[string]interface{}{ + "cache_store": "noop", + "cache_database": "system", + "cache_table": "stat", + }, + "spaces": map[string]interface{}{ + "cache_store": "noop", + "cache_database": "system", + "cache_table": "stat", + }, + "tus": map[string]interface{}{ + "cache_store": "noop", + "cache_database": "system", + "cache_table": "stat", + "cors_enabled": true, + // allow_origin is configured as a regex in tusd, so we concatenate the configured values into a regex + "cors_allow_origin": "(" + strings.ReplaceAll(strings.Join(cfg.HTTP.CORS.AllowedOrigins, "|"), "*", ".*") + ")", + "cors_allow_credentials": cfg.HTTP.CORS.AllowCredentials, + "cors_allow_methods": strings.Join(cfg.HTTP.CORS.AllowedMethods, ","), + "cors_allow_headers": strings.Join(cfg.HTTP.CORS.AllowedHeaders, ","), + "cors_max_age": strconv.FormatUint(uint64(cfg.HTTP.CORS.MaxAge), 10), + "cors_expose_headers": strings.Join(cfg.HTTP.CORS.ExposedHeaders, ","), + }, + }, }, }, }, diff --git a/services/storage-users/pkg/revaconfig/drivers.go b/services/storage-users/pkg/revaconfig/drivers.go index 0a44caf74c..841a319099 100644 --- a/services/storage-users/pkg/revaconfig/drivers.go +++ b/services/storage-users/pkg/revaconfig/drivers.go @@ -243,6 +243,12 @@ func S3NG(cfg *config.Config) map[string]interface{} { "s3.secret_key": cfg.Drivers.S3NG.SecretKey, "s3.endpoint": cfg.Drivers.S3NG.Endpoint, "s3.bucket": cfg.Drivers.S3NG.Bucket, + "s3.disable_content_sha254": cfg.Drivers.S3NG.DisableContentSha256, + "s3.disable_multipart": cfg.Drivers.S3NG.DisableMultipart, + "s3.send_content_md5": cfg.Drivers.S3NG.SendContentMd5, + "s3.concurrent_stream_parts": cfg.Drivers.S3NG.ConcurrentStreamParts, + "s3.num_threads": cfg.Drivers.S3NG.NumThreads, + "s3.part_size": cfg.Drivers.S3NG.PartSize, "max_acquire_lock_cycles": cfg.Drivers.S3NG.MaxAcquireLockCycles, "lock_cycle_duration_factor": cfg.Drivers.S3NG.LockCycleDurationFactor, "max_concurrency": cfg.Drivers.S3NG.MaxConcurrency, diff --git a/tests/acceptance/expected-failures-API-on-OCIS-storage.md b/tests/acceptance/expected-failures-API-on-OCIS-storage.md index dd6ee05db1..6aa3842d42 100644 --- a/tests/acceptance/expected-failures-API-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-API-on-OCIS-storage.md @@ -97,11 +97,6 @@ cannot share a folder with create permission - [coreApiShareManagementBasicToShares/deleteShareFromShares.feature:118](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature#L118) - [coreApiShareManagementBasicToShares/deleteShareFromShares.feature:130](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature#L130) -#### [OCS error message for attempting to access share via share id as an unauthorized user is not informative](https://github.com/owncloud/ocis/issues/1233) - -- [coreApiShareOperationsToShares1/gettingShares.feature:144](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature#L144) -- [coreApiShareOperationsToShares1/gettingShares.feature:145](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature#L145) - #### [Public link enforce permissions](https://github.com/owncloud/ocis/issues/1269) - [coreApiSharePublicLink1/createPublicLinkShare.feature:288](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature#L288) @@ -182,23 +177,6 @@ cannot share a folder with create permission - [coreApiShareManagementBasicToShares/deleteShareFromShares.feature:207](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature#L207) - [coreApiShareManagementBasicToShares/deleteShareFromShares.feature:208](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature#L208) -### User Management - -User and group management features - -#### [incorrect ocs(v2) status value when getting info of share that does not exist should be 404, gives 998](https://github.com/owncloud/product/issues/250) - -_ocs: api compatibility, return correct status code_ - -- [coreApiShareOperationsToShares2/shareAccessByID.feature:48](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L48) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:49](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L49) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:50](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L50) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:51](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L51) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:52](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L52) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:53](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L53) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:54](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L54) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:55](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L55) - ### Other API, search, favorites, config, capabilities, not existing endpoints, CORS and others diff --git a/vendor/github.com/asaskevich/govalidator/validator.go b/vendor/github.com/asaskevich/govalidator/validator.go index 46ecfc84a4..c9c4fac065 100644 --- a/vendor/github.com/asaskevich/govalidator/validator.go +++ b/vendor/github.com/asaskevich/govalidator/validator.go @@ -454,27 +454,26 @@ func IsCreditCard(str string) bool { if !rxCreditCard.MatchString(sanitized) { return false } - var sum int64 - var digit string - var tmpNum int64 - var shouldDouble bool - for i := len(sanitized) - 1; i >= 0; i-- { - digit = sanitized[i:(i + 1)] - tmpNum, _ = ToInt(digit) - if shouldDouble { - tmpNum *= 2 - if tmpNum >= 10 { - sum += (tmpNum % 10) + 1 - } else { - sum += tmpNum - } - } else { - sum += tmpNum - } - shouldDouble = !shouldDouble - } + + number, _ := ToInt(sanitized) + number, lastDigit := number / 10, number % 10 - return sum%10 == 0 + var sum int64 + for i:=0; number > 0; i++ { + digit := number % 10 + + if i % 2 == 0 { + digit *= 2 + if digit > 9 { + digit -= 9 + } + } + + sum += digit + number = number / 10 + } + + return (sum + lastDigit) % 10 == 0 } // IsISBN10 checks if the string is an ISBN version 10. diff --git a/vendor/github.com/beevik/etree/CONTRIBUTORS b/vendor/github.com/beevik/etree/CONTRIBUTORS index da47407673..7ae36d4f62 100644 --- a/vendor/github.com/beevik/etree/CONTRIBUTORS +++ b/vendor/github.com/beevik/etree/CONTRIBUTORS @@ -10,3 +10,4 @@ Earncef Sequeira (earncef) Gabriel de Labachelerie (wuzuf) Martin Dosch (mdosch) Hugo Wetterberg (hugowetterberg) +Tobias Theel (nerzal) diff --git a/vendor/github.com/beevik/etree/README.md b/vendor/github.com/beevik/etree/README.md index 62f0babcba..98a4518398 100644 --- a/vendor/github.com/beevik/etree/README.md +++ b/vendor/github.com/beevik/etree/README.md @@ -1,4 +1,5 @@ [![GoDoc](https://godoc.org/github.com/beevik/etree?status.svg)](https://godoc.org/github.com/beevik/etree) +[![Go](https://github.com/beevik/etree/actions/workflows/go.yml/badge.svg)](https://github.com/beevik/etree/actions/workflows/go.yml) etree ===== diff --git a/vendor/github.com/beevik/etree/RELEASE_NOTES.md b/vendor/github.com/beevik/etree/RELEASE_NOTES.md index 4a2ce2ab2d..0194dcd2cd 100644 --- a/vendor/github.com/beevik/etree/RELEASE_NOTES.md +++ b/vendor/github.com/beevik/etree/RELEASE_NOTES.md @@ -1,3 +1,12 @@ +Release v1.3.0 +============== + +**New Features** + +* Add support for double-quotes in filter path queries. +* Add `PreserveDuplicateAttrs` to `ReadSettings`. +* Add `ReindexChildren` to `Element`. + Release v1.2.0 ============== diff --git a/vendor/github.com/beevik/etree/etree.go b/vendor/github.com/beevik/etree/etree.go index 83df8b2f46..f5b99f5f28 100644 --- a/vendor/github.com/beevik/etree/etree.go +++ b/vendor/github.com/beevik/etree/etree.go @@ -46,6 +46,10 @@ type ReadSettings struct { // false. PreserveCData bool + // When an element has two or more attributes with the same name, + // preserve them instead of keeping only one. Default: false. + PreserveDuplicateAttrs bool + // Entity to be passed to standard xml.Decoder. Default: nil. Entity map[string]string } @@ -549,6 +553,15 @@ func (e *Element) name() string { return e.Tag } +// ReindexChildren recalculates the index values of the element's child +// tokens. This is necessary only if you have manually manipulated the +// element's `Child` array. +func (e *Element) ReindexChildren() { + for i := 0; i < len(e.Child); i++ { + e.Child[i].setIndex(i) + } +} + // Text returns all character data immediately following the element's opening // tag. func (e *Element) Text() string { @@ -827,7 +840,7 @@ func (e *Element) readFrom(ri io.Reader, settings ReadSettings) (n int64, err er case xml.StartElement: e := newElement(t.Name.Space, t.Name.Local, top) for _, a := range t.Attr { - e.createAttr(a.Name.Space, a.Name.Local, a.Value, e) + e.createAttr(a.Name.Space, a.Name.Local, a.Value, e, settings.PreserveDuplicateAttrs) } stack.push(e) case xml.EndElement: @@ -1223,17 +1236,20 @@ func (e *Element) addChild(t Token) { // prefix followed by a colon. func (e *Element) CreateAttr(key, value string) *Attr { space, skey := spaceDecompose(key) - return e.createAttr(space, skey, value, e) + return e.createAttr(space, skey, value, e, false) } // createAttr is a helper function that creates attributes. -func (e *Element) createAttr(space, key, value string, parent *Element) *Attr { - for i, a := range e.Attr { - if space == a.Space && key == a.Key { - e.Attr[i].Value = value - return &e.Attr[i] +func (e *Element) createAttr(space, key, value string, parent *Element, preserveDups bool) *Attr { + if !preserveDups { + for i, a := range e.Attr { + if space == a.Space && key == a.Key { + e.Attr[i].Value = value + return &e.Attr[i] + } } } + a := Attr{ Space: space, Key: key, diff --git a/vendor/github.com/beevik/etree/helpers.go b/vendor/github.com/beevik/etree/helpers.go index b31fd754c1..0b7c4ec27d 100644 --- a/vendor/github.com/beevik/etree/helpers.go +++ b/vendor/github.com/beevik/etree/helpers.go @@ -299,10 +299,10 @@ func indentLF(n int, source string) string { } } -// nextIndex returns the index of the next occurrence of sep in s, -// starting from offset. It returns -1 if the sep string is not found. -func nextIndex(s, sep string, offset int) int { - switch i := strings.Index(s[offset:], sep); i { +// nextIndex returns the index of the next occurrence of byte ch in s, +// starting from offset. It returns -1 if the byte is not found. +func nextIndex(s string, ch byte, offset int) int { + switch i := strings.IndexByte(s[offset:], ch); i { case -1: return -1 default: diff --git a/vendor/github.com/beevik/etree/path.go b/vendor/github.com/beevik/etree/path.go index a6d67acee3..491dfc6e82 100644 --- a/vendor/github.com/beevik/etree/path.go +++ b/vendor/github.com/beevik/etree/path.go @@ -242,12 +242,17 @@ func splitPath(path string) []string { var pieces []string start := 0 inquote := false + var quote byte for i := 0; i+1 <= len(path); i++ { - if path[i] == '\'' { - inquote = !inquote - } else if path[i] == '/' && !inquote { - pieces = append(pieces, path[start:i]) - start = i + 1 + if !inquote { + if path[i] == '\'' || path[i] == '"' { + inquote, quote = true, path[i] + } else if path[i] == '/' { + pieces = append(pieces, path[start:i]) + start = i + 1 + } + } else if path[i] == quote { + inquote = false } } return append(pieces, path[start:]) @@ -302,30 +307,34 @@ func (c *compiler) parseFilter(path string) filter { return nil } - // Filter contains [@attr='val'], [fn()='val'], or [tag='val']? - eqindex := strings.Index(path, "='") - if eqindex >= 0 { - rindex := nextIndex(path, "'", eqindex+2) - if rindex != len(path)-1 { - c.err = ErrPath("path has mismatched filter quotes.") - return nil - } - - key := path[:eqindex] - value := path[eqindex+2 : rindex] - - switch { - case key[0] == '@': - return newFilterAttrVal(key[1:], value) - case strings.HasSuffix(key, "()"): - name := key[:len(key)-2] - if fn, ok := fnTable[name]; ok { - return newFilterFuncVal(fn, value) + // Filter contains [@attr='val'], [@attr="val"], [fn()='val'], + // [fn()="val"], [tag='val'] or [tag="val"]? + eqindex := strings.IndexByte(path, '=') + if eqindex >= 0 && eqindex+1 < len(path) { + quote := path[eqindex+1] + if quote == '\'' || quote == '"' { + rindex := nextIndex(path, quote, eqindex+2) + if rindex != len(path)-1 { + c.err = ErrPath("path has mismatched filter quotes.") + return nil + } + + key := path[:eqindex] + value := path[eqindex+2 : rindex] + + switch { + case key[0] == '@': + return newFilterAttrVal(key[1:], value) + case strings.HasSuffix(key, "()"): + name := key[:len(key)-2] + if fn, ok := fnTable[name]; ok { + return newFilterFuncVal(fn, value) + } + c.err = ErrPath("path has unknown function " + name) + return nil + default: + return newFilterChildText(key, value) } - c.err = ErrPath("path has unknown function " + name) - return nil - default: - return newFilterChildText(key, value) } } diff --git a/vendor/github.com/coreos/go-oidc/.gitignore b/vendor/github.com/coreos/go-oidc/.gitignore deleted file mode 100644 index c96f2f47bc..0000000000 --- a/vendor/github.com/coreos/go-oidc/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/bin -/gopath diff --git a/vendor/github.com/coreos/go-oidc/.travis.yml b/vendor/github.com/coreos/go-oidc/.travis.yml deleted file mode 100644 index 3fddaaac90..0000000000 --- a/vendor/github.com/coreos/go-oidc/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: go - -go: - - "1.12" - - "1.13" - -install: - - go get -v -t github.com/coreos/go-oidc/... - - go get golang.org/x/tools/cmd/cover - - go get golang.org/x/lint/golint - -script: - - ./test - -notifications: - email: false diff --git a/vendor/github.com/coreos/go-oidc/CONTRIBUTING.md b/vendor/github.com/coreos/go-oidc/CONTRIBUTING.md deleted file mode 100644 index 6662073a84..0000000000 --- a/vendor/github.com/coreos/go-oidc/CONTRIBUTING.md +++ /dev/null @@ -1,71 +0,0 @@ -# How to Contribute - -CoreOS projects are [Apache 2.0 licensed](LICENSE) and accept contributions via -GitHub pull requests. This document outlines some of the conventions on -development workflow, commit message formatting, contact points and other -resources to make it easier to get your contribution accepted. - -# Certificate of Origin - -By contributing to this project you agree to the Developer Certificate of -Origin (DCO). This document was created by the Linux Kernel community and is a -simple statement that you, as a contributor, have the legal right to make the -contribution. See the [DCO](DCO) file for details. - -# Email and Chat - -The project currently uses the general CoreOS email list and IRC channel: -- Email: [coreos-dev](https://groups.google.com/forum/#!forum/coreos-dev) -- IRC: #[coreos](irc://irc.freenode.org:6667/#coreos) IRC channel on freenode.org - -Please avoid emailing maintainers found in the MAINTAINERS file directly. They -are very busy and read the mailing lists. - -## Getting Started - -- Fork the repository on GitHub -- Read the [README](README.md) for build and test instructions -- Play with the project, submit bugs, submit patches! - -## Contribution Flow - -This is a rough outline of what a contributor's workflow looks like: - -- Create a topic branch from where you want to base your work (usually master). -- Make commits of logical units. -- Make sure your commit messages are in the proper format (see below). -- Push your changes to a topic branch in your fork of the repository. -- Make sure the tests pass, and add any new tests as appropriate. -- Submit a pull request to the original repository. - -Thanks for your contributions! - -### Format of the Commit Message - -We follow a rough convention for commit messages that is designed to answer two -questions: what changed and why. The subject line should feature the what and -the body of the commit should describe the why. - -``` -scripts: add the test-cluster command - -this uses tmux to setup a test cluster that you can easily kill and -start for debugging. - -Fixes #38 -``` - -The format can be described more formally as follows: - -``` -: - - - -