Ticket #174 (new defect)
Opened 15 months ago
parseException -> currentline undefined method pos in case of Zip::ZipInputStream
| Reported by: | vhochstein | Owned by: | ser |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | PullParser | Version: | 3.1.4 |
| Severity: | normal | Keywords: | |
| Cc: | Ruby version: | 1.8.5 | |
| Operating system: | Windows |
Description
Hi,
I m on a quite old version, but since I have nt found a bug for my issue in later releases I just wanted to report it.
ruby 1.8.5 (2006-08-25) [i386-mswin32] "3.1.4" "i386-mswin32"
If you have a zip file which includes xml files and at least one is malformed and you are using zip/zipfilesystem to iterate over these zipped files... You get to the point where you call: xml_file = zip.file.open(path) doc = REXML::Document.new(xml_file) and that gives me the following output: C:/ruby/lib/ruby/1.8/rexml/source.rb:215:in current_line':undefined method pos' for <Zip::ZipInputStream:0x352fec4> (NoMethodError?)
from C:/ruby/lib/ruby/1.8/rexml/parseexception.rb:44:in line'
