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; return true;
} }
// Only Dev test // // Only Dev test
@Bean // @Bean
public WebSecurityCustomizer webSecurityCustomizer() { // public WebSecurityCustomizer webSecurityCustomizer() {
return (web) -> // return (web) ->
web.ignoring() // web.ignoring()
.requestMatchers( // .requestMatchers(
"/css/**", "/images/**", "/js/**", "/**.svg", "/pdfjs-legacy/**"); // "/css/**", "/images/**", "/js/**", "/**.svg", "/pdfjs-legacy/**");
} // }
} }

View File

@@ -44,7 +44,6 @@ public class CustomPDDocumentFactory {
return createNewBytesBasedOnOldDocument(document); return createNewBytesBasedOnOldDocument(document);
} }
public byte[] createNewBytesBasedOnOldDocument(PDDocument oldDocument) throws IOException { public byte[] createNewBytesBasedOnOldDocument(PDDocument oldDocument) throws IOException {
pdfMetadataService.setMetadataToPdf( pdfMetadataService.setMetadataToPdf(
oldDocument, pdfMetadataService.extractMetadataFromPdf(oldDocument), true); oldDocument, pdfMetadataService.extractMetadataFromPdf(oldDocument), true);