[iola-conversion-tool] Bug when attempting to view announcement text for doc with no intended status

Cindy Morgan <cmorgan@amsl.com> Thu, 23 February 2012 22:25 UTC

Return-Path: <cmorgan@amsl.com>
X-Original-To: iola-conversion-tool@ietfa.amsl.com
Delivered-To: iola-conversion-tool@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CDA4511E8085 for <iola-conversion-tool@ietfa.amsl.com>; Thu, 23 Feb 2012 14:25:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.736
X-Spam-Level:
X-Spam-Status: No, score=-2.736 tagged_above=-999 required=5 tests=[AWL=-0.137, BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jt1C-FpkVWOb for <iola-conversion-tool@ietfa.amsl.com>; Thu, 23 Feb 2012 14:25:12 -0800 (PST)
Received: from mail.amsl.com (mail.amsl.com [IPv6:2001:1890:123a::1:14]) by ietfa.amsl.com (Postfix) with ESMTP id F180911E8074 for <iola-conversion-tool@ietf.org>; Thu, 23 Feb 2012 14:25:11 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by c8a.amsl.com (Postfix) with ESMTP id DE52912C89B for <iola-conversion-tool@ietf.org>; Thu, 23 Feb 2012 14:25:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
Received: from c8a.amsl.com ([127.0.0.1]) by localhost (c8a.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tXjbbI6OfnIA for <iola-conversion-tool@ietf.org>; Thu, 23 Feb 2012 14:25:10 -0800 (PST)
Received: from [12.22.58.154] (unknown [12.22.58.154]) by c8a.amsl.com (Postfix) with ESMTPSA id B917812C898 for <iola-conversion-tool@ietf.org>; Thu, 23 Feb 2012 14:25:10 -0800 (PST)
From: Cindy Morgan <cmorgan@amsl.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Thu, 23 Feb 2012 14:25:10 -0800
Message-Id: <BB2CDFA5-976E-4037-BD07-22E813E1A189@amsl.com>
To: iola-conversion-tool@ietf.org
Mime-Version: 1.0 (Apple Message framework v1084)
X-Mailer: Apple Mail (2.1084)
Subject: [iola-conversion-tool] Bug when attempting to view announcement text for doc with no intended status
X-BeenThere: iola-conversion-tool@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Discussion of the IOLA / DB Schema Conversion Tool Project <iola-conversion-tool.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iola-conversion-tool>, <mailto:iola-conversion-tool-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/iola-conversion-tool>
List-Post: <mailto:iola-conversion-tool@ietf.org>
List-Help: <mailto:iola-conversion-tool-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iola-conversion-tool>, <mailto:iola-conversion-tool-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 23 Feb 2012 22:25:12 -0000

Hi,

When attempting to view the approval announcement text for draft-moonesamy-rfc2369bis before an Intended RFC Status had been entered for the document, I got the error below.  (Once an Intended RFC Status was entered, the message did show up as it should.)

AttributeError at /doc/draft-moonesamy-rfc2369bis/edit/approvaltext/ 

Environment:

Request Method: GET
Request URL: https://trackerbeta.ietf.org/doc/draft-moonesamy-rfc2369bis/edit/approvaltext/
Django Version: 1.2.7 SVN-3951
Python Version: 2.6.0
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.sitemaps',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'django.contrib.humanize',
 'south',
 'workflows',
 'permissions',
 'ietf.person',
 'ietf.name',
 'ietf.group',
 'ietf.doc',
 'ietf.message',
 'ietf.announcements',
 'ietf.idindex',
 'ietf.idtracker',
 'ietf.ietfauth',
 'ietf.iesg',
 'ietf.ipr',
 'ietf.liaisons',
 'ietf.mailinglists',
 'ietf.meeting',
 'ietf.proceedings',
 'ietf.redirects',
 'ietf.idrfc',
 'ietf.wginfo',
 'ietf.submit',
 'ietf.ietfworkflows',
 'ietf.wgchairs',
 'ietf.wgcharter']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.RemoteUserMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'ietf.middleware.SQLLogMiddleware',
 'ietf.middleware.SMTPExceptionMiddleware',
 'ietf.middleware.RedirectTrailingPeriod',
 'django.middleware.transaction.TransactionMiddleware',
 'ietf.middleware.UnicodeNfkcNormalization')


Traceback:
File "/a/www/ietf-trackerbeta/web/django/core/handlers/base.py" in get_response
  100.                     response = callback(request, *callback_args, **callback_kwargs)
File "/a/home/henrik/tracker/4.00rc1/ietf/ietfauth/decorators.py" in inner
  51.                 return view_func(request, *args, **kwargs)
File "/a/www/ietf-trackerbeta/web/ietf/idrfc/views_ballot.py" in ballot_approvaltextREDESIGN
  1074.         existing = generate_approval_mail(request, doc)
File "/www/ietf-trackerbeta/web/ietf/idrfc/mails.py" in generate_approval_mailREDESIGN
  285.         mail = generate_approval_mail_approved(request, doc)
File "/www/ietf-trackerbeta/web/ietf/idrfc/mails.py" in generate_approval_mail_approved
  298.     doc.full_status = full_intended_status(doc.intended_std_level.name)

Exception Type: AttributeError at /doc/draft-moonesamy-rfc2369bis/edit/approvaltext/
Exception Value: 'NoneType' object has no attribute 'name'

Thanks,
Cindy


Cindy Morgan / Project Manager / IETF
48377 Fremont Blvd., Suite 117 / Fremont CA 94358
T: +1.510.492.4085 / F: +1.510.492.4001 / http://www.ietf.org
----------
Managed by Association Management Solutions (AMS);
Forum Management, Meeting and Event Planning
Website: http://www.amsl.com