Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omeroweb.webgateway.obj_id_bitmask: handle empty query results #580

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sbesson
Copy link
Member

@sbesson sbesson commented Sep 12, 2024

See ome/openmicroscopy#6411

The current implementation behaves incorrectly when getWhereList returns an empty list (no matches). This is due to the fact that the contract of table.slice() is to return all rows if row_numbers is empty or None.

Instead, this fix detects the scenario where row_numbers is empty and return the corresponding bitmask as an HTTP response

@sbesson sbesson requested a review from knabar September 12, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants