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.

@github-actions
Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants