Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013942Openbravo ERPA. Platformpublic2010-07-12 12:522010-07-14 04:43
iperdomo 
iperdomo 
urgentminoralways
closedfixed 
202.6.30-gentoo-r5
2.50MP19 
2.50MP20 
Core
No
0013942: Error stack trace when enabling Heartbeat on fresh install
When you enable heartbeat in a fresh install (install.source, or start up the virtual appliance the first time) you get an error stack trace for an invalid value for a request parameter.

261303 [http-8080-3] ERROR org.openbravo.base.VariablesBase - Input:
not accepted by filter: org.openbravo.base.filter.ValueListFilter@128c5c03
java.lang.Throwable
    at org.openbravo.base.VariablesBase.filterRequest(VariablesBase.java:119)
    at
org.openbravo.base.VariablesBase.getStringParameter(VariablesBase.java:891)
    at
org.openbravo.base.VariablesBase.getStringParameter(VariablesBase.java:665)
    at
org.openbravo.base.VariablesBase.getStringParameter(VariablesBase.java:819)
    at
org.openbravo.erpCommon.ad_process.TestHeartbeat.doPost(TestHeartbeat.java:78)
    at org.openbravo.base.HttpBaseServlet.doGet(HttpBaseServlet.java:287)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at
org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225)
    at
org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:415)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at
org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:101)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:636)
* Run install.source
* Enable heartbeat from the popup window
* Check the application log
The behavior remains the same, but we should remove this error from the log
No tags attached.
Issue History
2010-07-12 12:52iperdomoNew Issue
2010-07-12 12:52iperdomoAssigned To => iperdomo
2010-07-12 12:52iperdomoStatusnew => scheduled
2010-07-12 12:52iperdomofix_in_branch => pi
2010-07-12 12:55hgbotCheckin
2010-07-12 12:55hgbotNote Added: 0029225
2010-07-12 12:55hgbotStatusscheduled => resolved
2010-07-12 12:55hgbotResolutionopen => fixed
2010-07-12 12:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/58227be842394f0a82107bb338c09ef18ee3c2e4 [^]
2010-07-13 15:52shuehnerNote Added: 0029265
2010-07-13 15:52shuehnerStatusresolved => closed
2010-07-14 00:00anonymoussf_bug_id0 => 3029178
2010-07-14 04:43hudsonbotCheckin
2010-07-14 04:43hudsonbotNote Added: 0029283

Notes
(0029225)
hgbot   
2010-07-12 12:55   
Repository: erp/devel/pi
Changeset: 58227be842394f0a82107bb338c09ef18ee3c2e4
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Mon Jul 12 12:54:36 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/58227be842394f0a82107bb338c09ef18ee3c2e4 [^]

Fixes issue 13942: Added blank value as allowed value for the parameter
The blank value is passed for a request parameter when posting data from the
popup window to the servlet. The functionality remains the same.

---
M src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java
---
(0029265)
shuehner   
2010-07-13 15:52   
Tested via live.builds (pgsql) now enabling heartbeat on a new install does not produce the error anymore as the filter was relaxed to also allow an empty value. Enabling heartbeat via popup is working without error now, and also enabling & disabling via Heartbeat configuration window are still working.
(0029283)
hudsonbot   
2010-07-14 04:43   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/58227be84239 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/2a91111beef4 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17878.obx [^]