The old code path is still used to get the sharing info in the webui. This requires the file_target to be set. This does not mean anything for federated shares. Fixes #22215