You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-export/xwiki-platform-export-pdf/xwiki-platform-export-pdf-api/src/main/java/org/xwiki/export/pdf/internal/job/PDFExportJob.java
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,22 @@ public class PDFExportJob extends AbstractPDFExportJob
76
76
77
77
@Override
78
78
protectedvoidrunInternal() throwsException
79
+
{
80
+
try {
81
+
exportAsPDF();
82
+
} finally {
83
+
cleanup();
84
+
}
85
+
}
86
+
87
+
privatevoidcleanup()
88
+
{
89
+
// Avoid saving sensitive information along with the PDF export job status. This information is not needed
90
+
// anymore after the PDF export job is done (whether the PDF is generated client-side or server-side).
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-export/xwiki-platform-export-pdf/xwiki-platform-export-pdf-api/src/test/java/org/xwiki/export/pdf/internal/job/PDFExportJobTest.java
0 commit comments