Skip to content

[Bug]: Email settings endpoint returns HTTP 400 with port parameter t…#60290

Open
Feredzhanov wants to merge 1 commit into
nextcloud:masterfrom
Feredzhanov:master
Open

[Bug]: Email settings endpoint returns HTTP 400 with port parameter t…#60290
Feredzhanov wants to merge 1 commit into
nextcloud:masterfrom
Feredzhanov:master

Conversation

@Feredzhanov
Copy link
Copy Markdown

…ype mismatch

Affected Version: 33.0.3+
Issue: POST /settings/admin/mailsettings returns HTTP 400 for all users
Root Cause: Vue admin frontend sends port as numeric JSON ("mail_smtpport": 587), but controller declares string $mail_smtpport. AppFramework doesn't auto-cast int→string, causing TypeError.
Workaround: Use occ config:system:set CLI instead

  • Resolves: #

Summary

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…ype mismatch

Affected Version: 33.0.3+
Issue: POST /settings/admin/mailsettings returns HTTP 400 for all users
Root Cause: Vue admin frontend sends port as numeric JSON ("mail_smtpport": 587), but controller declares string $mail_smtpport. AppFramework doesn't auto-cast int→string, causing TypeError.
Workaround: Use occ config:system:set CLI instead

Signed-off-by: Spiderm@n™ <Feredzhanov@users.noreply.github.com>
@Feredzhanov Feredzhanov requested a review from a team as a code owner May 10, 2026 16:46
@Feredzhanov Feredzhanov requested review from CarlSchwan, leftybournes, provokateurin and salmart-dev and removed request for a team May 10, 2026 16:46
Copy link
Copy Markdown
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

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

I think this should be fixed in the frontend.

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.

2 participants