openmicroscopy/openmicroscopy — pull request #1602 by joshmoore (2013-10-09 07:10:26+00:00)
Title: Ice default encoding

In order to permit Ice 3.5 clients to work with Ice 3.3 & 3.4 servers, set the `Ice.Default.EncodingVersion` to 1.0 for all OMERO4 SDKs. To the implementation:

* `Ice.Default.EncodingVersion` should not be set for Ice 3.3 & 3.4 since warning "unknown property" will be printed.
* The value can be forced to `1.0` via `$ICE_CONFIG` or similar.
* A fallback mechanism should be used instead on OMERO5 if possible, but the change was too invasive for 4.4.9.

CC @rleigh-dundee @jburel @pwalczysko

In order to test, find an Ice 3.5-based client (Java, Python, C++) and try to connect to a non-Ice 3.5 server without this PR. You should get a `Ice::UnknownLocalException( --> Ice::UnsupportedEncodingException)` message. With this PR, it should work. If you specify `Ice.Default.EncodingVersion=1.1` in `ICE_CONFIG` you should see the failure again.