@@ -373,11 +373,7 @@ public HttpRedirect doGenerateBundleAsync(StaplerRequest2 req, StaplerResponse2
373
373
try (FileOutputStream fileOutputStream = new FileOutputStream (new File (outputDir , SYNC_SUPPORT_BUNDLE ))) {
374
374
SupportPlugin .setRequesterAuthentication (Jenkins .getAuthentication2 ());
375
375
try {
376
- try (ACLContext ignored = ACL .as2 (ACL .SYSTEM2 )) {
377
- SupportPlugin .writeBundle (fileOutputStream , syncComponent );
378
- } catch (IOException e ) {
379
- logger .log (Level .WARNING , e .getMessage (), e );
380
- }
376
+ SupportPlugin .writeBundle (fileOutputStream , syncComponent );
381
377
} finally {
382
378
SupportPlugin .clearRequesterAuthentication ();
383
379
}
@@ -554,12 +550,8 @@ protected void compute() throws Exception {
554
550
try (FileOutputStream fileOutputStream = new FileOutputStream (new File (outputDir , supportBundleName ))) {
555
551
SupportPlugin .setRequesterAuthentication (Jenkins .getAuthentication2 ());
556
552
try {
557
- try (ACLContext ignored = ACL .as2 (ACL .SYSTEM2 )) {
558
- SupportPlugin .writeBundle (
559
- fileOutputStream , components , this ::progress , Path .of (outputDir .getAbsolutePath ()));
560
- } catch (IOException e ) {
561
- logger .log (Level .FINE , e .getMessage (), e );
562
- }
553
+ SupportPlugin .writeBundle (
554
+ fileOutputStream , components , this ::progress , Path .of (outputDir .getAbsolutePath ()));
563
555
} finally {
564
556
SupportPlugin .clearRequesterAuthentication ();
565
557
}
0 commit comments