java security 问题我在applet里用
File myDir = new File("pic\\");
myDir.listFiles();
让user看server端 pic folder下的文件为啥也有 access denied (java.io.FilePermission pic read) 的error.
我没要读user的system data呀。。。
谢谢[易易 (5-4 16:40, Long long ago)]
[ 传统版 |
sForum ][登录后回复]1楼
list file itself is a kind of read to the folder[MrDJay (5-4 17:00, Long long ago)] [ 传统版 | sForum ][登录后回复]2楼
(引用 MrDJay:list file itself is a kind of read to the folder)What does "Read to the folder" mean?[易易 (5-4 20:10, Long long ago)] [ 传统版 | sForum ][登录后回复]3楼
(引用 易易:What does "Read to the folder" mean?)楼上的快被气疯了吧。其实"folder"是一种特殊的文件,它的内容主要包含它下面文件,所以你要list xxxFolder, 你就需要有对它可读的权限,怎么解释起来这么别扭。说的不是很清楚,不知道明白不?[鱽鳓 (5-4 20:39, Long long ago)] [ 传统版 | sForum ][登录后回复]4楼
applet runs in client side[逃课专家 (5-5 3:36, Long long ago)] [ 传统版 | sForum ][登录后回复]5楼