omero-py icon indicating copy to clipboard operation
omero-py copied to clipboard

omero.HdfStorage.update: add size check on data.rowNumbers

Open sbesson opened this issue 1 year ago • 0 comments

Currently if the omero.grid.Data passed to table.update() has rowNumbers values outside the range of rows, the implementation will raise an IndexError which will be returned as an InternalException to the client. This commit adds an initial call to self.__sizecheck(None, data.rowNumbers) which should raise an ApiUsageException with an appropriate error message in that scenario.

This scenario should be covered by the last tests introduced in https://github.com/ome/openmicroscopy/pull/6412

sbesson avatar Sep 26 '24 10:09 sbesson