-
Notifications
You must be signed in to change notification settings - Fork 12
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
ZCS-1467: IMAPD Configuration on Admin Console UI #42
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@haitran1696 please add bind ports for IMAP and IMAPD to global config settings for IMAP and IMAPD tabs and change the corresponding fields on Server tab to be SUPER_TEXTFIELD (or whatever is the appropriate field that implements fallback to global config)
a494afd
to
29ccfdf
Compare
Hi @grishick, I updated as your request. Please tell me if I need to update anything else. Thank you! |
@silentsakky I downloaded the changes, deployed to my dev docker and tested |
}, { | ||
type:_ZA_TOP_GROUPER_, | ||
label:ZaMsg.Global_IMAPD_NetworkGrp, | ||
items: [{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: indentation
var invalidValues = []; | ||
var isValidValue = true; | ||
|
||
if (ZaItem.hasWritePermission(ZaServer.A_zimbraReverseProxyUpstreamImapServers,obj)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this same as ZaServerController.prototype.validateReverseProxyUpstreamImapServers ?
} | ||
ZaXFormViewController.preSaveValidationMethods["ZaServerController"].push(ZaServerController.prototype.validateReverseProxyUpstreamImapServers); | ||
|
||
ZaServerController.isValidHostName = function (isHostNameStr) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please correct indentation in this function?
@@ -1129,6 +1148,9 @@ ZaServer.prototype.initFromJS = function(server) { | |||
this.attrs[ZaServer.A_zimbraAutoProvScheduledDomains] = [this.attrs[ZaServer.A_zimbraAutoProvScheduledDomains]]; | |||
} | |||
|
|||
if(this.attrs[ZaServer.A_zimbraReverseProxyUpstreamImapServers] && !(this.attrs[ZaServer.A_zimbraReverseProxyUpstreamImapServers] instanceof Array)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: indentation
style: DwtAlert.INFO, | ||
iconVisible: false, | ||
content: ZaMsg.Alert_ServerRestart | ||
}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: indentation
87ef074
to
a719b2f
Compare
Hi @silentsakky, I updated the code. Please review and tell me if something needs to be changed. Thank you! |
//Check validation of reverse proxy upstream imap server: host name or IP address format | ||
var invalidValues = []; | ||
var isValidValue = true; | ||
if(ZaItem.hasWritePermission(ZaGlobalConfig.A_zimbraReverseProxyUpstreamImapServers,tmpObj)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this code same as ZaServerController.prototype.validateReverseProxyUpstreamImapServers ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, they are different .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please explain in detail what is different here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ZaItem.hasWritePermission checks permission of account modified this attribute and check this attribute can be modified or not.
ZaServerController.prototype.validateReverseProxyUpstreamImapServers checks validating parts of input value.
a719b2f
to
400aab1
Compare
Alex Tran seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
No description provided.