[Codestand-develop] Searching Code Project with non existent mentor raises an error

Daniel Migault <daniel.migault@ericsson.com> Thu, 04 January 2018 15:48 UTC

Return-Path: <mglt.ietf@gmail.com>
X-Original-To: codestand-develop@ietfa.amsl.com
Delivered-To: codestand-develop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2237F128D2E for <codestand-develop@ietfa.amsl.com>; Thu, 4 Jan 2018 07:48:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C2hN43qj84Ti for <codestand-develop@ietfa.amsl.com>; Thu, 4 Jan 2018 07:48:34 -0800 (PST)
Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 16D231270AB for <codestand-develop@ietf.org>; Thu, 4 Jan 2018 07:48:34 -0800 (PST)
Received: by mail-lf0-x22d.google.com with SMTP id g63so2204359lfl.11 for <codestand-develop@ietf.org>; Thu, 04 Jan 2018 07:48:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=IRpVw5xEUGtlJx1jjwZzN4fz2doG95CM3ldMpatBP4Q=; b=mF3PyBI+3FPAGqtGtRJCDSm87M3hLfimmB5JzLRVywft2zQMeW1WxNRBXFwEb/GSJI TrUwNYyjFbTEXc9MRwXNWBYm/EKiu/jBu+8jC4GinwbnEI0zNM41paanozOfo2ewQq/q kbvpYADF1RW81ej+5oEvN8OgfdHoC7ELpivy60r2V9OShuSykQgF/kgRRfbu089pYYSB Xd1/hPz8k0XeNE0ybos89WJG7GdPIL5uTOhyUTu1ZsVZRi7Ta0b94ifxrQEfVQwcH7oG jHqlMI7W9Fcy3l7lTFFqvbdItNa6kBUqWbKe7mEdCoY9OPfD/wRZgXzbrYFj/nU1pH6m D/6Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=IRpVw5xEUGtlJx1jjwZzN4fz2doG95CM3ldMpatBP4Q=; b=Aoi3/I/S7dSz9DVMF7QHVo3w3KlIsrYOdXgh9B5jwkKdL9DOP7NaAGz0kayMLWP63/ yDcXw/9HCYzbAER0zYfqxhEk9N3KZjDj45sr7F5UDV5PzQI04BMZQkB/UPsmbtI9j5aX Jv6szJR6lggB3ArRpjK1VLvEF4bXSa50phACj/z9mlvPTsSVEDugzcCykwW15/9Eim5d qLaRUmMWySbndlfV/avF19mjhOqTu6WtGnWpxQhMDvne7Qu/1eYhHYNUVXrTFpmk1nF8 ehBz7P6uTt6LRY+cNlJYsrYcBwawvi4EVAmtXWDmyMHhXEGZFKEbYCMIetuG5hTumPJ0 Rwzw==
X-Gm-Message-State: AKGB3mIzlgLvagjmh3w02bYw7JJ0WXl1orHiFEBWtn2caqd8tkbY6cs9 J+uD8omDboutwVQQVxCE967YmuYJXdGDWP0XgakFfA==
X-Google-Smtp-Source: ACJfBouUKSbZovHhjriEF2lPqNYL4z/Iv/e+ZfWs0dlU6/LdZVW8DOlTyWtaxzEusroGnBeXaJBZygomgI1Dlz7Wdo4=
X-Received: by 10.46.99.211 with SMTP id s80mr3217588lje.7.1515080912022; Thu, 04 Jan 2018 07:48:32 -0800 (PST)
MIME-Version: 1.0
Sender: mglt.ietf@gmail.com
Received: by 10.46.80.17 with HTTP; Thu, 4 Jan 2018 07:48:31 -0800 (PST)
From: Daniel Migault <daniel.migault@ericsson.com>
Date: Thu, 04 Jan 2018 10:48:31 -0500
X-Google-Sender-Auth: Zx4R2AdYkzT0HqNdHvYyUt_QzE8
Message-ID: <CADZyTkmGxMTp_uFmhrzbSh7sN0qxGNzBvQO-2UHLcH2YL6iHzw@mail.gmail.com>
To: codestand-develop@ietf.org
Content-Type: multipart/alternative; boundary="94eb2c1ab5009132280561f54312"
Archived-At: <https://mailarchive.ietf.org/arch/msg/codestand-develop/JW4q9Es5y3UL1vg84cg6dm_lc9I>
Subject: [Codestand-develop] Searching Code Project with non existent mentor raises an error
X-BeenThere: codestand-develop@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "\"Discussion forum for the planning, coordination, and development of CodeStand\"" <codestand-develop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/codestand-develop>, <mailto:codestand-develop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/codestand-develop/>
List-Post: <mailto:codestand-develop@ietf.org>
List-Help: <mailto:codestand-develop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/codestand-develop>, <mailto:codestand-develop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Jan 2018 15:48:37 -0000

