SMB Service Save - TypeError occurs

Description

When saving my SMB service settings I get the following - even when I make no changes to the current config.
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 356, in update
rv = await self.middleware._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/smb.py", line 596, in do_update
await self.validate_smb(new, verrors)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/smb.py", line 520, in validate_smb
if not await self.__validate_netbios_name(new[i]):
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/smb.py", line 229, in __validate_netbios_name
return RE_NETBIOSNAME.match(name)
TypeError: expected string or bytes-like object

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk 
August 25, 2020 at 6:03 PM

Bug Clerk 
August 25, 2020 at 5:54 PM

Gerardo Altman 
August 17, 2020 at 10:35 AM

Hi Team

im seeing something similar to the above when trying to enable SMB1, see output below and image attached.

the error is instant it doesn't look like the command is completing.

was working before 12 - BETA2 update a few hours ago.

let me know if i can help with any other output?

ta

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 356, in update
rv = await self.middleware._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/smb.py", line 596, in do_update
await self.validate_smb(new, verrors)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/smb.py", line 520, in validate_smb
if not await self.__validate_netbios_name(new[i]):
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/smb.py", line 229, in __validate_netbios_name
return RE_NETBIOSNAME.match(name)
TypeError: expected string or bytes-like object

John Wharmby 
August 14, 2020 at 9:53 AM

Even if I change this to a valid workgroup (14june) then this error still occurs.  I also tried replacing every entry (including entering something in empty fields and deleting) - still the same error.

Andrew Walker 
August 13, 2020 at 5:12 PM

14JUNE.LOCAL
^^^ This is an invalid workgroup.

Complete

Details

Assignee

Reporter

Components

Affects versions

Priority

More fields

Katalon Platform

Created August 13, 2020 at 3:01 PM
Updated July 1, 2022 at 3:30 PM
Resolved August 25, 2020 at 6:03 PM