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

fix: validate account properties as a repair step #50985

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Feb 23, 2025

Summary

Replace ValidatePhoneNumber from Nextcloud 21 with a new repair step,
ValidateAccountProperties which validates and sanitizes all account properties.
It ensures all existing values are valid (now that we also validate twitter and fediverse it could lead to issues like the reported one).

Checklist

@susnux susnux added bug 3. to review Waiting for reviews labels Feb 23, 2025
@susnux susnux added this to the Nextcloud 32 milestone Feb 23, 2025
@susnux susnux requested review from a team, artonge, skjnldsv and sorbaugh and removed request for a team February 23, 2025 18:29
@susnux
Copy link
Contributor Author

susnux commented Feb 23, 2025

/backport to stable31

@susnux
Copy link
Contributor Author

susnux commented Feb 23, 2025

/backport to stable30

@susnux
Copy link
Contributor Author

susnux commented Feb 23, 2025

/backport to stable29

@susnux susnux requested a review from come-nc February 23, 2025 18:30
@susnux susnux force-pushed the fix/account-property-validation branch from d47f311 to 3dfafc9 Compare February 24, 2025 08:31
juliusknorr

This comment was marked as resolved.

@susnux susnux force-pushed the fix/account-property-validation branch from 3dfafc9 to 6016ebc Compare February 24, 2025 12:30
@susnux susnux dismissed juliusknorr’s stale review February 24, 2025 13:57

Resolved by migrating to background job

Replace `ValidatePhoneNumber` from Nextcloud 21 with a new repair step,
`ValidateAccountProperties` which validates and sanitizes all account
properties.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
…nd job

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/account-property-validation branch from 0a68085 to e3af27b Compare February 24, 2025 14:16
@susnux susnux merged commit 03ba092 into master Feb 24, 2025
189 checks passed
@susnux susnux deleted the fix/account-property-validation branch February 24, 2025 15:20
Copy link

backportbot bot commented Feb 24, 2025

The backport to stable29 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable29
git pull origin stable29

# Create the new backport branch
git checkout -b backport/50985/stable29

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 08d33a9f 575222b5 e3af27b2

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/50985/stable29

Error: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: 31rc5 Error when upgrading or when setting user personal details / sanitizePropertyFediverse
5 participants