Commit Graph
22 Commits
Author SHA1 Message Date
Gaurav Soni ef41e736d1 fix: [OCISDEV-388] renaming a resource to its current name is a no-op (#12784)
A MOVE whose source and destination resolve to the same resource is now
answered with 204 No Content server side instead of a confusing 403 or
404, and instead of 409 Conflict on the id based dav route, so every
client behaves the same way. The no-op still requires the move
permission.

The server-side guard lives in reva (owncloud/reva#708 and the follow-up
owncloud/reva#713, which moves the guard above the recursion checks so it
is also reached when the request addresses the resource by its id).
Pulled in here by bumping reva to v2.0.0-20260813121157-d386075a0421.
vendor/ was regenerated with `go mod vendor`; no hand edits.

On the test side the @issue-1976 tags are dropped from the five MOVE
feature files and the corresponding entries are removed from both
expected-failures lists. Scenario Outlines that mix roles with and
without the move permission parameterize the expected status in an extra
http-status-code Examples column rather than being split into duplicate
scenarios. The gherlint newline_before_scenario rule is configured as
["error", 2, true], counting tag lines toward the total, so the eight
scenarios that lost their tag get back the blank line it occupied.

Drop the "viewer" row from the same-name Examples table in
moveByFileId.feature: "viewer" is not a valid space role for a
permissionsRole invitation, so the step errored with
Role 'viewer' not found, and the "Space Viewer" row already covers
the 403.
2026-08-14 10:50:35 +02:00
Ashim-Stha eb273c742b test: add test for moving folder with Transfer-Encoding: chunked header
Signed-off-by: Ashim-Stha <ashimshrestha2384@gmail.com>
2025-08-04 10:08:40 +05:45
Niraj Acharya c98841904d removing without skeleton files string from the user creation steps 2024-12-02 09:12:57 +05:45
Sabin d7b237eee2 updated feature file to remove trailing slash for folder propfind request 2024-11-13 09:53:49 +05:45
Saw-jan f5edb57d33 test: fix tests and issue number 2024-08-13 12:05:44 +05:45
amrita e3195eed24 remove reve master tag 2024-07-08 14:48:40 +05:45
Prarup Gurung ded54d7a1a Adjusted test as .htaccess is not banned file 2024-06-24 09:36:59 +05:45
Sawjan Gurung 5c7c363e2b [tests-only] add API tests for file download and rename edge cases (#9018)
* test: add API tests to download deleted file

* test: add more MOVE/rename API tests

* do not reuse step def method

* remove unused step

* fix typo

* fix tests

* update expected failure

* update expected failure
2024-05-02 12:21:35 +05:45
Prarup Gurung ba7d91ebce Used kebab case for example table header name 2024-03-21 09:06:38 +05:45
nirajacharya2 5f93a22eb9 removing @api tag from all acceptance feature files (#7027) 2023-08-16 09:29:00 +05:45
Sabin Panta f2498e1fdf Refactoring example table scenerio (#6697) 2023-07-12 12:42:32 +05:45
prajwol ab1de656ad refactoring feature files 2023-06-08 13:03:46 +05:45
Prarup Gurung d31f544a9f [full-ci] [tests-only] Removed tag personalSpace, and refactored the example tables (#6250)
* Refactored personalSpace tagged scenarios

* Fixed line numbers in expected failure
2023-05-25 17:50:00 +05:45
amrita 56a64b98ee Remove tag skipOnOcV10 2023-05-04 12:42:14 +05:45
sagargurung1001@gmail.com b1c01f5291 Create specific tag to skip on master 2023-04-20 15:25:06 +05:45
sagargurung1001@gmail.com 24994a45ab Add skip on reva Tag 2023-04-20 14:08:31 +05:45
Prarup Gurung f3bf0894fc Removed core issue tag, refactored ocis-reva, ocis issue tag 2023-03-31 17:27:18 +05:45
Prarup Gurung d09d29df9e Removed scenarios, system configuration setting is not available 2023-02-28 13:03:05 +05:45
Prarup Gurung 8541081d76 Removed system config setting steps 2023-02-28 11:21:06 +05:45
Prarup Gurung 5a46a19f99 Fixed line numbers in expected failure 2023-02-21 15:13:24 +05:45
Prarup Gurung 984f848cbd Removed scenarios tagged with notToImplementOnOcis tag 2023-02-15 09:05:07 +05:45
Saw-jan c59392bc1e copy feature files from core 2023-01-05 09:22:52 +05:45