Login | Register
My pages Projects Community openCollabNet

Discussions > users > XML parse error in registration.add_hw_profile

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

2020-03-13: This site is going to be decommissioned and shut down very soon. Please copy and archive any data you wish to keep ASAP

Back to topic list

XML parse error in registration.add_hw_profile

Reply

Author Geert van der Ploeg <geert at triple-it dot nl>
Full name Geert van der Ploeg <geert at triple-it dot nl>
Date 2003-09-04 01:21:17 PDT
Message Hi all,

After some bad experience with the 1.5.5 version, I'm now deploying a 1.4.4
version server.
But, in the process of registering the server itself to Current, the
following occured:

In short:
======
I think there's an error in the XML-part which contains the hardwarelist:
...
<member>
<name>usbproto​col</name>
<value><str​ng></value>​
</member>
<member>
....

Either the string "<strng>" should be encoded (if "<strng>" is really meant
to be sent), or it should be an empty element...
But this way, the XML isn't well-formed.


More info:
=======

Client-side output of rhnreg_ks:

Traceback (most recent call last):
  File "/usr/sbin/rhnreg_ks", line 304, in ?
    main()
  File "/usr/sbin/rhnreg_ks", line 289, in main
    rhnreg.sendHardware(systemId, hardwareList)
  File "/usr/share/rhn/up2d​ate_client/rhnreg.py​", line 329, in sendHardware
    rpcServer.doCall(s.r​egistration.add_hw_p​rofile, systemId, hardwareList)
  File "/usr/share/rhn/up2d​ate_client/rpcServer​.py", line 170, in doCall
    raise up2dateErrors.Commun​icationError(e.errms​g)
up2dateErrors.Commun​icationError: Error communicating with server. The
message was:
Bad Request



Serverside output (current.log):

EXCEPTION in /usr/share/current/c​urrent_apache.py, handler(), 191
[logException()]
Traceback (most recent call last):
  File "/usr/share/current/​current_apache.py", line 187, in handler
    params, method = xmlrpclib.loads(data)
  File "/usr/lib/python2.2/​xmlrpclib.py", line 804, in loads
    p.feed(data)
  File "/usr/lib/python2.2/​xmlrpclib.py", line 390, in feed
    self._parser.Parse(data, 0)
ExpatError: not well-formed (invalid token): line 1054, column 25
Sep 04 10:20:46 Couldn't decode XMLRPC call.



See the attached file for the complete HTTP-conversation.


Thanks,
Geert
Attachments

« Previous message in topic | 1 of 5 | Next message in topic »

Messages

Show all messages in topic

XML parse error in registration.add_hw_profile Geert van der Ploeg <geert at triple-it dot nl> Geert van der Ploeg <geert at triple-it dot nl> 2003-09-04 01:21:17 PDT
     Re: XML parse error in registration.add_hw_profile Geert van der Ploeg <geert at triple-it dot nl> Geert van der Ploeg <geert at triple-it dot nl> 2003-09-04 01:23:24 PDT
         Re: XML parse error in registration.add_hw_profile hunterm Hunter Matthews 2003-09-04 10:17:24 PDT
             Re: XML parse error in registration.add_hw_profile Geert van der Ploeg <geert at triple-it dot nl> Geert van der Ploeg <geert at triple-it dot nl> 2003-09-04 12:45:03 PDT
             Re: XML parse error in registration.add_hw_profile Geert van der Ploeg <geert at triple-it dot nl> Geert van der Ploeg <geert at triple-it dot nl> 2003-09-09 04:59:23 PDT
Messages per page: