@@ -84,7 +84,7 @@ Feature: Sharing user
84
84
When User "test2" deletes file "/subdir/foobar.txt"
85
85
Then The webdav response should have a status code "403"
86
86
87
- Scenario : Upload and share a file that is allowed by mimetype exludes
87
+ Scenario : Upload and share a file that is allowed by mimetype excludes
88
88
And user "admin" creates global flow with 200
89
89
| name | Admin flow |
90
90
| class | OCA \FilesAccessControl \Operation |
@@ -102,7 +102,7 @@ Feature: Sharing user
102
102
And Downloading file "/nextcloud.pdf" as "test2"
103
103
And The webdav response should have a status code "200"
104
104
105
- Scenario : Share a file that is allowed by mimetype exludes
105
+ Scenario : Share a file that is allowed by mimetype excludes
106
106
Given User "test1" uploads file "data/nextcloud.pdf" to "/nextcloud2.pdf"
107
107
And The webdav response should have a status code "201"
108
108
And user "test1" shares file "/nextcloud2.pdf" with user "test2"
@@ -117,4 +117,58 @@ Feature: Sharing user
117
117
| checks -0 | {"class ":"OCA \\WorkflowEngine \\Check \\FileMimeType ", "operator ": "!is ", "value ": "httpd /directory "} |
118
118
| checks -1 | {"class ":"OCA \\WorkflowEngine \\Check \\FileMimeType ", "operator ": "!is ", "value ": "application /pdf "} |
119
119
And Downloading file "/nextcloud2.pdf" as "test2"
120
- And The webdav response should have a status code "200"
120
+ And The webdav response should have a status code "200"
121
+
122
+ Scenario : Jailed storage cache bug blocking first
123
+ Given Ensure tag exists
124
+ Given User "test1" uploads file "data/textfile.txt" to "/nextcloud2.txt"
125
+ And The webdav response should have a status code "201"
126
+ Given User "test1" uploads file "data/textfile.txt" to "/nextcloud3.txt"
127
+ And The webdav response should have a status code "201"
128
+ And user "test1" shares file "/nextcloud2.txt" with user "test2"
129
+ And Downloading file "/nextcloud2.txt" as "test2"
130
+ And The webdav response should have a status code "200"
131
+ And user "test1" shares file "/nextcloud3.txt" with user "test2"
132
+ And Downloading file "/nextcloud3.txt" as "test2"
133
+ And The webdav response should have a status code "200"
134
+ And user "test1" tags file "/nextcloud2.txt"
135
+ When user "admin" creates global flow with 200
136
+ | name | Admin flow |
137
+ | class | OCA \FilesAccessControl \Operation |
138
+ | entity | OCA \WorkflowEngine \Entity \File |
139
+ | events | [] |
140
+ | operation | deny |
141
+ | checks -0 | {"class ":"OCA \\WorkflowEngine \\Check \\FileSystemTags ", "operator ": "is ", "value ": "{{{FILES_ACCESSCONTROL_INTEGRATIONTEST_TAGID }}}"} |
142
+ Then Downloading file "/nextcloud2.txt" as "test2"
143
+ And The webdav response should have a status code "404"
144
+ And Downloading file "/nextcloud3.txt" as "test2"
145
+ And The webdav response should have a status code "200"
146
+ And user "test2" should see following elements
147
+ | /nextcloud3 .txt |
148
+
149
+ Scenario : Jailed storage cache bug blocking last
150
+ Given Ensure tag exists
151
+ Given User "test1" uploads file "data/textfile.txt" to "/nextcloud2.txt"
152
+ And The webdav response should have a status code "201"
153
+ Given User "test1" uploads file "data/textfile.txt" to "/nextcloud3.txt"
154
+ And The webdav response should have a status code "201"
155
+ And user "test1" shares file "/nextcloud2.txt" with user "test2"
156
+ And Downloading file "/nextcloud2.txt" as "test2"
157
+ And The webdav response should have a status code "200"
158
+ And user "test1" shares file "/nextcloud3.txt" with user "test2"
159
+ And Downloading file "/nextcloud3.txt" as "test2"
160
+ And The webdav response should have a status code "200"
161
+ And user "test1" tags file "/nextcloud3.txt"
162
+ When user "admin" creates global flow with 200
163
+ | name | Admin flow |
164
+ | class | OCA \FilesAccessControl \Operation |
165
+ | entity | OCA \WorkflowEngine \Entity \File |
166
+ | events | [] |
167
+ | operation | deny |
168
+ | checks -0 | {"class ":"OCA \\WorkflowEngine \\Check \\FileSystemTags ", "operator ": "is ", "value ": "{{{FILES_ACCESSCONTROL_INTEGRATIONTEST_TAGID }}}"} |
169
+ Then Downloading file "/nextcloud2.txt" as "test2"
170
+ And The webdav response should have a status code "200"
171
+ And Downloading file "/nextcloud3.txt" as "test2"
172
+ And The webdav response should have a status code "404"
173
+ And user "test2" should see following elements
174
+ | /nextcloud2 .txt |
0 commit comments