TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

Bug #820065 reported by Diogo Matsubara
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Данило Шеган
loggerhead
Fix Released
High
Francesco Del Degan

Bug Description

http://bazaar.launchpad.net/~blueman/blueman/trunk/annotate/head%3A/README

 Module paste.wsgilib, line 179, in catch_errors
    app_iter = application(environ, start_response)
  Module launchpad_loggerhead.session, line 53, in __call__
    return self.cookie_handler(environ, start_response)
  Module paste.auth.cookie, line 305, in __call__
    return self.application(environ, response_hook)
  Module launchpad_loggerhead.session, line 80, in _process
    return self.application(environ, response_hook)
  Module paste.httpexceptions, line 636, in __call__
    return self.application(environ, start_response)
  Module launchpad_loggerhead.app, line 230, in __call__
    return view.app(environ, start_response)
  Module loggerhead.apps.branch, line 180, in app
    return c(environ, start_response)
  Module loggerhead.controllers, line 104, in __call__
    values = self.get_values(path, self.kwargs, headers)
  Module loggerhead.controllers.annotate_ui, line 68, in get_values
    values['annotated'] = self.annotate_file(values)
  Module loggerhead.controllers.annotate_ui, line 62, in annotate_file
    revisions[last_lineno].revspan = lineno - last_lineno + 1
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

OOPS-2035CBB109

Related branches

Revision history for this message
Francesco Del Degan (pr0gg3d) wrote :

Found that this occurs when trying to annotate a zero-sized file.

Changed in loggerhead:
status: Triaged → Confirmed
Revision history for this message
Robert Collins (lifeless) wrote :

Triaged is a step beyond confirmed.

Changed in loggerhead:
status: Confirmed → Triaged
Gavin Panella (allenap)
Changed in loggerhead:
status: Triaged → Fix Committed
Changed in launchpad:
status: New → Triaged
importance: Undecided → Critical
Changed in loggerhead:
assignee: nobody → Francesco Del Degan (pr0gg3d)
Gavin Panella (allenap)
Changed in launchpad:
assignee: nobody → Gavin Panella (allenap)
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Gavin Panella (allenap)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :

Fixed in stable r13678 (http://bazaar.launchpad.net/~launchpad-pqm/launchpad/stable/revision/13678) by a commit, but not testable.

tags: added: qa-untestable
removed: qa-ok
Gavin Panella (allenap)
Changed in launchpad:
status: Fix Committed → Fix Released
Revision history for this message
Robert Collins (lifeless) wrote :

Rolled back in prod - see bug 826136

Changed in launchpad:
status: Fix Released → In Progress
Revision history for this message
Gavin Panella (allenap) wrote :

Putting this back on the maintenance pile.

Changed in launchpad:
assignee: Gavin Panella (allenap) → nobody
Changed in launchpad:
status: In Progress → Triaged
Revision history for this message
Francis J. Lacoste (flacoste) wrote :

Loggerhead was updated again in production on the 26th (see bug 718566).

Changed in launchpad:
status: Triaged → Fix Released
assignee: nobody → Данило Шеган (danilo)
Changed in loggerhead:
importance: Critical → High
Changed in loggerhead:
importance: High → Critical
importance: Critical → High
Changed in loggerhead:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.