Skip to content

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 <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
@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
@backportbot
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

3. to review Waiting for reviews bug

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

7 participants