Commit Graph
32 Commits
Author SHA1 Message Date
Dominik Schmidt 359dd2f267 feat(graph): expose the sharer as the owner of a public link drive
The public share mountpoint carries no space owner, so GET /drives/{pub}
came back without one and the drop page had no name to show. The request
runs as the share creator (publicshares auth), so the context user is who
shared the link; fill drive.Owner from it, id and display name, the same
source webdav fills oc:owner-display-name from. Deliberate disclosure to the
anonymous visitor, matching webdav and MS Graph's sharedDriveItem.owner.
2026-09-08 11:21:02 +02:00
Dominik Schmidt 1e6d2ec168 test(acceptance): pin that writes through the public link surface are rejected
createLink, delete, rename and listing permissions on the beta routes all
fail even for an edit link, and the file survives; measured, no 500s.
2026-09-08 11:21:02 +02:00
Dominik Schmidt 6727cec526 test(acceptance): pin the closed surface around a public link
Drives collection, the owner's personal drive, real drive id addressing, a
foreign link's drive and share type disclosure all answer 401 or omit the
data.
2026-09-08 11:21:02 +02:00
Dominik Schmidt 5b260877dc test(acceptance): pin the upload session authorization on public links
An editable link grants an upload session, a view only link answers 404. The
returned endpoint is not reachable from outside: CreateUploadSession hands
out the internal data server url, for authenticated callers just the same,
so the byte transfer stays with the graph upload work.
2026-09-08 11:21:02 +02:00
Dominik Schmidt a9822a7e24 style: satisfy the gherkin and php linters 2026-09-08 11:21:02 +02:00
Dominik Schmidt f640858427 test(acceptance): pin the item anchored colon path in a public link 2026-09-08 11:21:02 +02:00
Dominik Schmidt d18c1a1edb fix(graph): advertise only what the public link grants
Navigating by id bypasses the publicstorageprovider, so the permission sets
are the owner's: a view-only link advertised delete and upload on items below
the root. Intersect with the link's permissions, the same reduction the
publicstorageprovider applies on its own responses; enforcement was always
intact through the token scope.
2026-09-08 11:21:02 +02:00
Dominik Schmidt aa03c6c742 test(acceptance): list public links via the graph api 2026-09-08 11:21:02 +02:00
Viktor Scharf 76ff13b47e api-test: replace sleeps with WaitHelper poll for async state (#3239)
* api-test: replace sleeps with WaitHelper poll for async state

* php-style
2026-08-05 09:23:57 +02:00
Viktor Scharf a53eb44083 steps refactoring (#3100) 2026-07-14 09:32:35 +02:00
Dominik Schmidt 3b42c6250d test(graph): acceptance tests for MS Graph colon-syntax path lookup
Cover the rewrite shapes the middleware handles end-to-end against a
real OpenCloud server: root-anchored, item-anchored, deep paths,
trailing colon, and the "/<path>:/<suffix>" sub-route form. Also
assert that NOT_FOUND and PERMISSION_DENIED both collapse to 404.

The /permissions sub-route is registered only at /v1beta1, and the
v1beta1 GetDriveItem handler is share-jail-only, so the v1beta1
mount of the middleware is exercised through the permissions
scenario, since there is no other v1beta1 endpoint that works for
regular personal-drive items.
2026-07-01 17:44:31 +02:00
André Duffeck 92e6c8f3ff Do not choke on users that weren't cleaned up yet 2026-06-12 15:13:32 +02:00
Viktor Scharf e161069317 favorites tests (#2474) 2026-03-16 14:49:17 +01:00
Viktor Scharf f04f6ad470 [full-ci] feat: implement OIDC authentication option (#1676)
* feat: implement Bearer Token authentication option

* fix
2025-10-27 11:17:44 +01:00
Viktor Scharf 07a8fef80e fix clicommand test 2025-10-08 16:45:16 +02:00
Viktor Scharf 0399398bc8 do not save edited users 2025-10-08 16:45:16 +02:00
Viktor Scharf 681ed49dc4 deleting user by userId in test 2025-10-08 16:45:16 +02:00
Viktor Scharf 723340dba6 [full-ci] getting personal space by userId instead of userName (#1553)
* getting personal space by userId instead of userName

* delete geting userId via api call

* add new created user id to user list

* fix after review
2025-09-26 10:51:41 +02:00
Jörn Friedrich Dreyer a5c9cbc26e drop project reference in testsuite headers, copyright and license remain
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-29 17:20:44 +01:00
Viktor Scharf 9db4693a9e rebranding tests 2025-01-16 17:39:02 +01:00
Niraj Acharya 089ccc1ca3 updating lint rules for test code 2024-12-30 09:18:45 +05:45
Saw-jan 73d89721c6 test: fix addUserToGroup param 2024-11-27 14:54:17 +05:45
Saw-jan f86d137f87 test: make remote.php configurable
test: build dav paths

test: fix paths

test: merge method args

test: add issue tags

test: add new expected failure file

test: merge expected-failure files before running tests
2024-10-21 16:57:58 +05:45
Sawjan Gurung 9f8b7eba17 Merge pull request #10234 from owncloud/tests-limit-with-sort-activities
[tests-only][full-ci] add test to check api activities with limit and sort filter
2024-10-08 16:33:44 +05:45
prashant-gurung899 d09859827d add test to check api activities with limit and sort filter
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-10-08 15:55:04 +05:45
Saw-jan ca76f79be3 test: get necessary contexts properly 2024-10-08 15:17:44 +05:45
Niraj Acharya 91eff34adc ref test code 2024-10-08 10:08:15 +05:45
prashant-gurung899 8f858dad9d add test to check api activities with sort filter
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-10-07 14:40:32 +05:45
prashant-gurung899 234a1ff2b9 add tests to check activites of space after updating public share link
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-10-03 09:49:47 +05:45
prashant-gurung899 59673bb176 add test to check acivities by sharee
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-09-26 11:38:14 +05:45
Viktor Scharf 99ecc5a752 adjust ocm sharing tests 2024-09-24 15:59:10 +02:00
prashant-gurung899 d8d7b700cd reorganize test folders within the acceptance directory
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-08-28 14:54:45 +05:45