Min-max validation does not work properly
Bug #310957 reported by
Eric Fesler
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TobFlow |
New
|
Critical
|
Eric Fesler | ||
1.4 |
Fix Released
|
Critical
|
Eric Fesler |
Bug Description
Min max validation does not work properly.
When setting the form field type to numeric, the application generates a class cast exception (quite odd isn't it ?)
Looking in detail, one can see that the system goes to the Min-Max validator even for fields not validated by a min max pattern
Related branches
lp://staging/tobflow/1.4
Ready for review
for merging
into
lp://staging/tobflow
- Audaxis: Pending requested
-
Diff: 23256 lines (+14747/-3127) (has conflicts)183 files modified.bzrignore (+3/-0)
.classpath (+5/-6)
.project (+8/-38)
buildNumber.properties (+3/-0)
etc/com/audaxis/tobflow/model/engine/impl/spring/tobflow-model.dtd (+178/-0)
etc/conf/jetty-env.xml (+61/-0)
etc/conf/tomcat/context.xml (+11/-1)
etc/sql/MySQL_baseDb.sql (+1099/-0)
etc/sql/MySQL_createDb.sql (+886/-183)
etc/sql/upgrade_090914.sql (+3/-0)
etc/sql/upgrade_091028.sql (+9/-0)
etc/sql/upgrade_091105.sql (+16/-0)
etc/sql/upgrade_091210.sql (+3/-0)
etc/sql/upgrade_100128.sql (+1/-0)
etc/sql/upgrade_100525.sql (+5/-0)
etc/tobflow_base.sql (+1297/-0)
hibernate.properties (+2/-2)
hibernateTools.xml (+34/-0)
pom.xml (+187/-28)
project.xml (+0/-792)
src/java/com/audaxis/core/commons/util/FileUtils.java (+82/-0)
src/java/com/audaxis/core/hibernate/interceptor/TimestampInterceptor.java (+102/-0)
src/java/com/audaxis/core/tapestry/components/multipleValueField/MVFcolumn.java (+2/-1)
src/java/com/audaxis/core/tapestry/services/DownloadLinkService.java (+83/-137)
src/java/com/audaxis/tobflow/bsf/engines/MyJythonEngine.java (+2/-2)
src/java/com/audaxis/tobflow/export/services/IConverterRegistry.java (+24/-0)
src/java/com/audaxis/tobflow/export/services/IExportService.java (+48/-0)
src/java/com/audaxis/tobflow/export/services/IExportTimerTask.java (+10/-0)
src/java/com/audaxis/tobflow/export/services/ISQLTypeConverter.java (+31/-0)
src/java/com/audaxis/tobflow/export/services/impl/BigIntegerSQLTypeConverter.java (+27/-0)
src/java/com/audaxis/tobflow/export/services/impl/BooleanSQLTypeConverter.java (+33/-0)
src/java/com/audaxis/tobflow/export/services/impl/ConverterRegistry.java (+37/-0)
src/java/com/audaxis/tobflow/export/services/impl/DBExportService.java (+594/-0)
src/java/com/audaxis/tobflow/export/services/impl/ExportTimerTask.java (+34/-0)
src/java/com/audaxis/tobflow/export/services/impl/FileInfoSQLTypeConveter.java (+37/-0)
src/java/com/audaxis/tobflow/export/services/impl/StringSQLTypeConverter.java (+28/-0)
src/java/com/audaxis/tobflow/external/services/impl/ExternalTobflowManager.java (+3/-2)
src/java/com/audaxis/tobflow/instance/engine/hivemind/impl/ActivityFormat.java (+1/-1)
src/java/com/audaxis/tobflow/instance/engine/hivemind/impl/TobflowFormat.java (+22/-7)
src/java/com/audaxis/tobflow/instance/engine/hivemind/impl/VelocityService.java (+8/-0)
src/java/com/audaxis/tobflow/instance/engine/hivemind/impl/WorkItemFormat.java (+1/-1)
src/java/com/audaxis/tobflow/instance/engine/interfaces/IFormulaInterpreter.java (+2/-0)
src/java/com/audaxis/tobflow/instance/engine/interfaces/IInstanceDAO.java (+12/-0)
src/java/com/audaxis/tobflow/instance/engine/interfaces/ISequencer.java (+6/-0)
src/java/com/audaxis/tobflow/instance/engine/interfaces/ITemplateService.java (+7/-0)
src/java/com/audaxis/tobflow/instance/engine/interfaces/IViewBuilder.java (+9/-0)
src/java/com/audaxis/tobflow/instance/engine/spring/impl/BSFInterpreter.java (+1/-1)
src/java/com/audaxis/tobflow/instance/engine/spring/impl/FormulaInterpreter.java (+39/-4)
src/java/com/audaxis/tobflow/instance/engine/spring/impl/HibernateInstanceDAO.java (+19/-0)
src/java/com/audaxis/tobflow/instance/engine/spring/impl/LiteralInitializer.java (+1/-1)
src/java/com/audaxis/tobflow/instance/engine/spring/impl/Sequencer.java (+40/-0)
src/java/com/audaxis/tobflow/instance/engine/spring/impl/ViewBuilder.java (+24/-1)
src/java/com/audaxis/tobflow/instance/engine/spring/impl/ViewCell.java (+15/-0)
src/java/com/audaxis/tobflow/instance/model/TobObject.java (+25/-2)
src/java/com/audaxis/tobflow/model/addon/Delegation.java (+130/-0)
src/java/com/audaxis/tobflow/model/engine/impl/spring/HibernateModelDAO.java (+3/-5)
src/java/com/audaxis/tobflow/model/engine/impl/spring/ModelManager.java (+3/-9)
src/java/com/audaxis/tobflow/model/engine/interfaces/IModelDAO.java (+2/-1)
src/java/com/audaxis/tobflow/model/engine/interfaces/IModelManager.java (+1/-6)
src/java/com/audaxis/tobflow/model/engine/parse/UIRuleSet.java (+6/-0)
src/java/com/audaxis/tobflow/model/engine/parse/WkflRuleSet.java (+1/-1)
src/java/com/audaxis/tobflow/model/model/FormHistoryList.java (+9/-0)
src/java/com/audaxis/tobflow/model/model/FormTabElementVisitor.java (+2/-0)
src/java/com/audaxis/tobflow/model/model/ViewColumnModel.java (+1/-0)
src/java/com/audaxis/tobflow/model/model/ViewColumnModelComparator.java (+2/-2)
src/java/com/audaxis/tobflow/model/model/ViewModel.java (+9/-0)
src/java/com/audaxis/tobflow/model/model/WkActivityModel.java (+7/-0)
src/java/com/audaxis/tobflow/model/model/WkTransitionModel.java (+17/-0)
src/java/com/audaxis/tobflow/model/util/FormFieldChecker.java (+14/-1)
src/java/com/audaxis/tobflow/model/util/FormHelper.java (+29/-7)
src/java/com/audaxis/tobflow/organization/interfaces/IUserService.java (+15/-0)
src/java/com/audaxis/tobflow/organization/interfaces/IUserServiceDelegate.java (+5/-0)
src/java/com/audaxis/tobflow/organization/spring/impl/AbstractUserServiceDelegate.java (+23/-0)
src/java/com/audaxis/tobflow/organization/spring/impl/CompiereUserServiceDelegate.java (+428/-0)
src/java/com/audaxis/tobflow/organization/spring/impl/DummyUserService.java (+36/-0)
src/java/com/audaxis/tobflow/organization/spring/impl/InternalUserServiceDelegate.java (+39/-0)
src/java/com/audaxis/tobflow/organization/spring/impl/SqlUserServiceDelegate.java (+65/-0)
src/java/com/audaxis/tobflow/organization/spring/impl/UserService.java (+36/-0)
src/java/com/audaxis/tobflow/settings/engine/impl/spring/SettingsDAO.java (+23/-0)
src/java/com/audaxis/tobflow/settings/engine/interfaces/ISettingsDAO.java (+28/-0)
src/java/com/audaxis/tobflow/settings/model/SettingModel.java (+50/-0)
src/java/com/audaxis/tobflow/tapestry/components/BaseViewRender.java (+2/-1)
src/java/com/audaxis/tobflow/tapestry/components/HistoryList.java (+83/-0)
src/java/com/audaxis/tobflow/tapestry/components/JythonInsertText.java (+3/-1)
src/java/com/audaxis/tobflow/tapestry/components/ObjectViewNavigator.java (+2/-1)
src/java/com/audaxis/tobflow/tapestry/components/RenderTabBody.java (+4/-0)
src/java/com/audaxis/tobflow/tapestry/components/RenderTabBodyDelegate.java (+29/-2)
src/java/com/audaxis/tobflow/tapestry/components/RenderTabElementVisitor.java (+13/-12)
src/java/com/audaxis/tobflow/tapestry/components/SqlLookup.java (+58/-15)
src/java/com/audaxis/tobflow/tapestry/components/TobPatternField.java (+72/-60)
src/java/com/audaxis/tobflow/tapestry/components/TobRefPickList.java (+5/-2)
src/java/com/audaxis/tobflow/tapestry/components/TobRefSelectionModel.java (+17/-7)
src/java/com/audaxis/tobflow/tapestry/components/UploadSingleFile.java (+263/-111)
src/java/com/audaxis/tobflow/tapestry/components/ViewLookup.java (+46/-2)
src/java/com/audaxis/tobflow/tapestry/components/ViewRender.java (+75/-4)
src/java/com/audaxis/tobflow/tapestry/components/ViewTableColumn.java (+39/-0)
src/java/com/audaxis/tobflow/tapestry/components/WorkflowTree.java (+1/-1)
src/java/com/audaxis/tobflow/tapestry/page/HomePage.java (+418/-9)
src/java/com/audaxis/tobflow/tapestry/page/IViewRenderPage.java (+1/-1)
src/java/com/audaxis/tobflow/tapestry/page/MassValidationPage.java (+517/-0)
src/java/com/audaxis/tobflow/tapestry/page/ObjectRenderPage.java (+458/-131)
src/java/com/audaxis/tobflow/tapestry/page/PageNames.java (+1/-0)
src/java/com/audaxis/tobflow/tapestry/page/admin/ActiveProcessList.java (+5/-1)
src/java/com/audaxis/tobflow/tapestry/page/admin/ModelAdmin.java (+22/-20)
src/java/com/audaxis/tobflow/tapestry/page/admin/ScriptRunner.java (+16/-0)
src/java/com/audaxis/tobflow/upload/services/IAttachedDocService.java (+76/-8)
src/java/com/audaxis/tobflow/upload/services/impl/AttachedDocService.java (+234/-86)
src/java/com/audaxis/tobflow/upload/services/impl/AttachementAction.java (+69/-0)
src/java/com/audaxis/tobflow/upload/services/impl/FileInfo.java (+5/-17)
src/java/com/audaxis/tobflow/upload/servlet/FileDownloadServlet.java (+197/-0)
src/java/com/audaxis/tobflow/upload/servlet/FileUploadServlet.java (+148/-0)
src/java/com/audaxis/tobflow/webservices/services/impl/WorkflowManagerWS.java (+3/-3)
src/java/com/audaxis/tobflow/workflow/WkInfo.java (+5/-4)
src/java/com/audaxis/tobflow/workflow/impl/spring/ExpressionFieldValidator.java (+89/-2)
src/java/com/audaxis/tobflow/workflow/impl/spring/HibernateWorkFlowDAO.java (+164/-5)
src/java/com/audaxis/tobflow/workflow/impl/spring/MinMaxFieldValidator.java (+47/-31)
src/java/com/audaxis/tobflow/workflow/impl/spring/WorkFlowManager.java (+1298/-826)
src/java/com/audaxis/tobflow/workflow/interfaces/IWorkFlowDAO.java (+19/-0)
src/java/com/audaxis/tobflow/workflow/interfaces/IWorkFlowManager.java (+11/-6)
src/java/com/audaxis/tobflow/workflow/model/WkProcess.java (+1/-1)
src/java/com/audaxis/tobflow/workflow/model/WkWorkItem.java (+55/-3)
src/java/log4j.properties (+15/-8)
src/java/org/apache/bsf/BSFManagerHelper.java (+1/-1)
src/resources/appl-internal.properties (+1/-0)
src/resources/com/audaxis/core/tapestry/services/DownloadLinkStrings.properties (+2/-0)
src/webapp/Home.html (+137/-38)
src/webapp/META-INF/context.xml (+30/-7)
src/webapp/WEB-INF/HistoryList.html (+53/-0)
src/webapp/WEB-INF/HistoryList.jwc (+39/-0)
src/webapp/WEB-INF/Home.page (+5/-0)
src/webapp/WEB-INF/LoginPage.html (+4/-1)
src/webapp/WEB-INF/MassValidation.html (+121/-0)
src/webapp/WEB-INF/MassValidation.page (+44/-0)
src/webapp/WEB-INF/ObjectRender.html (+296/-129)
src/webapp/WEB-INF/ObjectRender.page (+4/-0)
src/webapp/WEB-INF/ObjectViewNavigator.html (+6/-4)
src/webapp/WEB-INF/RenderTabBody.html (+25/-7)
src/webapp/WEB-INF/ShowFormValidationError.html (+1/-1)
src/webapp/WEB-INF/ShowMessageInfo.html (+2/-2)
src/webapp/WEB-INF/SqlLookup.html (+23/-7)
src/webapp/WEB-INF/SqlLookup.jwc (+1/-1)
src/webapp/WEB-INF/TobPatternField.jwc (+3/-1)
src/webapp/WEB-INF/UploadSingleFile.html (+21/-84)
src/webapp/WEB-INF/UploadSingleFile.jwc (+8/-10)
src/webapp/WEB-INF/UploadSingleFile.script (+150/-0)
src/webapp/WEB-INF/ViewLookup.html (+65/-56)
src/webapp/WEB-INF/ViewRender.html (+29/-9)
src/webapp/WEB-INF/ViewRender.jwc (+2/-4)
src/webapp/WEB-INF/applicationContext.xml (+251/-5)
src/webapp/WEB-INF/hivemodule.xml (+17/-19)
src/webapp/WEB-INF/log4j-tobflow.properties (+10/-6)
src/webapp/WEB-INF/mappings/com/audaxis/tobflow/instance/model/TobObject.hbm.xml (+11/-2)
src/webapp/WEB-INF/mappings/com/audaxis/tobflow/model/addon/Delegation.hbm.xml (+42/-0)
src/webapp/WEB-INF/mappings/com/audaxis/tobflow/model/model/FormTabElement.hbm.xml (+3/-0)
src/webapp/WEB-INF/mappings/com/audaxis/tobflow/model/model/ViewModel.hbm.xml (+1/-0)
src/webapp/WEB-INF/mappings/com/audaxis/tobflow/model/model/WkActivityModel.hbm.xml (+1/-0)
src/webapp/WEB-INF/mappings/com/audaxis/tobflow/model/model/WkTransitionModel.hbm.xml (+1/-0)
src/webapp/WEB-INF/mappings/com/audaxis/tobflow/settings/model/SettingModel.hbm.xml (+39/-0)
src/webapp/WEB-INF/mappings/com/audaxis/tobflow/workflow/model/WkWorkItem.hbm.xml (+10/-1)
src/webapp/WEB-INF/tobflow.properties (+31/-21)
src/webapp/WEB-INF/tobflow_en.properties (+12/-2)
src/webapp/WEB-INF/web.xml (+50/-0)
src/webapp/admin/ScriptRunner.html (+17/-17)
src/webapp/appl-internal.properties (+1/-0)
src/webapp/css_14/forms.css (+1/-0)
src/webapp/css_14/global.css (+508/-0)
src/webapp/js/ObjectRender.script (+25/-8)
src/webapp/js/fileprogress.js (+203/-0)
src/webapp/js/handlers.js (+178/-0)
src/webapp/js/jquery-1.4.2.min.js (+154/-0)
src/webapp/js/swfupload.js (+980/-0)
src/webapp/js/swfupload.queue.js (+98/-0)
src/webapp/testhtml/link.html (+30/-0)
test/src/java/com/audaxis/tobflow/export/services/impl/DBExportServiceTest.java (+83/-0)
test/src/java/com/audaxis/tobflow/instance/engine/spring/impl/BSFInterpreterTest.java (+22/-0)
test/src/java/com/audaxis/tobflow/instance/engine/spring/impl/FormulaInterpreterTest.java (+2/-2)
test/src/java/com/audaxis/tobflow/instance/engine/spring/impl/LiteralInitializerTest.java (+2/-2)
test/src/java/com/audaxis/tobflow/model/engine/impl/spring/FakeModelDAO.java (+1/-1)
test/src/java/com/audaxis/tobflow/tapestry/components/TobRefPickListTest.java (+11/-10)
test/src/java/com/audaxis/tobflow/workflow/impl/spring/LengthFieldValidatorTest.java (+5/-5)
test/src/java/com/audaxis/tobflow/workflow/impl/spring/MinMaxFieldValidatorTest.java (+46/-39)
test/src/java/com/audaxis/tobflow/workflow/impl/spring/WorkFlowManagerTest.java (+26/-2)
test/src/java/hollidayRequest.xml (+12/-0)
Changed in tobflow: | |
assignee: | nobody → glaurung |
importance: | Undecided → Critical |
milestone: | none → 1.4rc3 |
Changed in tobflow: | |
milestone: | 1.4rc3 → none |
To post a comment you must log in.