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

OCS status code zero #3621

Closed
phil-davis opened this issue Apr 29, 2022 · 7 comments
Closed

OCS status code zero #3621

phil-davis opened this issue Apr 29, 2022 · 7 comments
Assignees
Labels

Comments

@phil-davis
Copy link
Contributor

While bumping the core commit id for API tests, there is this new failure:
https://drone.owncloud.com/owncloud/ocis/11072/27/6

  Scenario: Keep usergroup shares when the user renames the share within the Shares folder(#22143) # /srv/app/testrunner/tests/acceptance/features/apiShareManagementToShares/moveReceivedShare.feature:32
    Given group "grp1" has been created                                                            # FeatureContext::groupHasBeenCreated()
    And user "Brian" has been added to group "grp1"                                                # FeatureContext::userHasBeenAddedToGroup()
    And user "Carol" has been added to group "grp1"                                                # FeatureContext::userHasBeenAddedToGroup()
    And user "Alice" has created folder "/TMP"                                                     # FeatureContext::userHasCreatedFolder()
    When user "Alice" shares folder "TMP" with group "grp1" using the sharing API                  # FeatureContext::userSharesFileWithGroupUsingTheSharingApi()
    And user "Brian" accepts share "/TMP" offered by user "Alice" using the sharing API            # FeatureContext::userReactsToShareOfferedBy()
    And user "Carol" accepts share "/TMP" offered by user "Alice" using the sharing API            # FeatureContext::userReactsToShareOfferedBy()
    And user "Brian" moves folder "/Shares/TMP" to "/Shares/new" using the WebDAV API              # FeatureContext::userMovesFileUsingTheAPI()
    And the administrator deletes user "Carol" using the provisioning API                          # FeatureContext::theAdminDeletesUserUsingTheProvisioningApi()
    Then the OCS status code of responses on all endpoints should be "100"                         # FeatureContext::theOCSStatusCodeOfResponsesOnAllEndpointsShouldBe()
      Responses did not return expected ocs status code
      Failed asserting that 0 is identical to 100.

This test scenario has recently been adjusted to check all the status codes. It passes in oC10 core.

First investigate if this is a test problem - maybe there is some problem with the test processing the status codes.

Then, if there is a real problem with oCIS, raise an issue about it.

@butonic
Copy link
Member

butonic commented May 6, 2022

response when accepting merged shares is fixed with cs3org/reva#2830

@micbar micbar mentioned this issue May 10, 2022
45 tasks
@micbar
Copy link
Contributor

micbar commented May 11, 2022

@phil-davis Does that fix the problem?

@phil-davis phil-davis self-assigned this May 11, 2022
@phil-davis
Copy link
Contributor Author

@phil-davis Does that fix the problem?

https://drone.owncloud.com/owncloud/ocis/11704/43/6

  Scenario: Keep usergroup shares when the user renames the share within the Shares folder(#22143) # /srv/app/testrunner/tests/acceptance/features/apiShareManagementToShares/moveReceivedShare.feature:32
    Given group "grp1" has been created                                                            # FeatureContext::groupHasBeenCreated()
    And user "Brian" has been added to group "grp1"                                                # FeatureContext::userHasBeenAddedToGroup()
    And user "Carol" has been added to group "grp1"                                                # FeatureContext::userHasBeenAddedToGroup()
    And user "Alice" has created folder "/TMP"                                                     # FeatureContext::userHasCreatedFolder()
    When user "Alice" shares folder "TMP" with group "grp1" using the sharing API                  # FeatureContext::userSharesFileWithGroupUsingTheSharingApi()
    And user "Brian" accepts share "/TMP" offered by user "Alice" using the sharing API            # FeatureContext::userReactsToShareOfferedBy()
    And user "Carol" accepts share "/TMP" offered by user "Alice" using the sharing API            # FeatureContext::userReactsToShareOfferedBy()
    And user "Brian" moves folder "/Shares/TMP" to "/Shares/new" using the WebDAV API              # FeatureContext::userMovesFileUsingTheAPI()
    And the administrator deletes user "Carol" using the provisioning API                          # FeatureContext::theAdminDeletesUserUsingTheProvisioningApi()
    Then the OCS status code of responses on all endpoints should be "100"                         # FeatureContext::theOCSStatusCodeOfResponsesOnAllEndpointsShouldBe()
      Responses did not return expected ocs status code
      Failed asserting that 0 is identical to 100.
    And the HTTP status code of responses on all endpoints should be "200"                         # FeatureContext::theHTTPStatusCodeOfResponsesOnAllEndpointsShouldBe()
    And user "Brian" should see the following elements                                             # FeatureContext::userShouldSeeTheElements()
      | /Shares/new/ |

A recent oCIS CI run still has the same reason for failing.

I will find a recent reva CI run and post that also.

@phil-davis
Copy link
Contributor Author

https://drone.cernbox.cern.ch/cs3org/reva/7058/14/6

  Scenario: Keep usergroup shares when the user renames the share within the Shares folder(#22143) # /drone/src/tmp/testrunner/tests/acceptance/features/apiShareManagementToShares/moveReceivedShare.feature:32
    Given group "grp1" has been created                                                            # FeatureContext::groupHasBeenCreated()
    And user "Brian" has been added to group "grp1"                                                # FeatureContext::userHasBeenAddedToGroup()
    And user "Carol" has been added to group "grp1"                                                # FeatureContext::userHasBeenAddedToGroup()
    And user "Alice" has created folder "/TMP"                                                     # FeatureContext::userHasCreatedFolder()
    When user "Alice" shares folder "TMP" with group "grp1" using the sharing API                  # FeatureContext::userSharesFileWithGroupUsingTheSharingApi()
    And user "Brian" accepts share "/TMP" offered by user "Alice" using the sharing API            # FeatureContext::userReactsToShareOfferedBy()
    And user "Carol" accepts share "/TMP" offered by user "Alice" using the sharing API            # FeatureContext::userReactsToShareOfferedBy()
    And user "Brian" moves folder "/Shares/TMP" to "/Shares/new" using the WebDAV API              # FeatureContext::userMovesFileUsingTheAPI()
INFORMATION: could not delete user 'Carol' 401 
    And the administrator deletes user "Carol" using the provisioning API                          # FeatureContext::theAdminDeletesUserUsingTheProvisioningApi()
    Then the OCS status code of responses on all endpoints should be "100"                         # FeatureContext::theOCSStatusCodeOfResponsesOnAllEndpointsShouldBe()
      Responses did not return expected ocs status code
      Failed asserting that 0 is identical to 100.
    And the HTTP status code of responses on all endpoints should be "200"                         # FeatureContext::theHTTPStatusCodeOfResponsesOnAllEndpointsShouldBe()
    And user "Brian" should see the following elements                                             # FeatureContext::userShouldSeeTheElements()
      | /Shares/new/ |

It still fails the same in reva edge.

@micbar
Copy link
Contributor

micbar commented May 11, 2022

@butonic I thought we fixed it?

@S-Panta
Copy link
Contributor

S-Panta commented Sep 25, 2023

In the test code, $this->emptyLastHTTPStatusCodesArray() and $this->emptyLastOCSStatusCodesArray() was used before the user deletion step and thus OCS response is found as 0. This step is passed in this PR #7020 and this issue can be closed.

@ScharfViktor
Copy link
Contributor

won't be fixed because we're going to get rid of OCS api.

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

5 participants