Cannot disable SMB share if "directory does not exist" (this *is* a bug, believe me!)

Description

If someone wishes to disable an SMB share, the middleware GUI will spit out an error about how the "path doesn't exist", and refuse to let the user disable the share.

This can be a case of where a locked dataset remains locked, and the user wishes to temporarily disable the particular SMB share for one reason or another.

The point is: TrueNAS should allow the user to toggle a share (enable/disable), regardless of if the path is available.

What's funny is that I must first unlock a locked dataset to be able to disable an SMB share, and then re-lock the same dataset again. I cannot simply uncheck "Enabled" for the share.

This is likely also true for NFS shares (same concept); however, I only tested this against SMB shares. In fact, I did not intentionally test this, since I keep bumping into this bug by mistake, and found it frustrating that it doesn't follow sensible behaviors.

Ideally it should be like this ( regardless if the path is available or not):

Go to Shares
Disable the share

Unfortunately, this is the current behavior:

Go to Pools
Unlock a currently locked dataset
Go to Shares
Disable the share
Go back to Pools
Re-lock the dataset you just unlocked

Problem/Justification

None

Impact

None

Activity

Show:
Cannot Reproduce

Details

Assignee

Reporter

Labels

Impact

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created April 5, 2022 at 7:19 PM
Updated July 21, 2022 at 2:20 PM
Resolved July 21, 2022 at 2:20 PM