[jcifs] Writeing Problem
kku at shd.de
Thu Mar 25 09:30:32 GMT 2004
>> Permission per = share.getPermission();
> URLConnection.getPermission() gives the minimum permissions necessary to
> make the connection; i.e., java.security.AllPermission being returned
> here implies you should have AllPermission granted via your policy to
> make the connection (this is the default value returned by
> URLConnection.getPermission(); we should actually probably override this
> to return null, as there could be tools that would enforce this). It
> doesn't relate to the file permissions granted to the user on the target
> SmbFile; there isn't currently a way to retrieve those.
I found a workarround.
But I think there is a bug in the updatefile.copyTo(newshare) method.
As I wrote this method fails execution with the access denied exception.
But I have full permisions on this share!
jcifs.smb.SmbAuthException: Access denied
But the file-transfer works fine with an FileoutputStream on the smb share.
More information about the jcifs