Hi,



I am using the mailing list, as my understanding was that codestand does
not have a specific bug tracker. If that is the wrong way to report bugs,
or you have a preferred way, feel free to let me know.



BUG Description: Upon searching a Code Project by mentor raises an error
when the key words does not exist. Please see the message below.





Environment:





Request Method: GET

Request URL:
https://codestand.ietf.org/codestand/matches/search/False?search=baushke&submit=search



Django Version: 1.10.7

Python Version: 2.7.6

Installed Applications:

('django.contrib.admin',

'django.contrib.admindocs',

'django.contrib.auth',

'django.contrib.contenttypes',

'django.contrib.humanize',

'django.contrib.messages',

'django.contrib.sessions',

'django.contrib.sitemaps',

'django.contrib.sites',

'django.contrib.staticfiles',

'anora',

'bootstrap3',

'django_markup',

'django_password_strength',

'djangobwr',

'form_utils',

'tastypie',

'widget_tweaks',

'ietf.api',

'ietf.community',

'ietf.dbtemplate',

'ietf.doc',

'ietf.group',

'ietf.idindex',

'ietf.iesg',

'ietf.ietfauth',

'ietf.ipr',

'ietf.liaisons',

'ietf.mailinglists',

'ietf.mailtrigger',

'ietf.meeting',

'ietf.message',

'ietf.name',

'ietf.nomcom',

'ietf.person',

'ietf.redirects',

'ietf.release',

'ietf.review',

'ietf.submit',

'ietf.sync',

'ietf.utils',

'ietf.secr.announcement',

'ietf.secr.areas',

'ietf.secr.drafts',

'ietf.secr.groups',

'ietf.secr.meetings',

'ietf.secr.proceedings',

'ietf.secr.roles',

'ietf.secr.rolodex',

'ietf.secr.sreq',

'ietf.secr.telechat',

'ietf.codestand',

'ietf.codestand.accounts',

'ietf.codestand.matches',

'ietf.codestand.requests')

Installed Middleware:

('django.middleware.csrf.CsrfViewMiddleware',

'django.middleware.common.CommonMiddleware',

'django.contrib.sessions.middleware.SessionMiddleware',

'django.contrib.auth.middleware.AuthenticationMiddleware',

'django.contrib.auth.middleware.SessionAuthenticationMiddleware',

'django.contrib.messages.middleware.MessageMiddleware',

'django.middleware.http.ConditionalGetMiddleware',

'ietf.middleware.sql_log_middleware',

'ietf.middleware.SMTPExceptionMiddleware',

'ietf.middleware.redirect_trailing_period_middleware',

'django.middleware.clickjacking.XFrameOptionsMiddleware',

'ietf.middleware.unicode_nfkc_normalization_middleware')







Traceback:



File
"/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py"
in inner

  42.             response = get_response(request)



File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
in _get_response

  187.                 response = self.process_exception_by_middleware(e,
request)



File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
in _get_response

  185.                 response = wrapped_callback(request, *callback_args,
**callback_kwargs)



File "/var/www/codestand/ietf/codestand/matches/views.py" in search

  235.                     user =
Person.objects.using('datatracker').get(id=cd.coder)



File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in
get

  385.                 self.model._meta.object_name



Exception Type: DoesNotExist at /codestand/matches/search/False

Exception Value: Person matching query does not exist.