Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

DFS does not work while checking if folder exists when first server fails. #818

Open
mhryb opened this issue Mar 6, 2024 · 0 comments
Open

Comments

@mhryb
Copy link

mhryb commented Mar 6, 2024

I am getting error while trying to check if folder exists com.hierynomus.smbj.share.DiskShare.folderExists.

Here is my DFS link (similar to https://github.com/hierynomus/smbj/blob/master/src/it/docker-image/entrypoint.sh#L24):
ln -s msdfs:localhost\share3,192.0.2.1\notthere /share/dfs/firstfail-public

The error I receive:

(com.hierynomus.mssmb2.SMBApiException) STATUS_OTHER (0xffffffff): Could not connect to DFS root \\192.0.2.1\notthere\headerCSV
	at com.hierynomus.smbj.session.Session.createNestedSession(Session.java:217) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.session.Session.getNestedSession(Session.java:197) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.share.DiskShare.rerouteIfNeeded(DiskShare.java:123) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.share.DiskShare.access$000(DiskShare.java:55) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.share.DiskShare$2.apply(DiskShare.java:108) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.share.DiskShare$2.apply(DiskShare.java:105) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.paths.DFSPathResolver.step8(DFSPathResolver.java:314) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.paths.DFSPathResolver.step3(DFSPathResolver.java:177) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.paths.DFSPathResolver.step4(DFSPathResolver.java:209) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.paths.DFSPathResolver.step7(DFSPathResolver.java:294) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.paths.DFSPathResolver.step6(DFSPathResolver.java:272) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.paths.DFSPathResolver.step5(DFSPathResolver.java:231) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.paths.DFSPathResolver.step2(DFSPathResolver.java:150) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.paths.DFSPathResolver.step1(DFSPathResolver.java:133) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.paths.DFSPathResolver.start(DFSPathResolver.java:121) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.paths.DFSPathResolver.resolve(DFSPathResolver.java:109) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.share.DiskShare.resolveAndCreateFile(DiskShare.java:105) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.share.DiskShare.open(DiskShare.java:65) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.share.DiskShare.exists(DiskShare.java:214) ~[smbj-0.11.3.jar:?]
	at com.hierynomus.smbj.share.DiskShare.folderExists(DiskShare.java:210) ~[smbj-0.11.3.jar:?]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant