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

E2EE. Fix root metadata fetching path for non-root remote sync folder. Refactoring. Stabilizing paths. #6529

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

allexzander
Copy link
Contributor

No description provided.

@allexzander
Copy link
Contributor Author

Yes. Again, lots of similar changes for dealing with non-root remote sync root paths. Due to the new way of fetching metadata (keys are stored in the root folder's metadata). Extensive manual tests were successful. What we are really missing is end-to-end testing. Otherwise, we are going to continue fixing regressions.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

src/libsync/vfs/cfapi/hydrationjob.h Outdated Show resolved Hide resolved
@allexzander
Copy link
Contributor Author

/backport to stable-3.12

@allexzander allexzander force-pushed the bugfix/foldermetadata-fetch-root branch from 17f425d to 9b4cefc Compare March 10, 2024 13:24
src/libsync/vfs/cfapi/hydrationjob.h Outdated Show resolved Hide resolved
Copy link
Collaborator

@mgallien mgallien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add automated tests for such cases
would be needed to ensure this code can become more reliable

@allexzander allexzander force-pushed the bugfix/foldermetadata-fetch-root branch from 9b4cefc to bdef783 Compare March 12, 2024 20:13
@allexzander
Copy link
Contributor Author

please add automated tests for such cases would be needed to ensure this code can become more reliable

How do you propose to implement these tests? The e2e-to-end encryption interaction between client and server is way too complicated to implement unit tests for it. This requires writing most of the endpoints the server is using for E2EE, not just simple PROPFIND. We do not have framework for such testing for this reason.

This type of tests require different testing approach, called end-to-end testing (or QA automation), for which, we do not have capacity.

…. Refactoring. Stabilizing paths.

Signed-off-by: alex-z <[email protected]>
@allexzander allexzander force-pushed the bugfix/foldermetadata-fetch-root branch from bdef783 to c5dd2e8 Compare March 19, 2024 23:54
@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-6529-c5dd2e89a1c7abe5a5ac67ce05bfdcb9e7b6b40b-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@allexzander allexzander merged commit ff65c3c into master Mar 20, 2024
9 of 12 checks passed
@allexzander allexzander deleted the bugfix/foldermetadata-fetch-root branch March 20, 2024 00:07
Copy link

sonarcloud bot commented Mar 20, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
14.6% Coverage on New Code (required ≥ 80%)
D Maintainability Rating on New Code (required ≥ A)
183 New Code Smells (required ≤ 0)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@mgallien mgallien added this to the 3.13.0 milestone Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants