View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015558 | VTK | (No Category) | public | 2015-06-30 12:31 | 2015-08-07 11:31 | ||||
Reporter | Joao Roberto | ||||||||
Assigned To | Ben Boeckel (Kitware) | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 6.0.0 | ||||||||
Target Version | Fixed in Version | 6.3.0 | |||||||
Summary | 0015558: vtkXMLPolyDataWriter requires file name even when writing to an output string | ||||||||
Description | When writing to an output string, vtkXMLPolyDataWriter class requires a file name. Since there isn't a method to set string stream, the user gets 'The FileName or Stream must be set first.'. I can reproduce this bug on VTK 6.2.0 with the code below: vtkSmartPointer<vtkXMLPolyDataWriter> writer = vtkSmartPointer<vtkXMLPolyDataWriter>::New(); // writer->SetFileName("InputPolyData"); writer->SetInputData(this->inputPolyData); writer->WriteToOutputStringOn(); writer->Update(); writer->Write(); writer->GetOutputString(); vtkXMLUnstructuredDataWriter class calls vtkXMLWriter::OpenStream after the validation of Stream and FileName attributes (see vtkXMLUnstructuredDataWriter.cxx, lines 117 and 149). I think the vtkXMLWriter::OpenStream method must be called BEFORE both attributes validation. | ||||||||
Tags | VTK, XML | ||||||||
Project | TBD | ||||||||
Type | incorrect functionality | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0034682) Ben Boeckel (Kitware) (developer) 2015-07-07 16:30 |
What about also checking if WriteToOutputString is true in the sanity check? |
(0034713) Joao Roberto (reporter) 2015-07-08 23:45 |
Yes, it is true. |
(0034724) Ben Boeckel (Kitware) (developer) 2015-07-09 14:38 |
Merge request here: https://gitlab.kitware.com/vtk/vtk/merge_requests/394 [^] Need to add a test yet. |
(0034923) T.J. Corona (developer) 2015-08-07 08:45 |
Sorry! I didn't realize Ben was actively working on this issue. |
(0034925) Ben Boeckel (Kitware) (developer) 2015-08-07 11:31 |
Actually, it has already been merged :) . |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2015-06-30 12:31 | Joao Roberto | New Issue | |
2015-06-30 12:31 | Joao Roberto | Tag Attached: XML | |
2015-06-30 12:32 | Joao Roberto | Tag Attached: VTK | |
2015-07-07 16:30 | Ben Boeckel (Kitware) | Note Added: 0034682 | |
2015-07-08 23:45 | Joao Roberto | Note Added: 0034713 | |
2015-07-09 14:38 | Ben Boeckel (Kitware) | Note Added: 0034724 | |
2015-08-07 08:23 | T.J. Corona | Assigned To | => T.J. Corona |
2015-08-07 08:45 | T.J. Corona | Assigned To | T.J. Corona => |
2015-08-07 08:45 | T.J. Corona | Note Added: 0034923 | |
2015-08-07 11:31 | Ben Boeckel (Kitware) | Note Added: 0034925 | |
2015-08-07 11:31 | Ben Boeckel (Kitware) | Status | backlog => closed |
2015-08-07 11:31 | Ben Boeckel (Kitware) | Assigned To | => Ben Boeckel (Kitware) |
2015-08-07 11:31 | Ben Boeckel (Kitware) | Resolution | open => fixed |
2015-08-07 11:31 | Ben Boeckel (Kitware) | Fixed in Version | => 6.3.0 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |