Task #2010 (closed)
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
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
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
r6299 changes findByString