Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

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.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.65408 sec.)

We're Hiring!