| Summary: | Apache Error log static parser does not use timezone specified by user in import dialog | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Dave Smith <smith> | ||||||
| Component: | TPTP.monitoring | Assignee: | Rohit Shetty <rohit.shetty> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P1 | CC: | apnan, jkubasta, labadie, rohit.shetty | ||||||
| Version: | unspecified | Keywords: | plan | ||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 2000 | ||||||||
| Whiteboard: | closed460 | ||||||||
| Attachments: |
|
||||||||
|
Description
Dave Smith
This is required for 4.5. To fix this, the "timezone" property needs to be added to the static parser sensor configuration in the Apache HTTP Server error log static.adapter file and the static parser class org.eclipse.hyades.logging.parsers.AbstractErrorLogParser must be changed to get the timezone from the input hash table and use it in the parseDate method when generating the creationTime value of the Common Base Event. The code should handle the value org.eclipse.hyades.logging.adapter.util.dapterConstants.AttributeValue_Default and use the default system timezone in that case. I added a sizing of 8 hours to do the coding, unit testing and creating new test cases (JUnit and AGR). Assigning to i4. Created attachment 83391 [details]
Patch
Will add test cases as soon as they are done.
Created attachment 83861 [details]
Updated patch
Rohit, the patch is OK now except that I forgot to mention last time two details, sorry about this:
- put the "timezone" string from
String timezone = (String)table.get("timezone");
into the ParserConstants as, let's say,
public final static String TIME_ZONE="timezone"
- add in the header a comment logging your change: committer name and bugzilla.
Once you have done these changes do an additional test and check in the fix.
Thanks.
Updated junits and autogui ... Fixed. In CVS. As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open. |