Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When downloading a file with a filter on a boolean attribute, the application crashes #5603

Closed
mark-de-haan opened this issue Nov 23, 2016 · 0 comments

Comments

@mark-de-haan
Copy link
Contributor

Reproduce

  • Import TypeTest
  • Go to the dataexplorer and look up TypeTest
  • Set a filter to xboolnillable to false
  • Press download, and download as xlsx with labels

Expected

I get an xlsx download with the 12 items found with the filter

Observed

11:05:44.739 [ajp-bio-8009-exec-21] ERROR o.m.d.c.DataExplorerController - Attribute [xboolnillable] query value is of type [String] instead of [Boolean]
org.molgenis.data.MolgenisDataException: Attribute [xboolnillable] query value is of type [String] instead of [Boolean]
	at org.molgenis.data.postgresql.PostgreSqlUtils.getPostgreSqlQueryValue(PostgreSqlUtils.java:103) ~[molgenis-data-postgresql-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.molgenis.data.postgresql.PostgreSqlQueryGenerator.getSqlWhere(PostgreSqlQueryGenerator.java:771) ~[molgenis-data-postgresql-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.molgenis.data.postgresql.PostgreSqlQueryGenerator.getSqlSelect(PostgreSqlQueryGenerator.java:449) ~[molgenis-data-postgresql-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.molgenis.data.postgresql.PostgreSqlRepository$1.getBatch(PostgreSqlRepository.java:408) ~[molgenis-data-postgresql-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.molgenis.data.support.BatchingQueryResult.getBatch(BatchingQueryResult.java:36) ~[molgenis-data-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants