Project

General

Profile

Bug #30621

fix vm edit, [lazyLoaded] Field was not expected

Added by Vaibhav Chauhan over 2 years ago. Updated over 2 years ago.

Status:
Done
Priority:
Regression
Assignee:
Damian Szidiropulosz
Category:
GUI (new)
Severity:
High
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 151, in call_method
    result = await self.middleware.call_method(self, message)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 941, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 898, in _call
    return await methodobj(*args)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/service.py", line 250, in update
    rv = await self.do_update(id, data)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 501, in nf
    args, kwargs = clean_and_validate_args(args, kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 458, in clean_and_validate_args
    value = attr.clean(args[args_index + i])
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 301, in clean
    raise Error(key, 'Field was not expected')
middlewared.schema.Error: [lazyLoaded] Field was not expected

History

#1 Updated by Damian Szidiropulosz over 2 years ago

  • Status changed from Broken to Done

#2 Updated by Damian Szidiropulosz over 2 years ago

PR 535 fixes this. Form submission was accidentally sending extra properties to middleware.

#3 Updated by Dru Lavigne over 2 years ago

  • Target version changed from 11.2-BETA1 to Master - FreeNAS Nightlies
  • Needs Merging changed from Yes to No

Also available in: Atom PDF