-
Bug
-
Resolution: Unresolved
-
P3
-
8, 9, 10
-
None
When SecurityManager is used on Windows platform selecting a virtual shell folder (Network Neighborhood, My Computer, etc...) in JFileChooser may result in SecurityException which is not caught in JFileChooser and this method result is not mentioned in the method specification.
Visually it causes JFC to show the waiting cursor infinetly since it cannot accomplish the recuested action.
======
Exception in thread "Basic L&F File Loading Thread" java.security.AccessControlException: access denied ("java.io.FilePermission" "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" "read")
at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.base/java.security.AccessController.checkPermission(AccessController.java:895)
at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
at java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:897)
at java.desktop/sun.awt.shell.Win32ShellFolder2.listFiles(Win32ShellFolder2.java:738)
at java.desktop/javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:564)
at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.run0(BasicDirectoryModel.java:290)
at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.run(BasicDirectoryModel.java:279)
at java.base/java.lang.Thread.run(Thread.java:844)
Visually it causes JFC to show the waiting cursor infinetly since it cannot accomplish the recuested action.
======
Exception in thread "Basic L&F File Loading Thread" java.security.AccessControlException: access denied ("java.io.FilePermission" "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" "read")
at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.base/java.security.AccessController.checkPermission(AccessController.java:895)
at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
at java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:897)
at java.desktop/sun.awt.shell.Win32ShellFolder2.listFiles(Win32ShellFolder2.java:738)
at java.desktop/javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:564)
at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.run0(BasicDirectoryModel.java:290)
at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.run(BasicDirectoryModel.java:279)
at java.base/java.lang.Thread.run(Thread.java:844)
- duplicates
-
JDK-8278894 access denied with windows-special files, like like "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
-
- Closed
-
- relates to
-
JDK-8182041 File Chooser Shortcut Panel folders under on JDK 9
-
- Resolved
-