Issue 5 in django-pki: Traceback in CA renewal form

1 view
Skip to first unread message

djang...@googlecode.com

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

New issue 5 by lwarxx: Traceback in CA renewal form
http://code.google.com/p/django-pki/issues/detail?id=5

Catched this one:

Request Method: POST
Request URL: http://localhost:8000/admin/pki/certificateauthority/6/
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
change_view
830. self.save_model(request, new_object, form,
change=True)
File "/usr/lib/python2.6/site-packages/django/contrib/admin/options.py" in
save_model
557. obj.save()
File "/tmp/django_pki_testsite/pki/models.py" in save
166.
action.revoke_certificate(self.parent_passphrase)
File "/tmp/django_pki_testsite/pki/openssl.py" in revoke_certificate
357. if self.get_revoke_status_from_cert():
File "/tmp/django_pki_testsite/pki/openssl.py" in
get_revoke_status_from_cert
532. (PKI_OPENSSL_BIN, self.crl),

Exception Type: AttributeError at /admin/pki/certificateauthority/6/
Exception Value: OpensslActions instance has no attribute 'crl'


--
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:36:06 AM4/8/10
to djang...@googlegroups.com

Comment #1 on issue 5 by lwarxx: Traceback in CA renewal form
http://code.google.com/p/django-pki/issues/detail?id=5

This issue happens upon self-signed CA (RootCA) renewal because it can not
be revoked.

Maybe it is better to disable RootCA renew action (like revoke)? Daniel,
what is your
opinion?

djang...@googlecode.com

unread,
Apr 8, 2010, 6:54:14 AM4/8/10
to djang...@googlegroups.com

Comment #2 on issue 5 by d.k3rwin: Traceback in CA renewal form
http://code.google.com/p/django-pki/issues/detail?id=5

It's tricky to handle this with javascript and not really reliable. Would
be better
to handle this case in form validation and return a descriptive _errors
message.
Suggestions?

djang...@googlecode.com

unread,
Apr 8, 2010, 9:10:51 AM4/8/10
to djang...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 5 by lwarxx: Traceback in CA renewal form
http://code.google.com/p/django-pki/issues/detail?id=5

Fixed in revision 35.

RootCA renewal can be enabled later if someone implements it. For more info
see this
thread: http://www.mail-archive.com/openss...@openssl.org/msg52298.html

Reply all
Reply to author
Forward
0 new messages