coherence-community / oracle-bedrock

Oracle Bedrock
Other
55 stars 31 forks source link

Constants.getLocalHost requires excessive permissions #171

Closed brianoliver closed 10 years ago

brianoliver commented 10 years ago

Logic in com.oracle.tools.runtime.network.Constants requires all read/write property permission:

if (System.getProperties().containsKey("tangosol.coherence.localhost"))
{
return System.getProperty("tangosol.coherence.localhost");
}
else
{
return "127.0.0.1";
}

It could be trivially replaced with:

return System.getProperty("tangosol.coherence.localhost", "127.0.0.1");

and that would eliminate the need to open up the full property access

brianoliver commented 10 years ago

@brianoliver said: Fixed in 2.0.0-RC3-SNAPSHOT

brianoliver commented 8 years ago

This issue was imported from JIRA ORACLETOOLS-171

brianoliver commented 10 years ago

Reported by ggleyzer

brianoliver commented 10 years ago

Marked as fixed by @brianoliver on Tuesday, October 7th 2014, 12:05:57 pm