You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2011/05/13 10:22:47 UTC
[jira] [Created] (JCR-2969) FileDataStore garbage collection can
throw a NullPointerException if there is I/O problem
FileDataStore garbage collection can throw a NullPointerException if there is I/O problem
-----------------------------------------------------------------------------------------
Key: JCR-2969
URL: https://issues.apache.org/jira/browse/JCR-2969
Project: Jackrabbit Content Repository
Issue Type: Bug
Reporter: Thomas Mueller
Assignee: Thomas Mueller
The FileDataStore can throw a NPE when doing garbage collection, if there is file I/O problem (for example an access rights problem). The reason is that it doesn't check if File.list / listFiles returns null. Stack trace:
Exception in thread "Thread-461" java.lang.NullPointerException
at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:334)
at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (JCR-2969) FileDataStore garbage collection can
throw a NullPointerException if there is I/O problem
Posted by "Thomas Mueller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Mueller updated JCR-2969:
--------------------------------
Component/s: jackrabbit-core
Priority: Minor (was: Major)
Fix Version/s: 2.3.0
> FileDataStore garbage collection can throw a NullPointerException if there is I/O problem
> -----------------------------------------------------------------------------------------
>
> Key: JCR-2969
> URL: https://issues.apache.org/jira/browse/JCR-2969
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-core
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Priority: Minor
> Fix For: 2.3.0
>
>
> The FileDataStore can throw a NPE when doing garbage collection, if there is file I/O problem (for example an access rights problem). The reason is that it doesn't check if File.list / listFiles returns null. Stack trace:
> Exception in thread "Thread-461" java.lang.NullPointerException
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:334)
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (JCR-2969) FileDataStore garbage collection can
throw a NullPointerException if there is I/O problem
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting updated JCR-2969:
-------------------------------
Fix Version/s: (was: 2.3.0)
2.2.9
2.1.6
2.0.4
1.6.5
Merged to the 2.2 branch in revision 1174715, to 2.1 in 1174716, to 2.0 in 1174726, and to 1.6 in 1174729.
> FileDataStore garbage collection can throw a NullPointerException if there is I/O problem
> -----------------------------------------------------------------------------------------
>
> Key: JCR-2969
> URL: https://issues.apache.org/jira/browse/JCR-2969
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-core
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Priority: Minor
> Fix For: 1.6.5, 2.0.4, 2.1.6, 2.2.9
>
>
> The FileDataStore can throw a NPE when doing garbage collection, if there is file I/O problem (for example an access rights problem). The reason is that it doesn't check if File.list / listFiles returns null. Stack trace:
> Exception in thread "Thread-461" java.lang.NullPointerException
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:334)
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (JCR-2969) FileDataStore garbage collection can
throw a NullPointerException if there is I/O problem
Posted by "Thomas Mueller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Mueller resolved JCR-2969.
---------------------------------
Resolution: Fixed
> FileDataStore garbage collection can throw a NullPointerException if there is I/O problem
> -----------------------------------------------------------------------------------------
>
> Key: JCR-2969
> URL: https://issues.apache.org/jira/browse/JCR-2969
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-core
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Priority: Minor
> Fix For: 2.3.0
>
>
> The FileDataStore can throw a NPE when doing garbage collection, if there is file I/O problem (for example an access rights problem). The reason is that it doesn't check if File.list / listFiles returns null. Stack trace:
> Exception in thread "Thread-461" java.lang.NullPointerException
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:334)
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
> at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira