Opened 7 years ago

Closed 6 years ago

#2120 closed defect (fixed)

Can't filter with multiple values on inherited annotations

Reported by: Nicklas Nordborg Owned by: everyone
Priority: minor Milestone: BASE 3.12.3
Component: core Version:
Keywords: Cc:

Description

In a list page, add a column for an inherited annotation. Try to filter on that column with one and then with more than one value. It works with a single value, but not with more than one. An error message is displayed:

Could not filter on 'Derived bioassay.##17': 
Value '[Primary, Normal]' is a class java.util.Arrays$ArrayList, not a String

and in the log file:

net.sf.basedb.core.InvalidDataException: 
Value '[Primary, Normal]' is a class java.util.Arrays$ArrayList, not a String
  at net.sf.basedb.core.AnnotationSimpleRestriction.<init>(AnnotationSimpleRestriction.java:107)
  at net.sf.basedb.core.PropertyFilter.getRestriction(PropertyFilter.java:674)
  at net.sf.basedb.core.ItemContext.configureQuery(ItemContext.java:1610)
....

Change History (1)

comment:1 by Nicklas Nordborg, 6 years ago

Resolution: fixed
Status: newclosed

(In [7489]) Fixes #2120: Can't filter with multiple values on inherited annotations

A method that was deprecated in 3.11 [7340] never got a proper replacement.

Note: See TracTickets for help on using tickets.