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

create: java.nio.file.AccessDeniedException is thrown at program induced file creation #5

Closed
infeo opened this issue Dec 13, 2017 · 2 comments
Assignees

Comments

@infeo
Copy link
Member

infeo commented Dec 13, 2017

Basic Info

OS: Windows 10, Ver. 1709, Build 16299.64
fuse-nio-adapter: commit 2073845

Description

Creating Files not via explorer results in a I/O-Error thrown by windows and an java.nio.file.AccessDeniedException thrown by the adapter (visible in errorlog)

howto:

  1. start adapter (e.g. mount X:\test at J:)
  2. open notepad.exe, write something into file
  3. save file at J:

Attachments (optional)

java[TID=163c]: FFFFAC019A4702A0: >>Create [UT---C] "\asd.txt", FILE_OPEN_IF, CreateOptions=60, FileAttributes=0, Security=NULL, AllocationSize=0:0, AccessToken=00000000000008C8, DesiredAccess=12019f, GrantedAccess=0, ShareAccess=3
java[TID=20f0]: FFFFAC019A61CEA0: <<QueryDirectory IoStatus=c0000034[0]
java[TID=20f0]: FFFFAC019D25F280: >>Close 0000000000000000:000001FE3B68CBE0
java[TID=20f0]: FFFFAC019D25F280: <<Close IoStatus=0[0]
java[TID=20f0]: FFFFAC019D25F280: >>Create [UT---C] "\", FILE_OPEN, CreateOptions=21, FileAttributes=10, Security=NULL, AllocationSize=0:0, AccessToken=0000000000000934, DesiredAccess=100000, GrantedAccess=0, ShareAccess=3
[Thread-164] ERROR org.cryptomator.frontend.fuse.ReadWriteFileHandler - Error opening file.
java.nio.file.AccessDeniedException: Y:\test\asd.txt
	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
	at java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:116)
	at java.base/java.nio.channels.FileChannel.open(FileChannel.java:292)
	at org.cryptomator.frontend.fuse.OpenFile.<init>(OpenFile.java:27)
	at org.cryptomator.frontend.fuse.OpenFileFactory.open(OpenFileFactory.java:52)
	at org.cryptomator.frontend.fuse.ReadWriteFileHandler.createAndOpen(ReadWriteFileHandler.java:55)
	at org.cryptomator.frontend.fuse.ReadWriteAdapter.create(ReadWriteAdapter.java:67)
	at ru.serce.jnrfuse.AbstractFuseFS.lambda$init$14(AbstractFuseFS.java:194)
	at jnr.ffi.provider.jffi.NativeClosureProxy$$impl$$17.invoke(Unknown Source)
java[TID=163c]: FFFFAC019A4702A0: <<Create IoStatus=c0000185[0]
java[TID=20f0]: FFFFAC019D25F280: <<Create IoStatus=0[1] UserContext=0000000000000000:000001FE3B68D240, GrantedAccess=100000, FileInfo={FileAttributes=10, ReparseTag=0, AllocationSize=0:1000, FileSize=0:1000, CreationTime=2017-11-27T17:24:19.924Z, LastAccessTime=2017-12-13T20:45:24.231Z, LastWriteTime=2017-12-13T20:45:24.231Z, ChangeTime=1970-01-01T00:00:00.000Z, IndexNumber=0:0}
java[TID=20f0]: FFFFAC019B662EA0: >>Close 0000000000000000:000001FE3B68D240
java[TID=20f0]: FFFFAC019B662EA0: <<Close IoStatus=0[0]```
@infeo infeo self-assigned this Dec 13, 2017
@overheadhunter
Copy link
Member

Please retest with latest version, we fixed a bug in getattr, that lead to blocked directories, because the directory stream was not correctly closed.

@infeo
Copy link
Member Author

infeo commented Dec 14, 2017

resolved by commit 44fd7d9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants