-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 2.6
-
Component/s: Vocabularies
-
Tags:
Hierarchical vocabulary is not correctly declared in tests.
This problem is shown by integration tests: the "obsolete" columns is filled with empty values instead of a boolean => directory registration crashes with:
2012-06-18 15:15:28,197 ERROR [org.nuxeo.ecm.directory.DirectoryServiceImpl] failed to set column 'obsolete' on table 'studio_vocabulary_world', values: [0: europe, 1: Europe, 2: , 3: 0] org.nuxeo.ecm.directory.DirectoryException: failed to set column 'obsolete' on table 'studio_vocabulary_world', values: [0: europe, 1: Europe, 2: , 3: 0] at org.nuxeo.ecm.directory.sql.SQLHelper.loadData(SQLHelper.java:375) at org.nuxeo.ecm.directory.sql.SQLHelper.setupTable(SQLHelper.java:127) [...] Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: java.lang.NumberFormatException. message: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:431)