-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
8
-
x86_64
-
os_x
ADDITIONAL SYSTEM INFORMATION :
Operating System Name: Mac OS X
Version: 10.15.7
Architecture: x86_64
Java Version: 1.8.0_282
Vendor: AdoptOpenJDK
A DESCRIPTION OF THE PROBLEM :
I am reporting an issue that was originally described here: https://developer.apple.com/forums/thread/674217
As part of the MacOS as “Transparency, Consent, and Control” (TCC) mechanism, Apple has locked down access to certain folders. For example, the Desktop, Documents, and Downloads folders. Java 8 used to handle this correctly by prompting the user, "'xyz.app' would like to access files in your Desktop folder". Java8u282 no longer has this mechanism in place so trying to access the Desktop folder will just show an empty directory when there are, in fact, files present there. I am not sure when this bug was introduced into Java8, but probably in a version earlier than u282.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Have the JFileChooser open the "Desktop" folder on MacOS.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
First: , "'xyz.app' would like to access files in your Desktop folder". Click OK.
Then, display contents of Desktop folder.
ACTUAL -
No prompting to access folder and an empty Desktop folder, when there are in fact files present.
---------- BEGIN SOURCE ----------
Should be possible to do with any Swing app that uses the JFileChooser
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Perhaps use an earlier version of Java8.
FREQUENCY : always
Operating System Name: Mac OS X
Version: 10.15.7
Architecture: x86_64
Java Version: 1.8.0_282
Vendor: AdoptOpenJDK
A DESCRIPTION OF THE PROBLEM :
I am reporting an issue that was originally described here: https://developer.apple.com/forums/thread/674217
As part of the MacOS as “Transparency, Consent, and Control” (TCC) mechanism, Apple has locked down access to certain folders. For example, the Desktop, Documents, and Downloads folders. Java 8 used to handle this correctly by prompting the user, "'xyz.app' would like to access files in your Desktop folder". Java8u282 no longer has this mechanism in place so trying to access the Desktop folder will just show an empty directory when there are, in fact, files present there. I am not sure when this bug was introduced into Java8, but probably in a version earlier than u282.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Have the JFileChooser open the "Desktop" folder on MacOS.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
First: , "'xyz.app' would like to access files in your Desktop folder". Click OK.
Then, display contents of Desktop folder.
ACTUAL -
No prompting to access folder and an empty Desktop folder, when there are in fact files present.
---------- BEGIN SOURCE ----------
Should be possible to do with any Swing app that uses the JFileChooser
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Perhaps use an earlier version of Java8.
FREQUENCY : always