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

WFLY-1409 custom mail server should allow definition of independent prop... #5025

Closed
wants to merge 1 commit into from

Conversation

ctomc
Copy link
Contributor

@ctomc ctomc commented Sep 9, 2013

...erties

@wildfly-ci
Copy link

Build 488 is now running using a merge of 4c4bb39

@wildfly-ci
Copy link

Build 488 outcome was SUCCESS using a merge of 4c4bb39
Summary: Tests passed: 4740, ignored: 88 Build time: 1:26:36

@@ -143,7 +143,11 @@ private void setServerProps(final Properties props, final ServerConfig server, f
if (customProps != null && !customProps.isEmpty()) {
for (Map.Entry<String, String> prop : customProps.entrySet()) {
if (!props.contains(prop.getKey())) {
props.put(getPropKey(protocol, prop.getKey()), prop.getValue());
if (prop.getKey().contains(".")){
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I don't understand the change. I read the associated JIRA but couldn't co-relate this change to that. Do custom properties always have a "."? Or rather why are we checking the presence of "."?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Quite simple, by default we build up prefix part of the mail configuration
so in case you are configuring pop3 server we are prefixing it with mail.pop3.
But that limits users to use only properties that start with predefined prefix (based on type).
So in case we now find property that has dots(".") in it we assume user wants to use whole property unmodified.

@kabir
Copy link
Contributor

kabir commented Sep 11, 2013

Merged

@kabir kabir closed this Sep 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants