remove pattern matching for now

This commit is contained in:
Anthony Stirling
2024-10-07 11:01:22 +01:00
parent 1129487aaf
commit 2cdad2f9ff
2 changed files with 9 additions and 10 deletions

View File

@@ -270,12 +270,12 @@ public class SecurityConfiguration {
return true;
}
// Only Dev test
@Bean
public WebSecurityCustomizer webSecurityCustomizer() {
return (web) ->
web.ignoring()
.requestMatchers(
"/css/**", "/images/**", "/js/**", "/**.svg", "/pdfjs-legacy/**");
}
// // Only Dev test
// @Bean
// public WebSecurityCustomizer webSecurityCustomizer() {
// return (web) ->
// web.ignoring()
// .requestMatchers(
// "/css/**", "/images/**", "/js/**", "/**.svg", "/pdfjs-legacy/**");
// }
}

View File

@@ -44,10 +44,9 @@ public class CustomPDDocumentFactory {
return createNewBytesBasedOnOldDocument(document);
}
public byte[] createNewBytesBasedOnOldDocument(PDDocument oldDocument) throws IOException {
pdfMetadataService.setMetadataToPdf(
oldDocument, pdfMetadataService.extractMetadataFromPdf(oldDocument), true);
oldDocument, pdfMetadataService.extractMetadataFromPdf(oldDocument), true);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
oldDocument.save(baos);