From b45b35014a983cb1e30b0f117b2ab39a15a6064c Mon Sep 17 00:00:00 2001 From: Sagar Gurung <46086950+SagarGi@users.noreply.github.com> Date: Fri, 8 Sep 2023 13:06:37 +0545 Subject: [PATCH] Backport/server panic password set (#7251) * Added test for server getting panic when adding password to a link * Change test case --- .../createPublicLinkShare.feature | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature b/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature index f8bc8ad5ef..ea437133d7 100644 --- a/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature +++ b/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature @@ -413,3 +413,21 @@ Feature: create a public link share | d:href | Then the HTTP status code should be "207" And the value of the item "//d:href" in the response should match "/%base_path%\/remote.php\/dav\/public-files\/%public_token%\/file.txt$/" + + @issue-6929 + Scenario Outline: create a password-protected public link on a file with the name same to the previously deleted one + Given using OCS API version "" + And user "Alice" has uploaded file with content "test data 1" to "/test.txt" + And user "Alice" has created a public link share with settings + | path | test.txt | + | permissions | read | + And user "Alice" has deleted file "test.txt" + When user "Alice" updates the last public link share using the sharing API with + | password | testpassword | + Then the OCS status code should be "998" + And the HTTP status code should be "" + And the OCS status message should be "update public share: resource not found" + Examples: + | ocs-api-version | http-code | + | 1 | 200 | + | 2 | 404 |