Project: talendesb
Issue TESB-2093: TAC Service Activity Monitoring: Filter with search string "get" hangs up TAC Service Activity Monitoring
Testing SAM on sop-td52 with database mySQL 5.5. There are two Services with one operation each connected to sam. The Operation Names are "getCustomersByName" and "getCRMInformation" Just by incidence trying to test the both operations would be shown using a common string I entered "get" for the search criteria. Executing this the TAC Service Activity hangs up remaining in "loading" state for ever. The catalina shows error in SQL statement [http-8080-Processor21] ERROR org.talend.esb.sam.server.ui.servlets.AbstractAPIServlet - Exception processing request /sam-server-war/api/v1.0/list with parameters sortField=timestamp&sortDir=ASC&offset=-30&limit=30&operation=bet org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select EVENTS.MI_FLOW_ID, EI_TIMESTAMP, EI_EVENT_TYPE, MI_PORT_TYPE, MI_OPERATION_NAME, MI_TRANSPORT_TYPE, ORIG_HOSTNAME, ORIG_IP from (select MI_FLOW_ID from EVENTS WHERE (MI_OPERATION_NAME LIKE ?) group by MI_FLOW_ID order by MAX(EI_TIMESTAMP) DESC LIMIT ? OFFSET ?) as SUBQ LEFT JOIN EVENTS ON SUBQ.MI_FLOW_ID = EVENTS.MI_FLOW_ID order by EI_TIMESTAMP DESC]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-30) as SUBQ LEFT JOIN EVENTS ON SUBQ.MI_FLOW_ID = EVENTS.MI_FLOW_ID order by EI' at line 1 This defect is at least major as content of search/filters should be clearly seperated from SQL statements.
Story points: 1