小程序无法从网络驱动器访问文件
使用我签名的小程序的用户之一无法从他的网络驱动器上传文件(基本上无法访问驱动器),而使用我签名的小程序的其他用户很少能够从网络驱动器访问和上传文件。我可以知道背后的原因是什么吗?
注意:无法从网络驱动器访问文件的用户,他可以手动从网络驱动器访问文件并能够复制到本地驱动器。
one of the users who is using my signed applet is unable to upload the file (basically unable to access the drive) from his netwrok drive and few of the other users who are using my signed applet able to access and upload the files from network drive. can i know what could be the reasons behind ?
Note : user who is not able access the file from network drive, he is able to access the file from network drive manually and able to copy to his local drive.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保将代码包装在特权块中,否则您的签名并不重要。
您可以使用类似的方法来读取文件。
如果您想使用变量而不是静态文本作为文件位置,则必须使用这样的最终变量。
Make sure your wrapping the code in a privileged block or else the fact that your signing it won't matter.
You can use something like this to read in a file.
if you want to use a variable and not static text as the file location you have to use a final variable like this.
签署小程序并不一定能绕过所有安全限制,如果是这种情况,那么犯罪分子就会签署他们的漏洞。在授予小程序访问权限之前,用户仍然必须信任该证书。我会确保小程序可以读取/写入 本地驱动器,因为我怀疑这也是禁区。
Signing the applet doesn't necessarily bypass all secuirty restrictions, if this where the case then criminals would sign their exploits. The user still has to trust the certificate before the applet is given access. I would make sure that the applet can read/write to the local drive, because I suspect that this is also off limits.