openmicroscopy/openmicroscopy — pull request #2500 by joshmoore (2014-05-14 10:36:29+00:00)
Title: Run session creation in system context (rebased onto dev_5_0)

This is the same as gh-2450 but rebased onto dev_5_0.

----

In an effort to get rid of the periodic failing
tests with:
```
java.lang.IllegalArgumentException: No valid permissions available!
DUMMY permissions are not intended for copying. Make sure that you have
not passed omero.group=-1 for a save without context
```
make all calls to `SessionManagerImpl.createSession` run with an
explicit context for the system group.

/cc @ximenesuk

Note: this does not (yet) fix the problem of *why* the root session is being set to -1.