You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Jürgen Weber (Created JIRA)" <ji...@apache.org> on 2012/02/21 14:44:34 UTC

[jira] [Created] (JSPWIKI-721) Log FileNotFoundException on missing attachment

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
            Priority: Minor


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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (JSPWIKI-721) Log FileNotFoundException on missing attachment

Posted by "Harry Metske (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harry Metske resolved JSPWIKI-721.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9
                   2.8.5

Fixed in 2.8.5-svn-10 and 2.9.0-svn-6.
                
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Closed] (JSPWIKI-721) Log FileNotFoundException on missing attachment

Posted by "Florian Holeczek (JIRA)" <ji...@apache.org>.
     [ 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