From 10788e3ba45781ca9098af7e5b0ecabde96373f7 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Mon, 18 Mar 2024 16:11:04 +0545 Subject: [PATCH] Added PROPFIND tests for resource having bracket in name --- .../apiSharingNg/propfindShares.feature | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tests/acceptance/features/apiSharingNg/propfindShares.feature b/tests/acceptance/features/apiSharingNg/propfindShares.feature index 8a8188f170..6351e72d31 100644 --- a/tests/acceptance/features/apiSharingNg/propfindShares.feature +++ b/tests/acceptance/features/apiSharingNg/propfindShares.feature @@ -88,3 +88,35 @@ Feature: propfind a shares | old | folderToShare | folderToShare (1) | | new | textfile.txt | textfile (1).txt | | new | folderToShare | folderToShare (1) | + + @issue-4421 + Scenario: sharee PROPFIND shares with bracket in the name + Given using spaces DAV path + And user "Alice" has created folder "folderToShare" + And user "Alice" has uploaded file with content "to share" to "folderToShare/textfile.txt" + And user "Carol" has created folder "folderToShare" + And user "Carol" has uploaded file with content "to share" to "folderToShare/textfile.txt" + 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" sends PROPFIND request from the space "Shares" to the resource "folderToShare (1)" using the WebDAV API + Then the HTTP status code should be "207" + And the "PROPFIND" response to user "Brian" should contain a mountpoint "folderToShare (1)" with these key and value pairs: + | key | value | + | oc:fileid | UUIDof:folderToShare (1) | + | oc:name | folderToShare | + | oc:permissions | SR | + And the "PROPFIND" response to user "Brian" should contain a mountpoint "folderToShare (1)" with these key and value pairs: + | key | value | + | oc:fileid | UUIDof:textfile.txt | + | oc:name | textfile.txt | + | oc:permissions | SR |