packagenames with spaces are imported

Bug #1269293 reported by Michael Nelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Apps Directory
Confirmed
Low
Unassigned

Bug Description

Most searches seem to return 200, but while QAing a separate bug, I noticed that searching for 'sca' [1] triggers an oops [2].

The reason was that there was a package imported from myapps with the packagename ' hostscanner' (ie. with a space), for which the url regex correctly didn't match.

I've updated the packagename in uwc and myapps, but we should fix whatever validation is failing that lets spaces appear in package names in both apps.

[1] https://apps.ubuntu.com/cat/search/?q=sca&op=
[2] OOPS-3eefbd05208b4825912e137e80a79612 , and for posterity: https://pastebin.canonical.com/102983/

Revision history for this message
Michael Nelson (michael.nelson) wrote :

Overnight oops report shows this oops being triggered elsewhere (36 oopses in 24hrs just trying to render the url for the 'hostscanner' package). I'd not noticed yesterday, but all the oopses are specifically when trying to render the url for 'hostscanner', an app which was only recently published in myapps (2014-01-13 19:19:38.104402).

Changed in ubuntu-webcatalog:
importance: Low → High
summary: - Search results in OOPS
+ Any page rendering a URL for 'hostscanner' errors
Revision history for this message
Michael Nelson (michael.nelson) wrote : Re: Any page rendering a URL for 'hostscanner' errors

Right - there's a space in the package-name ' hostscanner' that I'd missed. I'll updated the record in uwc (to stop the oops) and sca (to stop the re-import with the space again). We should still leave this open and fix in both uwc and sca (neither of which should accept package names with spaces).

summary: - Any page rendering a URL for 'hostscanner' errors
+ packagenames with spaces are imported
description: updated
Changed in ubuntu-webcatalog:
importance: High → Low
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.