Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly failure with 502 status code on PROPFIND request #9659

Closed
PrajwolAmatya opened this issue Jul 22, 2024 · 4 comments
Closed

Nightly failure with 502 status code on PROPFIND request #9659

PrajwolAmatya opened this issue Jul 22, 2024 · 4 comments
Labels

Comments

@PrajwolAmatya
Copy link
Contributor

Description

Most of the scenario has failed with error FeatureContext::getResponseXml Received empty response where XML was expected (Exception) with 502 status code during the PROPFIND request while sending share invitation in mediaTypeSearch.feature and tagSearch.feature files.
Build: https://drone.owncloud.com/owncloud/ocis/37330/29/5

Some failed Scenarios:

Scenario Outline: sharee searches for shared files using media type                                    # /drone/src/tests/acceptance/features/apiSearch2/mediaTypeSearch.feature:101
    Given user "Alice" has created folder "/uploadFolder"                                                # FeatureContext::userHasCreatedFolder()
    And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/uploadFolder/lorem.txt"           # FeatureContext::userHasUploadedAFileTo()
    And user "Alice" has uploaded file "filesForUpload/simple.pdf" to "/uploadFolder/simple.pdf"         # FeatureContext::userHasUploadedAFileTo()
    And user "Alice" has uploaded file "filesForUpload/testavatar.jpg" to "/uploadFolder/testavatar.jpg" # FeatureContext::userHasUploadedAFileTo()
    And user "Alice" has uploaded file "filesForUpload/testavatar.png" to "/uploadFolder/testavatar.png" # FeatureContext::userHasUploadedAFileTo()
    And user "Alice" has uploaded file "filesForUpload/data.tar.gz" to "/uploadFolder/data.tar.gz"       # FeatureContext::userHasUploadedAFileTo()
    And user "Alice" has uploaded file "filesForUpload/data.tar" to "/uploadFolder/data.tar"             # FeatureContext::userHasUploadedAFileTo()
    And user "Alice" has uploaded file "filesForUpload/data.7z" to "/uploadFolder/data.7z"               # FeatureContext::userHasUploadedAFileTo()
    And user "Alice" has uploaded file "filesForUpload/data.rar" to "/uploadFolder/data.rar"             # FeatureContext::userHasUploadedAFileTo()
    And user "Alice" has uploaded file "filesForUpload/data.tar.bz2" to "/uploadFolder/data.tar.bz2"     # FeatureContext::userHasUploadedAFileTo()
    And user "Alice" has sent the following resource share invitation:                                   # SharingNgContext::userHasSentTheFollowingResourceShareInvitation()
      | resource        | uploadFolder |
      | space           | Personal     |
      | sharee          | Brian        |
      | shareType       | user         |
      | permissionsRole | Viewer       |
    When user "Brian" searches for "mediatype:<pattern>" using the WebDAV API                            # SearchContext::userSearchesUsingWebDavAPI()
    Then the HTTP status code should be "207"                                                            # FeatureContext::thenTheHTTPStatusCodeShouldBe()
    And the search result should contain "1" entries                                                     # FeatureContext::propfindResultShouldContainNumEntries()
    And the search result of user "Alice" should contain these entries:                                  # FeatureContext::thePropfindResultShouldContainEntries()
      | <search-result> |

    Examples:
      | pattern | search-result                |
      | *text*  | /uploadFolder/lorem.txt      |
        Failed step: And user "Alice" has sent the following resource share invitation:
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)
      | *pdf*   | /uploadFolder/simple.pdf     |
        Failed step: And user "Alice" has sent the following resource share invitation:
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)
      | *jpeg*  | /uploadFolder/testavatar.jpg |
        Failed step: And user "Alice" has sent the following resource share invitation:
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)
      | *png*   | /uploadFolder/testavatar.png |
        Failed step: And user "Alice" has sent the following resource share invitation:
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)
      | *gzip*  | /uploadFolder/data.tar.gz    |
        Failed step: And user "Alice" has sent the following resource share invitation:
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)
      | *tar*   | /uploadFolder/data.tar       |
        Failed step: And user "Alice" has sent the following resource share invitation:
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)
      | *7z*    | /uploadFolder/data.7z        |
        Failed step: And user "Alice" has sent the following resource share invitation:
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)
      | *rar*   | /uploadFolder/data.rar       |
        Failed step: And user "Alice" has sent the following resource share invitation:
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)
      | *bzip2* | /uploadFolder/data.tar.bz2   |
        Failed step: And user "Alice" has sent the following resource share invitation:
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)
Scenario Outline: search project space folders by tag                                                 # /drone/src/tests/acceptance/features/apiSearch2/tagSearch.feature:92
    Given using spaces DAV path                                                                         # FeatureContext::usingOldOrNewDavPath()
    And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API       # GraphContext::theAdministratorHasGivenTheRoleUsingTheGraphApi()
    And user "Alice" has created a space "tag-space" with the default quota using the Graph API         # SpacesContext::theUserHasCreatedASpaceByDefaultUsingTheGraphApi()
    And user "Alice" has created a folder "spacesFolder/spacesSubFolder" in space "tag-space"           # SpacesContext::userHasCreatedAFolderInSpace()
    And user "Alice" has created a folder "unTagSpacesFolder/unTagSpacesSubFolder" in space "tag-space" # SpacesContext::userHasCreatedAFolderInSpace()
    And user "Alice" has tagged the following folders of the space "tag-space":                         # TagContext::userHasCreatedTheFollowingTagsForFilesOfTheSpace()
      | path                         | tagName |
      | spacesFolder                 | tag1    |
      | spacesFolder/spacesSubFolder | tag1    |
    And using <dav-path-version> DAV path                                                               # FeatureContext::usingOldOrNewDavPath()
    When user "Alice" searches for "Tags:tag1" using the WebDAV API                                     # SearchContext::userSearchesUsingWebDavAPI()
    Then the HTTP status code should be "207"                                                           # FeatureContext::thenTheHTTPStatusCodeShouldBe()
    And the search result of user "Alice" should contain only these files:                              # FeatureContext::thePropfindResultShouldContainOnlyEntries()
      | spacesFolder                 |
      | spacesFolder/spacesSubFolder |

    Examples:
      | dav-path-version |
      | old              |
        Failed step: And user "Alice" has tagged the following folders of the space "tag-space":
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)
      | new              |
        Failed step: And user "Alice" has tagged the following folders of the space "tag-space":
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)
      | spaces           |
        Failed step: And user "Alice" has tagged the following folders of the space "tag-space":
        FeatureContext::getResponseXml Received empty response where XML was expected (Exception)

oCIS log:

==> REQUEST
PROPFIND /dav/spaces/d58bdaef-9ef1-47c9-93ff-c1bcf474c5b6$47c5fed8-99e1-49a7-b98e-28d13d99c632/uploadFolder
X-Request-ID: apiSearch2/mediaTypeSearch.feature:130-112

<== RESPONSE
502 Bad Gateway
Content-Length: 0
@saw-jan
Copy link
Member

saw-jan commented Jul 22, 2024

Ocis server error:

{
  "level": "error",
  "service": "com.owncloud.web.ocdav",
  "error": "not found",
  "time": "2024-07-22T00:51:06Z",
  "message": "could not select service from the registry"
}

@phil-davis
Copy link
Contributor

Hopefully fixed by cs3org/reva#4774

Need to confirm after that is merged in reva, and then pulled into ocis.

@kobergj
Copy link
Collaborator

kobergj commented Jul 22, 2024

Corresponding ocis PR: #9662

@saw-jan
Copy link
Member

saw-jan commented Jul 22, 2024

Closing here as the fix PR is merged

@saw-jan saw-jan closed this as completed Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants