TypeError constructing page id: cannot concatenate 'str' and 'list' objects

Bug #810113 reported by Diogo Matsubara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Benji York

Bug Description

OOPS-2018A54 TypeError: cannot concatenate 'str' and 'list' objects

 TypeError: cannot concatenate 'str' and 'list' objects

    Traceback (most recent call last):
  Module zope.publisher.publish, line 134, in publish
    result = publication.callObject(request, obj)
  Module lazr.restful.publisher, line 211, in callObject
    WebServicePublicationMixin, self).callObject(request, object)
  Module canonical.launchpad.webapp.publication, line 466, in callObject
    pageid = self.constructPageID(view, context)
  Module canonical.launchpad.webapp.servers, line 1171, in constructPageID
    pageid += ':' + op
TypeError: cannot concatenate 'str' and 'list' objects

HTTP method: OPTIONS
URL: https://api.launchpad.net/1.0/checkbox?ws.op=searchTasks

Tags: oops qa-ok

Related branches

description: updated
description: updated
description: updated
Revision history for this message
Benji York (benji) wrote :

I suspect this was caused by a URL like this: https://api.launchpad.net/1.0/checkbox?ws.op=1&ws.op=2

Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Benji York (benji)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
William Grant (wgrant) wrote :

Still seems to OOPS, but doesn't break anything more.

tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → In Progress
Revision history for this message
Benji York (benji) wrote :

It turns out that there is another instance of the same mistake (assuming that request fields are always strings) in another part of the code. I filed bug 842917 to deal with the new reason TypeError is raised. This bug (the problem with building the page ID) is fixed so I'll close it.

Changed in launchpad:
status: In Progress → 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.