Commit Graph
16388 Commits
Author SHA1 Message Date
Ralf Haferkamp ebcca0e678 enhancement(sharing): Return newly created driveItem
When accepting a share via 'POST /v1beta1/drives/{driveId}/root/children'
return the newly created driveItem. This driveItem wraps the accepted
remoteItem representing the shared resource (similar to the
'sharedWithMe' response.

This also refactors some of the helpers for user lookup and CS3 share to
driveItem conversion so they can be more easily shared.

(cherry picked from commit 7edc2febba4cd039c885a748d8f0e70610c2a147)
2024-02-28 17:42:54 +01:00
Ralf Haferkamp d005bb858b enhancement(sharing): Simplify route for accepting shares
In theory creating the driveItem to accepting a shared resource
can be done via '/v1beta1/drives/{drive-id}/item/{item-id}/children'
but there is also the simplified variant via
'/v1beta1/drives/{drive-id}/root/children' (aligned with the example
in the spec). For now we'll just implement the latter because accepting
a share will always be done via root of the sharejail drive.

(cherry picked from commit c8a89e92f1ad662b6931bd8089795228e8492ae6)
2024-02-28 17:42:54 +01:00
Ralf Haferkamp e959faf9da enhancement(graph): refrain from registering routes via the Router interface
After some back an forth we agreed on keeping the routes defined
in a central place for now.

(cherry picked from commit e7985f42b6edf92f0a4344d4f3f8c5e28c23e276)
2024-02-28 17:42:54 +01:00
Ralf Haferkamp 059a77edf3 fix(graph): Remove duplicated routes from router
(cherry picked from commit 54226aee7b594524967a470fcdfa51d66ff8abfd)
2024-02-28 17:42:54 +01:00
Florian SchadeandRalf Haferkamp 321c692ff4 test: add more tests for the DrivesDriveItemService implementation
(cherry picked from commit d48da968af116102b21f1f4397d3f589adbc8ce1)
2024-02-28 17:42:54 +01:00
Florian SchadeandRalf Haferkamp c5bdc5d595 test: improve graph share accept/decline test coverage
(cherry picked from commit 5c3972530eb19a27f24ecfcb7ff0f42682e7b49c)
2024-02-28 17:42:54 +01:00
Florian SchadeandRalf Haferkamp 8d5beee430 enhancement: add DrivesDriveItemApi DeleteDriveItem tests
(cherry picked from commit c10d7dd84bd3cda0270f25356b9931c47be7b889)
2024-02-28 17:42:54 +01:00
Florian SchadeandRalf Haferkamp 43a6d5569f enhancement: add basic share unmount
(cherry picked from commit 877f233bf1d40346f3cb5e2114b5cd0fb464b460)
2024-02-28 17:42:54 +01:00
Florian SchadeandRalf Haferkamp a61adbc85b enhancement: handle share mount errors
(cherry picked from commit 92fc17d1bbc9b7d094fa89f7553aa4f11cc42f3d)
2024-02-28 17:42:54 +01:00
Florian SchadeandRalf Haferkamp cb43cbaee4 enhancement: make use of body driveItem for graph share accept
(cherry picked from commit 796233c8d5a03f90ec49bf6cc2737036373e616d)
2024-02-28 17:42:54 +01:00
Florian SchadeandRalf Haferkamp 50ea1f46e7 enhancement: add basic share accept feature, error handling and detailed implementation still missed
(cherry picked from commit a5b70b3d7a7d4471f97643e5a6ad0a4de12f2b03)
2024-02-28 17:42:54 +01:00
Florian SchadeandRalf Haferkamp 7e07254556 feature(sharing): add endpoints to accept or decline a share
(cherry picked from commit 795d0fcc619947db135025191b421bf5dac20e5e)
2024-02-28 17:42:54 +01:00
Michael Barz 4ff2b70c64 Automated changelog update [skip ci] 2024-02-28 14:13:03 +00:00
Michael BarzandGitHub 798b5ae8bd Merge pull request #8537 from owncloud/backport-configurable-store
Backport configurable store
2024-02-28 15:11:45 +01:00
Jörn Friedrich Dreyer db727ef89c make julianlint happy
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-02-28 10:41:12 +01:00
Jörn Friedrich Dreyer 1e074732be add missing package
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-02-28 10:41:12 +01:00
Jörn Friedrich Dreyer d61bf7404b no longer autostart store
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-02-28 10:41:12 +01:00
f1a8d62ee6 fix typos
Co-authored-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
2024-02-28 10:41:12 +01:00
Jörn Friedrich Dreyer c79f206d50 Make presigned key store configurable
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-02-28 10:41:12 +01:00
Michael BarzandGitHub 66aaa2ed4e Merge pull request #8526 from owncloud/disable-cd
[full-ci] ci: do not deploy from stable branch
2024-02-26 12:14:49 +01:00
Michael Barz 444bbf2de6 ci: do not deploy from stable branch 2024-02-26 11:37:17 +01:00
Michael Barz 766305a451 Automated changelog update [skip ci] 2024-02-26 10:36:02 +00:00
Michael BarzandGitHub 4a447280db Merge pull request #8525 from owncloud/release-5.0.0-rc.5
[full-ci] Release 5.0.0 rc.5
2024-02-26 11:35:26 +01:00
Michael Barz 0ecdfae5cb chore: bump version 2024-02-26 10:44:24 +01:00
Michael Barz 5d894c2f3b docs: prepare changelog 2024-02-26 10:37:27 +01:00
Michael Barz ece9f5324b Automated changelog update [skip ci] 2024-02-23 14:07:19 +00:00
Michael BarzandGitHub 68662834c6 Merge pull request #8521 from owncloud/backmerge-master-4
[full-ci] Backmerge master to stable-5.0
2024-02-23 15:06:14 +01:00
Michael Barz 3cdd007b7f Merge branch 'master' into backmerge-master-4 2024-02-23 13:35:54 +01:00
Michael Barz b6a6cb2b8e Automated changelog update [skip ci] 2024-02-23 11:46:05 +00:00
Michael BarzandGitHub aba4714bb7 Merge pull request #8519 from owncloud/update-reva
[full-ci] chore: update reva to 2.19.0
2024-02-23 12:45:32 +01:00
Michael Barz 53baa60172 chore: update reva to 2.19.0 2024-02-23 12:10:42 +01:00
Viktor ScharfandGitHub ad7cf8f77a [test-only] add test for uploading with Tus using CORS (#8508)
* add test for uploading with Tus using CORS

* fix
2024-02-23 11:47:52 +01:00
Sawjan GurungandGitHub 3cea035d6d [tests-only] use new json schema assertion lib that supports latest schema drafts (#8503)
* test(api): use new json schema assertion lib that supports latest schema drafts

* test(api): fix json schema

* test(api): fix method call

* test(api): update expected failure lines

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): make json array validation strict

* test(api): fix php code style

* test(api): update expected failure lines
2024-02-23 16:24:22 +05:45
ownClouders ee501f225e [tx] updated from transifex 2024-02-23 00:47:43 +00:00
dependabot[bot]andRalf Haferkamp c13aefed84 build(deps): bump google.golang.org/grpc from 1.61.1 to 1.62.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.61.1 to 1.62.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.61.1...v1.62.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-22 17:13:03 +01:00
ownClouders 2a300190cb [tx] updated from transifex 2024-02-22 03:58:21 +00:00
Christian Richter 9da1043d54 Automated changelog update [skip ci] 2024-02-21 16:36:55 +00:00
Christian RichterandGitHub b0ecf5f9d8 Merge pull request #8505 from dragonchaser/bump-reva
bump reva
2024-02-21 17:36:13 +01:00
Christian Richter c637069852 bump reva
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-02-21 16:44:28 +01:00
Jörn Friedrich Dreyer 014dce49f2 Automated changelog update [skip ci] 2024-02-21 15:29:49 +00:00
Jörn Friedrich DreyerandGitHub b52e466935 bump reva for unnecessary-grant-exists-check (#8502)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-02-21 16:29:16 +01:00
Ralf Haferkamp 8909b5307b Automated changelog update [skip ci] 2024-02-21 12:26:22 +00:00
Ralf HaferkampandGitHub b6fea0faed [full-ci] fix(sharing-ng): align sharedWithMe driveItem IDs with PROPFIND response (#8467)
* Bump reva

Fixes: #8080

* fix(sharing-ng): align sharedWithMe driveItem IDs

The IDs of the driveItems returned by the 'sharedWithMe' endpoint
should match the ids returned by the webdav PROPFIND response on
the share jail.

Fixes: #8420
2024-02-21 13:25:49 +01:00
Prarup GurungandGitHub 7772455492 Merge pull request #8501 from owncloud/tests/make-json-scheme-strict
[tests-only] make json scheme assertion strict
2024-02-21 16:43:31 +05:45
Saw-jan 497bffba1c test(api): make json scheme strict 2024-02-21 16:10:56 +05:45
Saw-jan 0b0ae60d9d test(api): make json scheme strict 2024-02-21 16:10:55 +05:45
Viktor ScharfandGitHub 5a89c3605f [test-only] share items with share permission if resharing is disabled (#8461)
* share item with share permission if resharing is disabled

* php style fix

* change error message
2024-02-21 11:14:58 +01:00
Jörn Friedrich DreyerandGitHub 5ed57cc09a Bump reva deps (#8412)
* bump dependencies

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* bump reva and add config options

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-02-21 10:20:36 +01:00
AmritaandGitHub c92ebf4b46 [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
2024-02-21 14:54:40 +05:45
dependabot[bot]andRalf Haferkamp d2d4fcd43b 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] <support@github.com>
2024-02-21 09:09:23 +01:00