Project

General

Profile

Bug #29221

Fix traceback on kerberoskeytab and kerberosprincipal API operations

Added by Vladimir Vinogradenko over 1 year ago. Updated about 1 year ago.

Status:
Done
Priority:
Important
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

# echo '{
    "principal_encryption": "arcfour-hmac-md5",
    "principal_name": "administrator@ad.win2016.freenas",
    "principal_timestamp": "1970-01-01T00:00:00",
    "principal_version": 1
}' | ./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"}

Associated revisions

Revision 2348f00c (diff)
Added by Vladimir Vinogradenko over 1 year ago

fix(api-1.0): Fix Traceback on kerberoskeytab and kerberosprincipal API 1.0 operations

Ticket: #29221

History

#1 Updated by Vladimir Vinogradenko over 1 year ago

  • Status changed from Not Started to In Progress

#2 Updated by Dru Lavigne over 1 year ago

  • Category set to Middleware
  • Target version set to 11.2-RC2

#3 Updated by Timur Bakeyev over 1 year ago

  • Description updated (diff)

#4 Updated by Vladimir Vinogradenko over 1 year ago

  • Status changed from In Progress to Done

#5 Updated by Dru Lavigne over 1 year ago

  • Subject changed from kerberoskeytab and kerberosprincipal API 1.0 are not working to Fix traceback on kerberoskeytab and kerberosprincipal API operations
  • Target version changed from 11.2-RC2 to 11.2-BETA1
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#6 Updated by Dru Lavigne about 1 year ago

  • Status changed from Done to Ready for Testing

#8 Updated by Timothy Moore II about 1 year ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

Testing with INTERNAL12:

Added dummy Kerberos Realm and Keytab: no issues or errors in the new ui. Tested edit and delete functions, no issues.

#9 Updated by Dru Lavigne about 1 year ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF