-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Labels
Description
CI Pipelines:
- https://ci.opencloud.rocks/repos/3/pipeline/772/198
- https://ci.opencloud.rocks/repos/3/pipeline/789/291
- https://ci.opencloud.rocks/repos/3/pipeline/790/198
- https://ci.opencloud.rocks/repos/3/pipeline/1265/291
Server log:
# log 1
POST /app/open-with-web
QUERY: file_id=90d06148-05f0-4c05-b122-60b6db597512$6c58567a-3cda-44e3-8f43-6415f23576db!9f603e0c-df8a-424e-bf00-81a88f9e24aa&app_name=FakeOffice&view_mode=write
X-Request-ID: apiCollaboration/wopi.feature:495-474
<== RESPONSE
500 Internal Server Error
X-Xss-Protection: 1; mode=block
<== RES BODY
{
"code": "SERVER_ERROR",
"message": "Error contacting the requested application, please use a different one or try again later"
}
# log 2
POST /app/open
QUERY: app_name=OnlyOffice&file_id=d5186691-e359-437a-b3ca-3f04acd1ffb5$c4d0780f-99f8-413e-94ad-0d841cf27fbb!337384c5-f8fa-4eb5-a9fb-6ab39fad0569&view_mode=write
X-Request-ID: apiCollaboration/checkFileInfo.feature:400-308
<== RESPONSE
500 Internal Server Error
X-Xss-Protection: 1; mode=block
<== RES BODY
{
"code": "SERVER_ERROR",
"message": "Error contacting the requested application, please use a different one or try again later"
}Scenarios:
Scenario Outline: open file with .odt extension with different view mode (open-with-web) # /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/apiCollaboration/wopi.feature:471
Given user "Alice" has uploaded file "filesForUpload/simple.odt" to "simple.odt" # FeatureContext::userHasUploadedAFileTo()
And we save it into "FILEID" # FeatureContext::saveItInto()
When user "Alice" sends HTTP method "POST" to URL "<app-endpoint>" # FeatureContext::userSendsHTTPMethodToUrl()
Then the HTTP status code should be "200" # FeatureContext::thenTheHTTPStatusCodeShouldBe()
...
Examples:
| app-endpoint |
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice&view_mode=view |
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice&view_mode=read |
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice&view_mode=write |
Failed step: Then the HTTP status code should be "200"
HTTP status code 500 is not the expected value 200
Failed asserting that 500 matches expected '200'. Scenario: check file info with onlyOffice # /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/apiCollaboration/checkFileInfo.feature:214
Given user "Alice" has uploaded file with content "hello world" to "/textfile0.txt" # FeatureContext::userHasUploadedAFileWithContentTo()
When user "Alice" checks the information of file "textfile0.txt" of space "Personal" using office "OnlyOffice" # CollaborationContext::userChecksTheInformationOfFileOfSpaceUsingOffice()
Warning: Undefined property: stdClass::$form_parameters in /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/bootstrap/CollaborationContext.php line 107 Scenario Outline: check file info with different mode (onlyOffice) # /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/apiCollaboration/checkFileInfo.feature:306
Given user "Alice" has uploaded file with content "hello world" to "/textfile0.txt" # FeatureContext::userHasUploadedAFileWithContentTo()
When user "Alice" checks the information of file "textfile0.txt" of space "Personal" using office "OnlyOffice" with view mode "<mode>" # CollaborationContext::userChecksTheInformationOfFileOfSpaceUsingOffice()
Then the HTTP status code should be "200"
...
Examples:
| mode | disable-print | user-can-write | user-can-rename |
| view | true | false | false |
Failed step: When user "Alice" checks the information of file "textfile0.txt" of space "Personal" using office "OnlyOffice" with view mode "view"
Warning: Undefined property: stdClass::$form_parameters in /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/bootstrap/CollaborationContext.php line 107
| read | false | false | false |
Failed step: When user "Alice" checks the information of file "textfile0.txt" of space "Personal" using office "OnlyOffice" with view mode "read"
Warning: Undefined property: stdClass::$form_parameters in /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/bootstrap/CollaborationContext.php line 107
| write | false | true | true |
Failed step: When user "Alice" checks the information of file "textfile0.txt" of space "Personal" using office "OnlyOffice" with view mode "write"
Warning: Undefined property: stdClass::$form_parameters in /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/bootstrap/CollaborationContext.php line 107 Scenario Outline: try to get file info using invalid file id with office suites # /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/apiCollaboration/checkFileInfo.feature:617
Given user "Alice" has uploaded file with content "hello world" to "/textfile0.txt" # FeatureContext::userHasUploadedAFileWithContentTo()
When user "Alice" tries to check the information of file "textfile0.txt" of space "Personal" using office "<office-suites>" with invalid file-id # CollaborationContext::userTriesToCheckTheInformationOfFileOfSpaceUsingOfficeWithInvalidFileId()
Then the HTTP status code should be "401" # FeatureContext::thenTheHTTPStatusCodeShouldBe()
Examples:
| office-suites |
| Collabora |
| FakeOffice |
| OnlyOffice |
Failed step: When user "Alice" tries to check the information of file "textfile0.txt" of space "Personal" using office "OnlyOffice" with invalid file-id
Warning: Undefined property: stdClass::$form_parameters in /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/bootstrap/CollaborationContext.php line 260 Scenario Outline: try to get file info of deleted file with office suites # /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/apiCollaboration/checkFileInfo.feature:628
Given user "Alice" has uploaded file with content "hello world" to "/textfile0.txt" # FeatureContext::userHasUploadedAFileWithContentTo()
And user "Alice" has sent the following app-open request: # CollaborationContext::userHasSentTheFollowingAppOpenRequest()
| resource | textfile0.txt |
| space | Personal |
| app | <office-suites> |
And user "Alice" has deleted file "/textfile0.txt" # FeatureContext::userHasDeletedResource()
When user "Alice" tries to get the information of the last opened file using wopi endpoint # CollaborationContext::userGetsTheInformationOfTheLastOpenedFileUsingWopiEndpoint()
Then the HTTP status code should be "404" # FeatureContext::thenTheHTTPStatusCodeShouldBe()
Examples:
| office-suites |
| Collabora |
| FakeOffice |
| OnlyOffice |
Failed step: And user "Alice" has sent the following app-open request:
HTTP status code 500 is not the expected value 200
Failed asserting that 500 matches expected 200.