Issue 4 in django-pki: Traceback if certificate parent is not specified

3 views
Skip to first unread message

djang...@googlecode.com

unread,
Apr 4, 2010, 11:42:47 PM4/4/10
to djang...@googlegroups.com
Status: Accepted
Owner: lwarxx
Labels: Type-Defect Priority-Medium

New issue 4 by lwarxx: Traceback if certificate parent is not specified
http://code.google.com/p/django-pki/issues/detail?id=4

In certificate creation form parent field must be mandatory

Request Method: POST
Request URL: http://localhost:8000/admin/pki/certificate/add/
Django Version: 1.1.1
Python Version: 2.6.4
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'pki']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')


Traceback:
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in
get_response
92. response = callback(request, *callback_args,
**callback_kwargs)
File "/usr/lib/python2.6/site-packages/django/contrib/admin/options.py" in
wrapper
226. return self.admin_site.admin_view(view)(*args,
**kwargs)
File "/usr/lib/python2.6/site-packages/django/views/decorators/cache.py" in
_wrapped_view_func
44. response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/django/contrib/admin/sites.py" in
inner
186. return view(request, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/django/db/transaction.py" in
_commit_on_success
240. res = func(*args, **kw)
File "/usr/lib/python2.6/site-packages/django/contrib/admin/options.py" in
add_view
716. if form.is_valid():
File "/usr/lib/python2.6/site-packages/django/forms/forms.py" in is_valid
120. return self.is_bound and not bool(self.errors)
File "/usr/lib/python2.6/site-packages/django/forms/forms.py" in _get_errors
111. self.full_clean()
File "/usr/lib/python2.6/site-packages/django/forms/forms.py" in full_clean
250. self.cleaned_data = self.clean()
File "/tmp/django_pki_testsite/pki/forms.py" in clean
112. ca = CertificateAuthority.objects.get(name="%s" %
parent)
File "/usr/lib/python2.6/site-packages/django/db/models/manager.py" in get
120. return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/django/db/models/query.py" in get
305. % self.model._meta.object_name)

Exception Type: DoesNotExist at /admin/pki/certificate/add/
Exception Value: CertificateAuthority matching query does not exist.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

djang...@googlecode.com

unread,
Apr 8, 2010, 4:18:45 AM4/8/10
to djang...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 4 by lwarxx: Traceback if certificate parent is not
specified
http://code.google.com/p/django-pki/issues/detail?id=4

Issue has been fixed in revision 34.

Also slightly reorganized validation for CertificateAuthorityForm and
CertificateForm
(there is no need for verifying parent CA passphrase length since it is
already has
been done at creation time).

Hopefully I didn't introduced new issues with this changeset.

Reply all
Reply to author
Forward
0 new messages