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

SyncPal::handleAccessDeniedItem encoding issue #423

Conversation

ChristopheLarchier
Copy link
Contributor

@ChristopheLarchier ChristopheLarchier commented Dec 4, 2024

The function SyncPal::handleAccessDeniedItem function is called with an NFC-normalized path when a local creation operation fails, see for instance the call:
_syncPal->handleAccessDeniedItem(syncOp->affectedNode()->getPath())
If the local path contains names which are not NFC-normalized, the parent item is not found in the local snapshot.

@ChristopheLarchier ChristopheLarchier added this to the 3.6.7 milestone Dec 4, 2024
@ChristopheLarchier ChristopheLarchier requested a review from a team as a code owner December 4, 2024 15:04
@ChristopheLarchier ChristopheLarchier changed the title Fix normalization issue SyncPal::handleAccessDeniedItem encoding issue Dec 4, 2024
Copy link
Contributor

@luc-guyot-infomaniak luc-guyot-infomaniak left a comment

Choose a reason for hiding this comment

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

Would it be possible to have a description of the issue and the fix? I am quite certain that it is the correct fix, but I am unable to pinpoint the issue.

src/libsyncengine/syncpal/syncpal.cpp Outdated Show resolved Hide resolved
@ChristopheLarchier
Copy link
Contributor Author

Would it be possible to have a description of the issue and the fix? I am quite certain that it is the correct fix, but I am unable to pinpoint the issue.

RM description copied.

Copy link

sonarcloud bot commented Dec 6, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
7.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@ClementKunz ClementKunz merged commit baeb69c into release-3.6.7 Dec 6, 2024
6 of 7 checks passed
@ClementKunz ClementKunz deleted the KDESKTOP-1427-SyncPal-handleAccessDeniedItem-encoding-issue branch December 6, 2024 10:28
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.

4 participants