Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

#query fails on parsing XML with ":" in it on ruby-1.9.1-p378 #4

Open
turboladen opened this issue Feb 17, 2011 · 2 comments
Open

#query fails on parsing XML with ":" in it on ruby-1.9.1-p378 #4

turboladen opened this issue Feb 17, 2011 · 2 comments

Comments

@turboladen
Copy link
Owner

One of the review comments was:
Added :'s to YAML comments. Added comments for :capture_directory:.

The #query method (well, REXML, rather) choked on parsing the ":" in that string:

ruby-1.9.1-p378 > result = f.query 'endura-automation', query
REXML::ParseException: #<RuntimeError: Illegal character "\x10" in raw string "AUTOTEST-1314 Added :&#039;s to YAML comments.  Added comments for :capture_directory:.�">
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/text.rb:138:in `block in check'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/text.rb:134:in `chars'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/text.rb:134:in `each'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/text.rb:134:in `check'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/text.rb:125:in `parent='
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/parent.rb:19:in `add'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:45:in `parse'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/document.rb:228:in `build'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
/home/sloveless/.rvm/gems/ruby-1.9.1-p378/gems/fisheye-crucible-0.0.2/lib/fisheye-crucible/type_converter.rb:24:in `new'
/home/sloveless/.rvm/gems/ruby-1.9.1-p378/gems/fisheye-crucible-0.0.2/lib/fisheye-crucible/type_converter.rb:24:in `to_ruby'
/home/sloveless/.rvm/gems/ruby-1.9.1-p378/gems/fisheye-crucible-0.0.2/lib/fisheye-crucible/client/legacy.rb:291:in `build_rest_call'
/home/sloveless/.rvm/gems/ruby-1.9.1-p378/gems/fisheye-crucible-0.0.2/lib/fisheye-crucible/client/legacy.rb:253:in `query'
(irb):16:in `irb_binding'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb/workspace.rb:80:in `eval'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb/workspace.rb:80:in `evaluate'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb/context.rb:218:in `evaluate'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb.rb:157:in `block (2 levels) in eval_input'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb.rb:271:in `signal_status'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb.rb:154:in `block in eval_input'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb/ruby-lex.rb:244:in `block (2 levels) in each_top_level_statement'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `loop'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `block in each_top_level_statement'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `catch'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `each_top_level_statement'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb.rb:153:in `eval_input'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb.rb:70:in `block in start'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb.rb:69:in `catch'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb.rb:69:in `start'
/home/sloveless/.rvm/rubies/ruby-1.9.1-p378/bin/irb:16:in `<main>'
...
Illegal character "\x10" in raw string "AUTOTEST-1314 Added :&#039;s to YAML comments.  Added comments for :capture_directory:.�"
Line: 15717
Position: 527997
Last 80 unconsumed characters:
</comment>
    from /home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:95:in `rescue in parse'
    from /home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:20:in `parse'
    from /home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/document.rb:228:in `build'
    from /home/sloveless/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
    from /home/sloveless/.rvm/gems/ruby-1.9.1-p378/gems/fisheye-crucible-0.0.2/lib/fisheye-crucible/type_converter.rb:24:in `new'
    from /home/sloveless/.rvm/gems/ruby-1.9.1-p378/gems/fisheye-crucible-0.0.2/lib/fisheye-crucible/type_converter.rb:24:in `to_ruby'
    from /home/sloveless/.rvm/gems/ruby-1.9.1-p378/gems/fisheye-crucible-0.0.2/lib/fisheye-crucible/client/legacy.rb:291:in `build_rest_call'
    from /home/sloveless/.rvm/gems/ruby-1.9.1-p378/gems/fisheye-crucible-0.0.2/lib/fisheye-crucible/client/legacy.rb:253:in `query'
    from (irb):16
    from /home/sloveless/.rvm/rubies/ruby-1.9.1-p378/bin/irb:16:in `<main>'
@turboladen
Copy link
Owner Author

Same behavior with ruby-1.9.2-p0

@turboladen
Copy link
Owner Author

Works fine with ruby-1.8.7-p302

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant