Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355899

Summary: [LTTng] Insufficient verification by ImportTraceWizard
Product: z_Archived Reporter: Francois Chouinard <fchouinard>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED INVALID QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 321366    
Attachments:
Description Flags
Missing parsing library error dialog
none
Unrecognized trace type
none
Unsupported trace version error dialog none

Description Francois Chouinard CLA 2011-08-25 18:54:09 EDT
The ImportTraceWizard performs insufficient verification before allowing importation of a trace in a trace project.

To reproduce:
- Delete/rename a parsing library (say liblttvtraceread-2.6)
- Start LTTng and import a trace of that format (2.6)

The trace will be imported in the project but an exception will be thrown (or error dialog opened) when trying to open it.
Comment 1 Francois Chouinard CLA 2011-08-31 09:54:15 EDT
Created attachment 202520 [details]
Missing parsing library error dialog
Comment 2 Francois Chouinard CLA 2011-08-31 09:55:01 EDT
Created attachment 202521 [details]
Unrecognized trace type
Comment 3 Francois Chouinard CLA 2011-08-31 09:55:36 EDT
Created attachment 202523 [details]
Unsupported trace version error dialog
Comment 4 Francois Chouinard CLA 2011-08-31 09:58:28 EDT
With the possibility of changing dynamically the parsing trace library path, it becomes undecidable if a trace can or can't be imported in a given project.

The current behavior is to perform this validation when opening the trace and to display the appropriate error dialog (see attachments) if an error occurs.

This should be enough.
Comment 5 Francois Chouinard CLA 2011-09-28 17:40:52 EDT
Closing bug.