Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
jtsk_2.1
-
None
-
5091973
Description
Bugtraq ID 5091973
There have been some requests on the Porter discussion list for ConfigurationFile to support arithmetic operations. A use case for this feature is to facilitate configuring services with a set of consecutive ports open in a firewall.
Below is the use case provided by Van Simmons from Invesco:
"...my particular case was in wanting to use a range of port numbers for my various services so that I could open some holes in a firewall and allow access to the services. In that case, I would like to pass in ${basePortNumber} as variable, have reggie use ${basePortNumber}, outrigger use ${basePortNumber}+1, et al. That way, if I decided to move things around I could do that without revisiting all my config files."
While ${basePortNumber} could not be used directly in an addition expression because it is of type String, it would be possible to do something like Integer.parseInt(${basePortNumber}) + 1.
Attachments
Issue Links
- relates to
-
RIVER-325 LookupLocator is missing ways to specify SocketFactory
- Open