Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Raise original BadNetworkName error on DFS failure #204

Merged
merged 1 commit into from
Nov 8, 2022
Merged

Conversation

jborean93
Copy link
Owner

When attempting to resolve the DFS path on a BadNetworkName error it may error with a DFS related error message. This error should be ignored if the error was stating DFS is unavailable. The whole check can also be avoided entirely if the server does not indicate it supports DFS in the capabilities it sends back.

Fixes: #196

@codecov
Copy link

codecov bot commented Nov 8, 2022

Codecov Report

Merging #204 (fd6f673) into master (a885356) will decrease coverage by 0.01%.
The diff coverage is 77.77%.

@@            Coverage Diff             @@
##           master     #204      +/-   ##
==========================================
- Coverage   99.09%   99.07%   -0.02%     
==========================================
  Files          24       24              
  Lines        5077     5082       +5     
==========================================
+ Hits         5031     5035       +4     
- Misses         46       47       +1     
Flag Coverage Δ
99.07% <77.77%> (-0.02%) ⬇️
py3.10 99.03% <77.77%> (-0.04%) ⬇️
py3.11 99.03% <77.77%> (-0.04%) ⬇️
py3.7 99.03% <77.77%> (-0.04%) ⬇️
py3.8 99.03% <77.77%> (-0.04%) ⬇️
py3.9 99.07% <77.77%> (-0.02%) ⬇️
x64 99.07% <77.77%> (-0.02%) ⬇️
x86 98.99% <77.77%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/smbclient/_pool.py 95.54% <77.77%> (-0.40%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

When attempting to resolve the DFS path on a BadNetworkName error it may
error with a DFS related error message. This error should be ignored if
the error was stating DFS is unavailable. The whole check can also be
avoided entirely if the server does not indicate it supports DFS in the
capabilities it sends back.
@jborean93 jborean93 merged commit f1ca936 into master Nov 8, 2022
@jborean93 jborean93 deleted the fs-error-dfs branch November 8, 2022 21:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore FSDriverRequired when attempting to get DFS information for a BadNetworkName handler
1 participant