hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
191 stars 98 forks source link

#168: Be more tolerant when getting publishDelay from ConfigAdmin #188

Closed hhoffstaette closed 2 years ago

hhoffstaette commented 7 years ago

Since we've been hit by this problem here is a patch that makes parsing the ConfigAdmin values more tolerant. To the best of my knowledge CM doesn't do automatic value coercion and (in the case of fileinstall/Karaf CM) will simply use String properties. AFAIK it has always been the responsibility of the callee to parse properties properly, or at least not throw CCEs. With this fix we properly consume Long/Integer/String values and only throw a NumberFormatException as last resort.

tonit commented 7 years ago

+1