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

WFCORE-1592, fix persisting removed entries in PropertiesFileLoader #1710

Merged
merged 1 commit into from
Jul 28, 2016

Conversation

luck3y
Copy link
Contributor

@luck3y luck3y commented Jul 27, 2016

No description provided.

@luck3y luck3y force-pushed the WFCORE-1592 branch 2 times, most recently from 88d2bf9 to 860b7cb Compare July 27, 2016 23:04
PropertiesFileLoader loader2 = new PropertiesFileLoader(tmpFile.getAbsolutePath(), null);
loader2.start(null);
Properties props2 = loader2.getProperties();
verifyProperties(props2, props2.size()-1, "NEW", "VALUE");
Copy link
Contributor

Choose a reason for hiding this comment

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

This call doesn't validate that NEW is present with a value of VALUE, since that's not an entry in the "properties" array. You could pass null for both params and get the same effect.

Kind of a nit; it just confused me a bit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's not a nit, that's me being an idiot! I refactored that into a shared method at the end to remove some duplicate code ;)

I'll send up a fix.

@bstansberry
Copy link
Contributor

@luck3y looks good. Can you squash this one and then up a variant against 2.x? This sounds like a serious enough one to justify getting it sorted in 10.1.

@luck3y
Copy link
Contributor Author

luck3y commented Jul 28, 2016

Sure, will send that shortly.

@bstansberry bstansberry merged commit 7291ab0 into wildfly:master Jul 28, 2016
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.

2 participants