[ 
https://issues.apache.org/jira/browse/JSPWIKI-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Florian Holeczek closed JSPWIKI-721.
------------------------------------


Closing this, since 2.9 has been released
                
> Log FileNotFoundException on missing attachment
> -----------------------------------------------
>
>                 Key: JSPWIKI-721
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-721
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Core & storage
>    Affects Versions: 2.8.4
>            Reporter: Jürgen Weber
>            Assignee: Harry Metske
>            Priority: Minor
>             Fix For: 2.8.5, 2.9
>
>
> We messed with the repository and had an attachment folder without the actual 
> attachment. This results in a FileNotFoundException in
> BasicAttachmentProvider.getAttachmentInfo(WikiPage, String, int)
> and comes up as the infamous 
> java.lang.IllegalArgumentException: Attempt to provide a null filter - this 
> should never happen.  Please check your configuration (or if you're a 
> developer, check your own code.)
>         at 
> com.ecyrd.jspwiki.filters.FilterManager.addPageFilter(FilterManager.java:145)
> A log in the FileNotFoundException catch block would help a lot:
>    catch( FileNotFoundException e )
>         {
>             log.error("Can't get attachment properties for "+att, e );
>             return null;
>         }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to