IOException is expected by set 333 permission, please read https://bugs.openjdk.java.net/browse/JDK-6977851
Anyway, please note this patch is to fix the directory was not cleaned after test completed to run. Thanks Frank From: Vyom Tewari26 [mailto:[email protected]] Sent: Wednesday, July 10, 2019 2:34 PM To: [email protected] Cc: [email protected] Subject: Re: RE: RFR (13) [testbug]: 8227422: sun/net/www/protocol/file/DirPermissionDenied.java failed on Windows 2016 because DirPermissionDenied directory has no read permission that's what i suspected, but test is passing at my local env even after i changes the permission to 733. Vyom ----- Original message ----- From: "Frank Yuan" <[email protected] <mailto:[email protected]> > To: "'Vyom Tewari26'" <[email protected] <mailto:[email protected]> > Cc: <[email protected] <mailto:[email protected]> > Subject: [EXTERNAL] RE: RFR (13) [testbug]: 8227422: sun/net/www/protocol/file/DirPermissionDenied.java failed on Windows 2016 because DirPermissionDenied directory has no read permission Date: Wed, Jul 10, 2019 11:33 AM Hi Vyom The test requires the directory to be unreadable. Thanks Frank From: Vyom Tewari26 [mailto:[email protected]] Sent: Wednesday, July 10, 2019 1:53 PM To: [email protected] <mailto:[email protected]> Cc: [email protected] <mailto:[email protected]> Subject: Re: RFR (13) [testbug]: 8227422: sun/net/www/protocol/file/DirPermissionDenied.java failed on Windows 2016 because DirPermissionDenied directory has no read permission Hi Frank, thanks for fixing this issue, in test setup we are setting the permissions explicitly to 333, can we set the permissions 733 in test setup itself ?. i changed the permission to 733 in test setup and run the test at my Linux box and test ran successfully without any problem. thanks, Vyom ----- Original message ----- From: "Frank Yuan" <[email protected] <mailto:[email protected]> > Sent by: "net-dev" <[email protected] <mailto:[email protected]> > To: <[email protected] <mailto:[email protected]> > Cc: Subject: [EXTERNAL] RFR (13) [testbug]: 8227422: sun/net/www/protocol/file/DirPermissionDenied.java failed on Windows 2016 because DirPermissionDenied directory has no read permission Date: Wed, Jul 10, 2019 10:37 AM Hi all Would you like to review this patch? Bug: https://bugs.openjdk.java.net/browse/JDK-8227422 Webrev: http://cr.openjdk.java.net/~fyuan/8227422/webrev.00/ In this patch, I add read permission before cleaning up the test directory to make sure the directory is removable on Windows system. Thanks Frank
