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

CifsAccessImpl Thread Safe PB - "Access is denied" Error. #36

Open
vbonamy opened this issue Jan 28, 2015 · 4 comments
Open

CifsAccessImpl Thread Safe PB - "Access is denied" Error. #36

vbonamy opened this issue Jan 28, 2015 · 4 comments

Comments

@vbonamy
Copy link
Collaborator

vbonamy commented Jan 28, 2015

We recently had some problems with CIFS mounts in EsupFileManager using CifsAccessImpl.
Some users got "Access is Denied" - see below the trace.

Caused by: jcifs.smb.SmbAuthException: Access is denied.
        at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:546)
        at jcifs.smb.SmbTransport.send(SmbTransport.java:663)
        at jcifs.smb.SmbSession.send(SmbSession.java:238)
        at jcifs.smb.SmbTree.treeConnect(SmbTree.java:176)
        at jcifs.smb.SmbFile.doConnect(SmbFile.java:911)
        at jcifs.smb.SmbFile.connect(SmbFile.java:954)
        at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
        at jcifs.smb.SmbFile.queryPath(SmbFile.java:1335)
        at jcifs.smb.SmbFile.exists(SmbFile.java:1417)
        at org.esupportail.portlet.filemanager.services.cifs.CifsAccessImpl.open(CifsAccessImpl.java:87)

We can reproduce the error when 2 differents users try to access simultaneous on the EsupFileManager.
Despite of what said this thread on the jcifs mailing list - http://article.gmane.org/gmane.network.samba.java/9360 - it seems that JCIFS Thread Safe is broken.

@vbonamy
Copy link
Collaborator Author

vbonamy commented Jan 28, 2015

If we look on the code of google-enterprise-connector-file-system for example, we can see comment """JCIFS thread safety seems very broken. """

https://code.google.com/p/google-enterprise-connector-file-system/source/browse/branches/dev/bjohnson/support-02388705-2/projects/file-system-connector/source/java/com/google/enterprise/connector/filesystem/SmbFileDelegate.java?r=559

@vbonamy
Copy link
Collaborator Author

vbonamy commented Feb 3, 2015

Update : this problem seems to occur only when we mount a DFS share.

@jgribonvald
Copy link
Collaborator

jcifs-ng has some bugs, users gets NPE, waiting for 2.0.7 release to retry some test.

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

2 participants