Skip to content
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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

haitran1696
Copy link

No description provided.

Copy link
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
Author

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

@grishick
Copy link
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
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
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
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?

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

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