This is an automated email from the ASF dual-hosted git repository.

juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git

commit c1375efd7c9f279deda144b5664561eaea51427e
Author: Juan Pablo Santos Rodríguez <juanpablo.san...@gmail.com>
AuthorDate: Tue Apr 9 15:45:34 2024 +0200

    BasicAttachmentProvider doesn't throw an Exception if attachment metadata 
files are not correctly formed
---
 .../main/java/org/apache/wiki/providers/BasicAttachmentProvider.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/jspwiki-main/src/main/java/org/apache/wiki/providers/BasicAttachmentProvider.java
 
b/jspwiki-main/src/main/java/org/apache/wiki/providers/BasicAttachmentProvider.java
index 3dba732a7..86c3cf320 100644
--- 
a/jspwiki-main/src/main/java/org/apache/wiki/providers/BasicAttachmentProvider.java
+++ 
b/jspwiki-main/src/main/java/org/apache/wiki/providers/BasicAttachmentProvider.java
@@ -255,6 +255,8 @@ public class BasicAttachmentProvider implements 
AttachmentProvider {
         if( propertyFile.exists() ) {
             try( final InputStream in = Files.newInputStream( 
propertyFile.toPath() ) ) {
                 props.load( in );
+            } catch( final IOException ioe ) {
+                LOG.error( ioe.getMessage() );
             }
         }
         

Reply via email to