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"

Task #2010 (closed)

Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

BUG: findByString uses LIKE

Reported by: jamoore Owned by: jamoore
Priority: minor Milestone: OMERO-Beta4.2
Component: General Version: n.a.
Keywords: n.a. Cc: wmoore, cxallan, atarkowska, jburel, cneves
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2010-03-05 (4)

Description (last modified by jmoore)

IQuery.findByString() uses Restrictions.like internally. According to the Javadoc, findByString should be a lookup unlike findAllByString() which will continue to use LIKE and ILIKE.

Note: this caused some very weird confusion during permissions testing (#1434)

Change History (8)

comment:1 Changed 14 years ago by jmoore

  • Cc wmoore cxallan atarkowska jburel added
  • Description modified (diff)

comment:2 Changed 14 years ago by jmoore

  • Owner set to jmoore
  • Status changed from new to assigned

r6299 changes findByString

comment:3 Changed 14 years ago by jmoore

  • Remaining Time changed from 0.5 to 0
  • Resolution set to fixed
  • Status changed from assigned to closed

comment:4 Changed 14 years ago by jmoore

(In [8114]) Partially saving files after modification in OmeroTables (See #2098, #2099, #2010)

Though this calls saves on tables.close(), based on the group settings
the service may not have sufficient permissions (even as root) to do
so.

comment:5 Changed 14 years ago by jmoore

Previous commit intended for #2908, #2909, #2910

comment:6 Changed 13 years ago by jmoore

  • Cc cneves-x added
  • Component set to General
  • Priority set to minor

As a part of #4241 (the best numbered ticket ever) I'm going to back port this fix from 4.2 to 4.1. Carlos, can you make sure you're not relying on findByString using LIKE semantics?

comment:7 Changed 13 years ago by jmoore <josh@…>

(In [7ecbd1e76242ae49fe6b06628978daba14528392/ome.git] on branch dev_4_1_custom) fix #2010 - changing to Restrictions.eq

git-svn-id: file:///home/svn/omero/trunk@6299 05709c45-44f0-0310-885b-81a1db45b4a6

comment:8 Changed 13 years ago by jmoore <josh@…>

(In [7ecbd1e76242ae49fe6b06628978daba14528392/ome.git]on branches 4_1_custom, dev_4_1_custom, josh/4.1-web-backport) fix #2010 - changing to Restrictions.eq

git-svn-id: file:///home/svn/omero/trunk@6299 05709c45-44f0-0310-885b-81a1db45b4a6

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.66418 sec.)

We're Hiring!