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(settings): Fix mail server settings form #50046

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

provokateurin
Copy link
Member

Summary

Found while testing for #49891.
With the JQuery ajax the request fails the CSRF checks so the settings are never saved.
In addition to that the form didn't display the error messages correctly.

I'm not sure how long this problem has existed, I would have expected that we received some bug reports about it, but I couldn't really find anything.
There are some other places where we still use JQuery ajax and those could be broken as well, but I didn't test them.

Checklist

@provokateurin provokateurin added bug 3. to review Waiting for reviews labels Jan 6, 2025
@provokateurin provokateurin added this to the Nextcloud 31 milestone Jan 6, 2025
@provokateurin provokateurin requested review from a team, susnux, artonge and sorbaugh and removed request for a team January 6, 2025 07:28
@provokateurin
Copy link
Member Author

/backport to stable30

@provokateurin
Copy link
Member Author

/backport to stable29

@blizzz blizzz mentioned this pull request Jan 8, 2025
@skjnldsv skjnldsv mentioned this pull request Jan 14, 2025
@provokateurin
Copy link
Member Author

/compile

@provokateurin
Copy link
Member Author

/compile rebase

@skjnldsv
Copy link
Member

Building locally... wait for it

Signed-off-by: skjnldsv <[email protected]>
@skjnldsv skjnldsv force-pushed the fix/settings/mail-server-settings-form branch from 172248d to ce5cbd8 Compare January 14, 2025 15:25
@provokateurin
Copy link
Member Author

That would have been my next attempt, but I always end up with different compiled assets than CI so I try to avoid it 🙈

@skjnldsv skjnldsv disabled auto-merge January 14, 2025 15:42
@skjnldsv skjnldsv merged commit f44f122 into master Jan 14, 2025
119 of 120 checks passed
@skjnldsv skjnldsv deleted the fix/settings/mail-server-settings-form branch January 14, 2025 15:42
@skjnldsv skjnldsv mentioned this pull request Jan 16, 2025
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.

3 participants