Ticket #802 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

KeyError for content-length when using SSL client without python-ssl

Reported by: strauss Owned by: desai
Priority: major Milestone: Bcfg2 1.0.1 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:


Here is the unmasked backtrace, along with a pprint of the headers:

[email protected]:~# bcfg2 -vqn
<class xmlrpclib._Method at 0xb7e024dc>
{'connection': 'close',
 'content-type': 'text/html',
 'date': 'Wed, 18 Nov 2009 22:49:08 GMT',
 'server': 'BaseHTTP/0.3 Python/2.4.3'}
Unknown failure
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Bcfg2/", line 58, in __call__
    return _Method.__call__(self, *args)
  File "/usr/lib/python2.5/", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/", line 1437, in __request
  File "/usr/lib/python2.5/site-packages/Bcfg2/", line 258, in request
    msglen = int(headers.dict['content-length'])
KeyError: 'content-length'
Failed to download probes from bcfg2
Server Failure


Change History

comment:1 Changed 13 years ago by strauss

It's currently possible to work around this by installing python-ssl to the client.

comment:2 Changed 13 years ago by Martin Schwier <[email protected]…>

I have the problem too.

desai: You asked me which version I run on irc. Its 1.0.0 on lenny without python-ssl.

comment:3 Changed 13 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed

Looks like this is fixed by [r5626].

comment:4 Changed 13 years ago by Martin Schwier <[email protected]…>

Is a bugfix release of 1.0.0 planed to fix this or do I have to use the trunk version?

comment:5 Changed 13 years ago by desai

yeah, we will have 1.0.1 out quite soon. (rc2 will be cut later on today)

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.