Validation Error Traceback from unsetting Include Dataset Properties

Description

Seen in TrueNAS SCALE 22.02.RC2 - This was found when setting up an encrypted replication task validation test case on Gremlin 5 and Gremlin 6.

When Include Dataset Properties is unset in a Replication task, clicking Save rpoduces a Validation Error Traceback:

ValidationErrors
[EINVAL] replication_update.properties_override: null not allowed

Error: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 160, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1281, in _call
return await methodobj(*prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/service.py", line 918, in update
rv = await self.middleware._call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1281, in _call
return await methodobj(*prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1137, in nf
res = await f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1268, in nf
args, kwargs = clean_and_validate_args(args, kwargs)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1262, in clean_and_validate_args
raise verrors
middlewared.service_exception.ValidationErrors: [EINVAL] replication_update.properties_override: null not allowed

Two things:

1) If we are unable to uncheck Include Dataset Properties without setting/unsetting other options then we needs to know which ones it will work with and we need to update https://www.truenas.com/docs/scale/dataprotection/replication/#unlocking-a-replicated-encrypted-dataset-or-zvol-without-a-passphrase .

2) If this is a valid validation error, can we set it so it's not a traceback and more informational?

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk January 24, 2022 at 1:41 PM

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Fix versions

Affects versions

Priority

Katalon Platform

Created January 21, 2022 at 7:48 PM
Updated July 1, 2022 at 5:55 PM
Resolved January 27, 2022 at 6:48 AM

Flag notifications