View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006910KWWidgetspublic2008-04-26 04:232008-10-20 13:31
ReporterPeter Wainwright 
Assigned ToYumin Yuan 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Summary0006910: vtkKWFileBrowserDialog returns wrong file path
DescriptionWhen you hit OK in a vtkKWFileBrowserDialog, it first gets the filename (without path) and checks for the existence of a file with that name IN THE CURRENT DIRECTORY. If such a file is found, FileName is set to the filename alone (without any path).

(see the code following the call to vtksys::SystemTools::FileExist on line 928 of vtkKWFileBrowserDialog.cxx in CVS as of 24 Apr 2008).

A comment in the code indicates that this behaviour is designed to let the user enter a full pathname in the text entry box. However, it should check to see if the content of that box really is a full path (containing '/' or '\' or other path separators).


I encountered this bug when using Slicer3 to load old VoxelView datasets. Each dataset is in its own directory and contains a list of slices just named "1", "2" and so on. If I am in one VoxelView directory I can not not navigate to another directory and load it instead, since the above behaviour means that "1" always refers to "1" in the current directory.

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0013900)
Peter Wainwright (reporter)
2008-10-19 06:29

This sounds like it may also be the cause of the Slicer3 bug:
http://www.na-mic.org/Mantis/view.php?id=331 [^]
(0013909)
Yumin Yuan (developer)
2008-10-20 13:31

This is fixed in cvs.

 Issue History
Date Modified Username Field Change
2008-04-26 04:23 Peter Wainwright New Issue
2008-04-26 09:38 Sebastien Barre Status new => assigned
2008-04-26 09:38 Sebastien Barre Assigned To => Yumin Yuan
2008-10-19 06:29 Peter Wainwright Note Added: 0013900
2008-10-20 13:31 Yumin Yuan Note Added: 0013909
2008-10-20 13:31 Yumin Yuan Status assigned => resolved
2008-10-20 13:31 Yumin Yuan Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team