radiumfu / enterprise-log-search-and-archive

Automatically exported from code.google.com/p/enterprise-log-search-and-archive
0 stars 0 forks source link

Regression in r705 in web/inc/utilities.js - Date().toISOString() is only in JS 1.8+ #108

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Open ELSA in a browser that doesn't support Javascript 1.8 (in IE9 in 
compatibility mode, perhaps other older browsers too)

What is the expected output? What do you see instead?

Expected to see ELSA query form, got only the ELSA menu bar, the screen below 
it is empty. Screenshot is attached.

What version of the product are you using? On what operating system?

A version of ELSA installed on 2013-03-14 04:11 GMT, don't know the exact 
revision. ELSA is installed on Ubuntu 12.10, a browser (IE9) is running on 
Windows 7.

Please provide any additional information below.

The culprit of the problem is the r705 of web/inc/utilities.js that uses 
toSIOstring method of Date object in getISODateTime function. The toSIOstring 
method is only available in Javasript 1.8 (e.g. IE9+). Attached is a patch, 
implementing workaround taken from 
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Dat
e/toISOString .

Original issue reported on code.google.com by dmitry.f...@gmail.com on 15 Mar 2013 at 4:09

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in rev 713, thanks.

Original comment by mchol...@gmail.com on 15 Mar 2013 at 5:58