openmicroscopy/openmicroscopy — pull request #1867 by melissalinkert (2013-12-04 21:43:48+00:00)
Title: ImportLibrary: read from each used file's mapped ID

The vast majority of the time, the mapped ID will be identical to the
path returned by getUsedFiles(). For Flex datasets with server mapping
enabled client-side, however, the mapped ID will be different to allow
all files to end up in the same directory. This eliminates the need for
server-side server mappings.

See https://trac.openmicroscopy.org.uk/ome/ticket/11781 and https://github.com/openmicroscopy/bioformats/pull/819.

To test, move the .flex file from test_images_good/flex/ to a different directory and add the following to ```~/omero/importer.ini```:

```[FlexReaderServerMaps]
CIA-1=/path/to/dir/containing/flex/
```

Then import the .mea file from test_images_good/flex/. Verify that the import succeeds, the image can be viewed, and that the .flex, .mea, and .res file all appear in the same directory on the server. Without this and https://github.com/openmicroscopy/bioformats/pull/819, the same import should fail (and/or result in an unreadable image).