User Story #259 (closed)
Opened 18 years ago
Closed 18 years ago
Dataset query in OMEROMetadataStore does not return unique result.
Reported by: | jamoore | Owned by: | cxallan |
---|---|---|---|
Priority: | major | Milestone: | 3.0-M3 |
Component: | Bin-Services | Keywords: | iteration6 |
Cc: | Story Points: | n.a. | |
Sprint: | n.a. | Importance: | n.a. |
Total Remaining Time: | n.a. | Estimated Remaining Time: | n.a. |
Description
OMEROMetadataStore.addPixelsToDataset line 505 throws one of these
Exception in thread "Thread-3" ome.conditions.InternalException: Wrapped Exception: (org.springframework.dao.IncorrectResultSizeDataAccessException): query did not return a unique result: 28
because this query:
Dataset dataset = iQuery.findByQuery( "select d from Dataset as d left join fetch " + "d.imageLinks where d.name = :name", new Parameters().addString("name", datasetName));
should either by iQuery.findAllByQuery or should use Dataset id (or Dataset name should be UNIQUE).
Change History (1)
comment:1 Changed 18 years ago by cxallan
- Keywords iteration6 added
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.