Skip to content

ZCS-1467: IMAPD Configuration on Admin Console UI#42

Draft
haitran1696 wants to merge 1 commit intodevelopfrom
Bugfix/ZCS-1467
Draft

ZCS-1467: IMAPD Configuration on Admin Console UI#42
haitran1696 wants to merge 1 commit intodevelopfrom
Bugfix/ZCS-1467

Conversation

@haitran1696
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Contributor

@grishick grishick left a 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)

@haitran1696
Copy link
Copy Markdown
Author

Hi @grishick, I updated as your request. Please tell me if I need to update anything else. Thank you!

@grishick
Copy link
Copy Markdown
Contributor

grishick commented Feb 2, 2018

@silentsakky I downloaded the changes, deployed to my dev docker and tested

}, {
type:_ZA_TOP_GROUPER_,
label:ZaMsg.Global_IMAPD_NetworkGrp,
items: [{
Copy link
Copy Markdown
Member

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)) {
Copy link
Copy Markdown
Member

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) {
Copy link
Copy Markdown
Member

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?

this.attrs[ZaServer.A_zimbraAutoProvScheduledDomains] = [this.attrs[ZaServer.A_zimbraAutoProvScheduledDomains]];
}

if(this.attrs[ZaServer.A_zimbraReverseProxyUpstreamImapServers] && !(this.attrs[ZaServer.A_zimbraReverseProxyUpstreamImapServers] instanceof Array)) {
Copy link
Copy Markdown
Member

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
}]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

minor: indentation

@haitran1696 haitran1696 force-pushed the Bugfix/ZCS-1467 branch 8 times, most recently from 87ef074 to a719b2f Compare February 2, 2018 08:57
@haitran1696
Copy link
Copy Markdown
Author

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)) {
Copy link
Copy Markdown
Member

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 ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

No, they are different .

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Author

@haitran1696 haitran1696 Feb 13, 2018

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.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


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.

@silentsakky silentsakky marked this pull request as draft June 2, 2022 14:41
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.

4 participants