ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:51784] [ruby-trunk - Bug #7764][Open] REXML -- Malformed comment
@ 2013-01-31 18:41 lehphyro (Leandro A)
  2013-02-02 10:35 ` [ruby-core:51809] [Backport93 - Backport #7764] " kou (Kouhei Sutou)
  2013-02-22  5:39 ` [ruby-core:52682] [Backport93 - Backport #7764][Closed] " usa (Usaku NAKAMURA)
  0 siblings, 2 replies; 3+ messages in thread
From: lehphyro (Leandro A) @ 2013-01-31 18:41 UTC (permalink / raw
  To: ruby-core


Issue #7764 has been reported by lehphyro (Leandro A).

----------------------------------------
Bug #7764: REXML -- Malformed comment
https://bugs.ruby-lang.org/issues/7764

Author: lehphyro (Leandro A)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p374 (2013-01-15) [i386-mingw32]


I'm getting the following trying to parse the attached xml:

C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:95:in `rescue in parse': #<REXML::ParseException: Malformed comment (REXML::ParseException)
Line: 181
Position: 7663
Last 80 unconsumed characters:
>
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:346:in `pull_event'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:183:in `pull'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:22:in `parse'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:231:in `build'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
install.rb:74:in `new'
install.rb:74:in `<main>'
...
Malformed comment
Line: 181
Position: 7663
Last 80 unconsumed characters:

Line: 181
Position: 7663
Last 80 unconsumed characters:
        from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:20:in `parse'
        from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:231:in `build'
        from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
        from install.rb:74:in `new'
        from install.rb:74:in `<main>'

Line 74 of install.rb is:

doc = REXML::Document.new(File.new('settings.xml'))



-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:51809] [Backport93 - Backport #7764] REXML -- Malformed comment
  2013-01-31 18:41 [ruby-core:51784] [ruby-trunk - Bug #7764][Open] REXML -- Malformed comment lehphyro (Leandro A)
@ 2013-02-02 10:35 ` kou (Kouhei Sutou)
  2013-02-22  5:39 ` [ruby-core:52682] [Backport93 - Backport #7764][Closed] " usa (Usaku NAKAMURA)
  1 sibling, 0 replies; 3+ messages in thread
From: kou (Kouhei Sutou) @ 2013-02-02 10:35 UTC (permalink / raw
  To: ruby-core


Issue #7764 has been updated by kou (Kouhei Sutou).


There is a workaround for the problem.

The problem is caused by a line that ends with "-" in comment. In your XML, there is a problem line at 163:

     | the build process. Profiles provided in the settings.xml are intended to provide local machine-

If you put " " (a space) after "machine-", the problem can be avoided. ("machine-" -> "machine- ")
----------------------------------------
Backport #7764: REXML -- Malformed comment
https://bugs.ruby-lang.org/issues/7764#change-35785

Author: lehphyro (Leandro A)
Status: Assigned
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category: 
Target version: 


I'm getting the following trying to parse the attached xml:

C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:95:in `rescue in parse': #<REXML::ParseException: Malformed comment (REXML::ParseException)
Line: 181
Position: 7663
Last 80 unconsumed characters:
>
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:346:in `pull_event'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:183:in `pull'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:22:in `parse'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:231:in `build'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
install.rb:74:in `new'
install.rb:74:in `<main>'
...
Malformed comment
Line: 181
Position: 7663
Last 80 unconsumed characters:

Line: 181
Position: 7663
Last 80 unconsumed characters:
        from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:20:in `parse'
        from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:231:in `build'
        from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
        from install.rb:74:in `new'
        from install.rb:74:in `<main>'

Line 74 of install.rb is:

doc = REXML::Document.new(File.new('settings.xml'))



-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:52682] [Backport93 - Backport #7764][Closed] REXML -- Malformed comment
  2013-01-31 18:41 [ruby-core:51784] [ruby-trunk - Bug #7764][Open] REXML -- Malformed comment lehphyro (Leandro A)
  2013-02-02 10:35 ` [ruby-core:51809] [Backport93 - Backport #7764] " kou (Kouhei Sutou)
@ 2013-02-22  5:39 ` usa (Usaku NAKAMURA)
  1 sibling, 0 replies; 3+ messages in thread
From: usa (Usaku NAKAMURA) @ 2013-02-22  5:39 UTC (permalink / raw
  To: ruby-core


Issue #7764 has been updated by usa (Usaku NAKAMURA).

Status changed from Assigned to Closed

fixed at r39113.
----------------------------------------
Backport #7764: REXML -- Malformed comment
https://bugs.ruby-lang.org/issues/7764#change-36771

Author: lehphyro (Leandro A)
Status: Closed
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category: 
Target version: 


I'm getting the following trying to parse the attached xml:

C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:95:in `rescue in parse': #<REXML::ParseException: Malformed comment (REXML::ParseException)
Line: 181
Position: 7663
Last 80 unconsumed characters:
>
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:346:in `pull_event'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:183:in `pull'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:22:in `parse'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:231:in `build'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
install.rb:74:in `new'
install.rb:74:in `<main>'
...
Malformed comment
Line: 181
Position: 7663
Last 80 unconsumed characters:

Line: 181
Position: 7663
Last 80 unconsumed characters:
        from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:20:in `parse'
        from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:231:in `build'
        from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
        from install.rb:74:in `new'
        from install.rb:74:in `<main>'

Line 74 of install.rb is:

doc = REXML::Document.new(File.new('settings.xml'))



-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-22  5:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-31 18:41 [ruby-core:51784] [ruby-trunk - Bug #7764][Open] REXML -- Malformed comment lehphyro (Leandro A)
2013-02-02 10:35 ` [ruby-core:51809] [Backport93 - Backport #7764] " kou (Kouhei Sutou)
2013-02-22  5:39 ` [ruby-core:52682] [Backport93 - Backport #7764][Closed] " usa (Usaku NAKAMURA)

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).