Project

General

Profile

Bug #29221

Updated by Timur Bakeyev over 2 years ago

<pre>
# echo '{
"principal_encryption": "arcfour-hmac-md5",
"principal_name": "administrator@ad.win2016.freenas",
"principal_timestamp": "1970-01-01T00:00:00",
"principal_version": 1
}'
cat 5 | ./json_post --data @- http://10.0.220.121/api/v1.0/directoryservice/kerberosprincipal/
{"error_message": "'Validation' object has no attribute 'form_class'", "traceback": "Traceback (most recent call last):\n\n File \"/usr/local/lib/python3.6/site-packages/tastypie/resources.py\", line 219, in wrapper\n response = callback(request, *args, **kwargs)\n\n File \"/usr/local/lib/python3.6/site-packages/tastypie/resources.py\", line 450, in dispatch_list\n return self.dispatch('list', request, **kwargs)\n\n File \"./freenasUI/api/utils.py\", line 247, in dispatch\n request_type, request, *args, **kwargs\n\n File \"/usr/local/lib/python3.6/site-packages/tastypie/resources.py\", line 482, in dispatch\n response = method(request, **kwargs)\n\n File \"/usr/local/lib/python3.6/site-packages/tastypie/resources.py\", line 1384, in post_list\n updated_bundle = self.obj_create(bundle, **self.remove_api_resource_names(kwargs))\n\n File \"/usr/local/lib/python3.6/site-packages/tastypie/resources.py\", line 2175, in obj_create\n return self.save(bundle)\n\n File \"./freenasUI/api/utils.py\", line 391, in save\n form = validation.form_class(\n\nAttributeError: 'Validation' object has no attribute 'form_class'\n"}
</pre>

Back