[GH-ISSUE #1400] Can't Save Parameters #1113

Closed
opened 2026-02-27 11:15:21 +03:00 by kerem · 9 comments
Owner

Originally created by @DarrenCarterSA on GitHub (Feb 19, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1400

Impacted versions

  • Modoboa: 1.10.2
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

  • Login -> Modoboa -> Paramaters
  • Try to update parameters

Current behavior

The screen refreshes and no parameters are saved, no error or success message displayed on UI. 400 Bad Request on POST https://xxx.example.com/core/parameters/
If you return to the parameters page, all settings are as they were before.

Expected behavior

Display success or failure message on save, changes to reflect when revisiting the parameters page.

Video/Screenshot link (optional)

image

Originally created by @DarrenCarterSA on GitHub (Feb 19, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1400 # Impacted versions * Modoboa: 1.10.2 * installer used: Yes * Webserver: Nginx # Steps to reproduce * Login -> Modoboa -> Paramaters * Try to update parameters # Current behavior The screen refreshes and no parameters are saved, no error or success message displayed on UI. 400 Bad Request on POST https://xxx.example.com/core/parameters/ If you return to the parameters page, all settings are as they were before. # Expected behavior Display success or failure message on save, changes to reflect when revisiting the parameters page. # Video/Screenshot link (optional) ![image](https://user-images.githubusercontent.com/1651380/36359611-b4c0403a-1525-11e8-8477-1395aecca38b.png)
kerem closed this issue 2026-02-27 11:15:21 +03:00
Author
Owner

@w00kie commented on GitHub (Feb 21, 2018):

I had the same issue. I looked at the 400 error response and it said the modoboa_amavis recipient_delimiter was a required field. Mine was empty.

What I did is add the following to my /etc/amavis/conf.d/50-user file:

$recipient_delimiter = '+';

And then set the field to + in the parameters on the web app. Then I could save.

<!-- gh-comment-id:367192576 --> @w00kie commented on GitHub (Feb 21, 2018): I had the same issue. I looked at the 400 error response and it said the **modoboa_amavis** **recipient_delimiter** was a required field. Mine was empty. What I did is add the following to my `/etc/amavis/conf.d/50-user` file: ``` $recipient_delimiter = '+'; ``` And then set the field to `+` in the parameters on the web app. Then I could save.
Author
Owner

@tonioo commented on GitHub (Feb 21, 2018):

@DarrenCarterSA Make sure you're using the latest version of the amavis plugin (1.2.2 now), this issue has been fixed.

<!-- gh-comment-id:367318285 --> @tonioo commented on GitHub (Feb 21, 2018): @DarrenCarterSA Make sure you're using the latest version of the amavis plugin (1.2.2 now), this issue has been fixed.
Author
Owner

@DarrenCarterSA commented on GitHub (Feb 21, 2018):

I have tried the suggestion above and it is still giving me the same issue. I am running the latest version as well.

<!-- gh-comment-id:367335157 --> @DarrenCarterSA commented on GitHub (Feb 21, 2018): I have tried the suggestion above and it is still giving me the same issue. I am running the latest version as well.
Author
Owner

@tonioo commented on GitHub (Feb 21, 2018):

Have you tried a hard refresh of your browser cache?

<!-- gh-comment-id:367335649 --> @tonioo commented on GitHub (Feb 21, 2018): Have you tried a hard refresh of your browser cache?
Author
Owner

@DarrenCarterSA commented on GitHub (Feb 21, 2018):

I have indeed, even tried a web browser I have never used before for the domain.

<!-- gh-comment-id:367337180 --> @DarrenCarterSA commented on GitHub (Feb 21, 2018): I have indeed, even tried a web browser I have never used before for the domain.
Author
Owner

@tonioo commented on GitHub (Feb 21, 2018):

A 400 error means there is a validation issue in one or more tab (ie. a missing value for a required setting). Have you checked all tabs? (amavis or PDF credentials)

<!-- gh-comment-id:367338378 --> @tonioo commented on GitHub (Feb 21, 2018): A 400 error means there is a validation issue in one or more tab (ie. a missing value for a required setting). Have you checked all tabs? (amavis or PDF credentials)
Author
Owner

@DarrenCarterSA commented on GitHub (Feb 21, 2018):

I have checked and filled each and every field on each and every tab. Yet still getting the same error.
Is there any way to get better logs? Apart from my browsers debugger, I can't find any other logs on the server regarding the parameter saving issue.

<!-- gh-comment-id:367341757 --> @DarrenCarterSA commented on GitHub (Feb 21, 2018): I have checked and filled each and every field on each and every tab. Yet still getting the same error. Is there any way to get better logs? Apart from my browsers debugger, I can't find any other logs on the server regarding the parameter saving issue.
Author
Owner

@tonioo commented on GitHub (Feb 21, 2018):

Open your javascript debugger and go to the network tab, then check responses sent by the server.

<!-- gh-comment-id:367345355 --> @tonioo commented on GitHub (Feb 21, 2018): Open your javascript debugger and go to the network tab, then check responses sent by the server.
Author
Owner

@DarrenCarterSA commented on GitHub (Feb 22, 2018):

@tonioo That did the trick! My problem was with the default password. I left it as per the default "password" and this is where the form validation was failing. Might be useful to add the password requirements to the "?" tooltip in future.

Thanks everyone for your help on the matter.

<!-- gh-comment-id:367572526 --> @DarrenCarterSA commented on GitHub (Feb 22, 2018): @tonioo That did the trick! My problem was with the default password. I left it as per the default "password" and this is where the form validation was failing. Might be useful to add the password requirements to the "?" tooltip in future. Thanks everyone for your help on the matter.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1113
No description provided.