* [ruby-core:81593] [Ruby trunk Bug#13636] REXML::Document.parse_stream doesn't handle when closing tag not provided
[not found] <redmine.issue-13636.20170606213539@ruby-lang.org>
@ 2017-06-06 21:35 ` fanantoxa
2017-06-06 22:08 ` [ruby-core:81594] " fanantoxa
` (4 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: fanantoxa @ 2017-06-06 21:35 UTC (permalink / raw)
To: ruby-core
Issue #13636 has been reported by fanantoxa (Anton Sivakov).
----------------------------------------
Bug #13636: REXML::Document.parse_stream doesn't handle when closing tag not provided
https://bugs.ruby-lang.org/issues/13636
* Author: fanantoxa (Anton Sivakov)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
I've tried to use REXML for parsing but got unexpected behavior:
Here is example:
~~~ ruby
require 'rexml/document'
require 'rexml/streamlistener'
class Handler include REXML::StreamListener end
xml1 = StringIO.new("<body><item>test</item></body>")
xml2 = StringIO.new("<body><item>test</body>")
xml3 = StringIO.new("<body><item>test</item>")
handler = Handler.new
REXML::Document.parse_stream(xml1, handler) # => nil
REXML::Document.parse_stream(xml2, handler) # => REXML::ParseException: Missing end tag for 'item' (got "body")
REXML::Document.parse_stream(xml3, handler) # => nil
~~~
Actualy XML: "<body><item>test</item>" is broken so it's expected to get:
~~~ ruby
REXML::ParseException.new( "Missing end tag for body")
~~~
I can't rely on REXML parse since I'm not getting exception when XML data structure not valid.
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ruby-core:81594] [Ruby trunk Bug#13636] REXML::Document.parse_stream doesn't handle when closing tag not provided
[not found] <redmine.issue-13636.20170606213539@ruby-lang.org>
2017-06-06 21:35 ` [ruby-core:81593] [Ruby trunk Bug#13636] REXML::Document.parse_stream doesn't handle when closing tag not provided fanantoxa
@ 2017-06-06 22:08 ` fanantoxa
2017-06-06 22:35 ` [ruby-core:81595] [Ruby trunk Bug#13636][Assigned] " hsbt
` (3 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: fanantoxa @ 2017-06-06 22:08 UTC (permalink / raw)
To: ruby-core
Issue #13636 has been updated by fanantoxa (Anton Sivakov).
Expectex to get exeption for xml3
----------------------------------------
Bug #13636: REXML::Document.parse_stream doesn't handle when closing tag not provided
https://bugs.ruby-lang.org/issues/13636#change-65294
* Author: fanantoxa (Anton Sivakov)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
I've tried to use REXML for parsing but got unexpected behavior:
Here is example:
~~~ ruby
require 'rexml/document'
require 'rexml/streamlistener'
class Handler include REXML::StreamListener end
xml1 = StringIO.new("<body><item>test</item></body>")
xml2 = StringIO.new("<body><item>test</body>")
xml3 = StringIO.new("<body><item>test</item>")
handler = Handler.new
REXML::Document.parse_stream(xml1, handler) # => nil
REXML::Document.parse_stream(xml2, handler) # => REXML::ParseException: Missing end tag for 'item' (got "body")
REXML::Document.parse_stream(xml3, handler) # => nil
~~~
Actualy XML: "<body><item>test</item>" is broken so it's expected to get:
~~~ ruby
REXML::ParseException.new( "Missing end tag for body")
~~~
I can't rely on REXML parse since I'm not getting exception when XML data structure not valid.
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ruby-core:81595] [Ruby trunk Bug#13636][Assigned] REXML::Document.parse_stream doesn't handle when closing tag not provided
[not found] <redmine.issue-13636.20170606213539@ruby-lang.org>
2017-06-06 21:35 ` [ruby-core:81593] [Ruby trunk Bug#13636] REXML::Document.parse_stream doesn't handle when closing tag not provided fanantoxa
2017-06-06 22:08 ` [ruby-core:81594] " fanantoxa
@ 2017-06-06 22:35 ` hsbt
2017-06-07 13:02 ` [ruby-core:81606] [Ruby trunk Bug#13636] " kou
` (2 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: hsbt @ 2017-06-06 22:35 UTC (permalink / raw)
To: ruby-core
Issue #13636 has been updated by hsbt (Hiroshi SHIBATA).
Status changed from Open to Assigned
Assignee set to kou (Kouhei Sutou)
Target version set to 2.5
----------------------------------------
Bug #13636: REXML::Document.parse_stream doesn't handle when closing tag not provided
https://bugs.ruby-lang.org/issues/13636#change-65295
* Author: fanantoxa (Anton Sivakov)
* Status: Assigned
* Priority: Normal
* Assignee: kou (Kouhei Sutou)
* Target version: 2.5
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
I've tried to use REXML for parsing but got unexpected behavior:
Here is example:
~~~ ruby
require 'rexml/document'
require 'rexml/streamlistener'
class Handler include REXML::StreamListener end
xml1 = StringIO.new("<body><item>test</item></body>")
xml2 = StringIO.new("<body><item>test</body>")
xml3 = StringIO.new("<body><item>test</item>")
handler = Handler.new
REXML::Document.parse_stream(xml1, handler) # => nil
REXML::Document.parse_stream(xml2, handler) # => REXML::ParseException: Missing end tag for 'item' (got "body")
REXML::Document.parse_stream(xml3, handler) # => nil
~~~
Actualy XML: "<body><item>test</item>" is broken so it's expected to get:
~~~ ruby
REXML::ParseException.new( "Missing end tag for body")
~~~
I can't rely on REXML parse since I'm not getting exception when XML data structure not valid.
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ruby-core:81606] [Ruby trunk Bug#13636] REXML::Document.parse_stream doesn't handle when closing tag not provided
[not found] <redmine.issue-13636.20170606213539@ruby-lang.org>
` (2 preceding siblings ...)
2017-06-06 22:35 ` [ruby-core:81595] [Ruby trunk Bug#13636][Assigned] " hsbt
@ 2017-06-07 13:02 ` kou
2017-06-30 12:58 ` [ruby-core:81870] " usa
2017-07-23 7:33 ` [ruby-core:82129] " nagachika00
5 siblings, 0 replies; 6+ messages in thread
From: kou @ 2017-06-07 13:02 UTC (permalink / raw)
To: ruby-core
Issue #13636 has been updated by kou (Kouhei Sutou).
Thanks for your report.
I've added a validation on end of document.
----------------------------------------
Bug #13636: REXML::Document.parse_stream doesn't handle when closing tag not provided
https://bugs.ruby-lang.org/issues/13636#change-65304
* Author: fanantoxa (Anton Sivakov)
* Status: Closed
* Priority: Normal
* Assignee: kou (Kouhei Sutou)
* Target version: 2.5
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
I've tried to use REXML for parsing but got unexpected behavior:
Here is example:
~~~ ruby
require 'rexml/document'
require 'rexml/streamlistener'
class Handler include REXML::StreamListener end
xml1 = StringIO.new("<body><item>test</item></body>")
xml2 = StringIO.new("<body><item>test</body>")
xml3 = StringIO.new("<body><item>test</item>")
handler = Handler.new
REXML::Document.parse_stream(xml1, handler) # => nil
REXML::Document.parse_stream(xml2, handler) # => REXML::ParseException: Missing end tag for 'item' (got "body")
REXML::Document.parse_stream(xml3, handler) # => nil
~~~
Actualy XML: "<body><item>test</item>" is broken so it's expected to get:
~~~ ruby
REXML::ParseException.new( "Missing end tag for body")
~~~
I can't rely on REXML parse since I'm not getting exception when XML data structure not valid.
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ruby-core:81870] [Ruby trunk Bug#13636] REXML::Document.parse_stream doesn't handle when closing tag not provided
[not found] <redmine.issue-13636.20170606213539@ruby-lang.org>
` (3 preceding siblings ...)
2017-06-07 13:02 ` [ruby-core:81606] [Ruby trunk Bug#13636] " kou
@ 2017-06-30 12:58 ` usa
2017-07-23 7:33 ` [ruby-core:82129] " nagachika00
5 siblings, 0 replies; 6+ messages in thread
From: usa @ 2017-06-30 12:58 UTC (permalink / raw)
To: ruby-core
Issue #13636 has been updated by usa (Usaku NAKAMURA).
Backport changed from 2.2: WONTFIX, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: WONTFIX, 2.3: DONE, 2.4: REQUIRED
ruby_2_3 r59239 merged revision(s) 59033,59034.
----------------------------------------
Bug #13636: REXML::Document.parse_stream doesn't handle when closing tag not provided
https://bugs.ruby-lang.org/issues/13636#change-65599
* Author: fanantoxa (Anton Sivakov)
* Status: Closed
* Priority: Normal
* Assignee: kou (Kouhei Sutou)
* Target version: 2.5
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: WONTFIX, 2.3: DONE, 2.4: REQUIRED
----------------------------------------
I've tried to use REXML for parsing but got unexpected behavior:
Here is example:
~~~ ruby
require 'rexml/document'
require 'rexml/streamlistener'
class Handler include REXML::StreamListener end
xml1 = StringIO.new("<body><item>test</item></body>")
xml2 = StringIO.new("<body><item>test</body>")
xml3 = StringIO.new("<body><item>test</item>")
handler = Handler.new
REXML::Document.parse_stream(xml1, handler) # => nil
REXML::Document.parse_stream(xml2, handler) # => REXML::ParseException: Missing end tag for 'item' (got "body")
REXML::Document.parse_stream(xml3, handler) # => nil
~~~
Actualy XML: "<body><item>test</item>" is broken so it's expected to get:
~~~ ruby
REXML::ParseException.new( "Missing end tag for body")
~~~
I can't rely on REXML parse since I'm not getting exception when XML data structure not valid.
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ruby-core:82129] [Ruby trunk Bug#13636] REXML::Document.parse_stream doesn't handle when closing tag not provided
[not found] <redmine.issue-13636.20170606213539@ruby-lang.org>
` (4 preceding siblings ...)
2017-06-30 12:58 ` [ruby-core:81870] " usa
@ 2017-07-23 7:33 ` nagachika00
5 siblings, 0 replies; 6+ messages in thread
From: nagachika00 @ 2017-07-23 7:33 UTC (permalink / raw)
To: ruby-core
Issue #13636 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 2.2: WONTFIX, 2.3: DONE, 2.4: REQUIRED to 2.2: WONTFIX, 2.3: DONE, 2.4: DONE
ruby_2_4 r59399 merged revision(s) 59033,59034.
----------------------------------------
Bug #13636: REXML::Document.parse_stream doesn't handle when closing tag not provided
https://bugs.ruby-lang.org/issues/13636#change-65886
* Author: fanantoxa (Anton Sivakov)
* Status: Closed
* Priority: Normal
* Assignee: kou (Kouhei Sutou)
* Target version: 2.5
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: WONTFIX, 2.3: DONE, 2.4: DONE
----------------------------------------
I've tried to use REXML for parsing but got unexpected behavior:
Here is example:
~~~ ruby
require 'rexml/document'
require 'rexml/streamlistener'
class Handler include REXML::StreamListener end
xml1 = StringIO.new("<body><item>test</item></body>")
xml2 = StringIO.new("<body><item>test</body>")
xml3 = StringIO.new("<body><item>test</item>")
handler = Handler.new
REXML::Document.parse_stream(xml1, handler) # => nil
REXML::Document.parse_stream(xml2, handler) # => REXML::ParseException: Missing end tag for 'item' (got "body")
REXML::Document.parse_stream(xml3, handler) # => nil
~~~
Actualy XML: "<body><item>test</item>" is broken so it's expected to get:
~~~ ruby
REXML::ParseException.new( "Missing end tag for body")
~~~
I can't rely on REXML parse since I'm not getting exception when XML data structure not valid.
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-07-23 7:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <redmine.issue-13636.20170606213539@ruby-lang.org>
2017-06-06 21:35 ` [ruby-core:81593] [Ruby trunk Bug#13636] REXML::Document.parse_stream doesn't handle when closing tag not provided fanantoxa
2017-06-06 22:08 ` [ruby-core:81594] " fanantoxa
2017-06-06 22:35 ` [ruby-core:81595] [Ruby trunk Bug#13636][Assigned] " hsbt
2017-06-07 13:02 ` [ruby-core:81606] [Ruby trunk Bug#13636] " kou
2017-06-30 12:58 ` [ruby-core:81870] " usa
2017-07-23 7:33 ` [ruby-core:82129] " nagachika00
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).