Bug #174

Character & in strings breaks rexml

Added by Javi Fontan over 11 years ago. Updated about 11 years ago.

Status:ClosedStart date:11/16/2009
Priority:LowDue date:
Assignee:Javi Fontan% Done:

0%

Category:Client API & Library
Target version:Release 2.0
Resolution:fixed Pull request:
Affected Versions:

Description

Mail from Shi Jin:

This And condition seems to work:
REQUIREMENTS="LVM=NO & HOSTNAME=node1" 
It gives me the VM where I want it to be.
However, I have a problem using "onevm show" to display its
properties. The error I get is
onevm show 30
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:92:in `parse':
#<RuntimeError: Illegal character '&' in raw string "LVM=NO &
HOSTNAME=node1"> (REXML::ParseException)
/usr/lib/ruby/1.8/rexml/text.rb:91:in `initialize'
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:43:in `new'
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:43:in `parse'
/usr/lib/ruby/1.8/rexml/document.rb:228:in `build'
/usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
/srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:31:in `new'
/srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:31:in `initialize_xml'
/srv/cloud/one/lib/ruby/OpenNebula/Pool.rb:106:in `info'
/srv/cloud/one/lib/ruby/OpenNebula/VirtualMachine.rb:101:in `info'
/srv/cloud/one/bin/onevm:684
/srv/cloud/one/bin/onevm:679:in `each'
/srv/cloud/one/bin/onevm:679
...
Illegal character '&' in raw string "LVM=NO & HOSTNAME=node1" 
Line:
Position:
Last 80 unconsumed characters:
</REQUIREMENTS><VCPU>1</VCPU><VMID>30</VMID></TEMPLATE><HISTORY><SEQ>0</SEQ><HOST
from /usr/lib/ruby/1.8/rexml/document.rb:228:in `build'
from /usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
from /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:31:in `new'
from /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:31:in `initialize_xml'
from /srv/cloud/one/lib/ruby/OpenNebula/Pool.rb:106:in `info'
from /srv/cloud/one/lib/ruby/OpenNebula/VirtualMachine.rb:101:in `info'
from /srv/cloud/one/bin/onevm:684
from /srv/cloud/one/bin/onevm:679:in `each'
from /srv/cloud/one/bin/onevm:679 

Associated revisions

Revision 2f1a6b4a
Added by Guillaume Oberlé over 4 years ago

Add default MTU for the VXLAN interface (#174)

F #4958: Add default MTU for VXLAN interfaces

Revision a962a1ce
Added by Guillaume Oberlé over 4 years ago

Add default MTU for the VXLAN interface (#174)

F #4958: Add default MTU for VXLAN interfaces

History

#1 Updated by Ruben S. Montero over 11 years ago

  • Priority changed from Normal to Low
  • Target version set to Release 1.4.2

#2 Updated by Ruben S. Montero about 11 years ago

  • Status changed from New to Closed
  • Target version changed from Release 1.4.2 to Release 2.0
  • Resolution set to fixed

Also available in: Atom PDF