Bug 45444 - BadStatusLine exception in appcenter not handled
BadStatusLine exception in appcenter not handled
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - App-Center
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on: 34543
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-22 17:28 CEST by Florian Best
Modified: 2019-01-03 07:21 CET (History)
6 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.171
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017121621000047, 2017121621000065, 2017090521000832, 2017102321000475
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2017-09-22 17:28:31 CEST
Version: 4.2-1 errata157 (Lesum)

Execution of command 'appcenter/ping' has failed:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/protocol/modserver.py", line 178, in _recv
    self.handle(msg)
  File "%PY2.7%/univention/management/console/protocol/modserver.py", line 287, in handle
    self.__handler.init()
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 154, in init
    self.uu = UniventionUpdater(False)
  File "%PY2.7%/univention/updater/tools.py", line 580, in __init__
    self.ucr_reinit()
  File "%PY2.7%/univention/updater/tools.py", line 652, in ucr_reinit
    assert self.server.access(None, '/univention-repository/')
  File "%PY2.7%/univention/updater/tools.py", line 425, in access
    res = UCSHttpServer.opener.open(req, timeout=self.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1240, in https_open
    context=self._context)
  File "/usr/lib/python2.7/urllib2.py", line 1200, in do_open
    r = h.getresponse(buffering=True)
  File "/usr/lib/python2.7/httplib.py", line 1111, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 444, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 408, in _read_status
    raise BadStatusLine(line)
BadStatusLine: ''

+++ This bug was initially created as a clone of Bug #34543 +++

Reported by traceback feedback:

 Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py",
line 204, in execute
    func( request )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py",
line 305, in _response
    result = _multi_response(self, request)
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py",
line 432, in _response
    for res in function(self, iterator, *nones):
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py",
line 271, in _fake_func
    yield function(self, *args)
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/__init__.py",
line 101, in query
    applications = Application.all(force_reread=True)
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/app_center.py",
line 606, in all
    cls._get_category_translations(fake=not localize)
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/app_center.py",
line 484, in _get_category_translations
    fp = urlopen(url)
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/util.py",
line 96, in urlopen
    return urllib2.urlopen(request)
  File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.6/urllib2.py", line 391, in open
    response = self._open(req, data)
  File "/usr/lib/python2.6/urllib2.py", line 409, in _open
    '_open', req)
  File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 1192, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.6/urllib2.py", line 1156, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.6/httplib.py", line 914, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.6/httplib.py", line 951, in _send_request
    self.endheaders()
  File "/usr/lib/python2.6/httplib.py", line 908, in endheaders
    self._send_output()
  File "/usr/lib/python2.6/httplib.py", line 780, in _send_output
    self.send(msg)
  File "/usr/lib/python2.6/httplib.py", line 739, in send
    self.connect()
  File "/usr/lib/python2.6/httplib.py", line 1115, in connect
    self._tunnel()
  File "/usr/lib/python2.6/httplib.py", line 706, in _tunnel
    (version, code, message) = response._read_status()
  File "/usr/lib/python2.6/httplib.py", line 355, in _read_status
    raise BadStatusLine(line)
BadStatusLine


Code from /usr/lib/python2.6/httplib.py

 352  if not line:
 353    # Presumably, the server closed the connection before
 354    # sending a valid response.
 355    raise BadStatusLine(line)
Comment 1 Florian Best univentionstaff 2017-10-23 16:50:14 CEST
Version: 4.2-1 errata118 (Lesum)
Comment 2 Johannes Keiser univentionstaff 2018-01-15 17:45:32 CET
Reported again: Version: 4.2-2 errata216 (Lesum)
Comment 3 Johannes Keiser univentionstaff 2018-01-19 15:53:47 CET
Reported again:  Version: 4.2-2 errata216 (Lesum)
Comment 4 Stefan Gohmann univentionstaff 2019-01-03 07:21:20 CET
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.