You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Amit Jain (Jira)" <ji...@apache.org> on 2020/05/26 07:32:00 UTC
[jira] [Resolved] (OAK-9092) Exception root cause message is
swallowed
[ https://issues.apache.org/jira/browse/OAK-9092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amit Jain resolved OAK-9092.
----------------------------
Fix Version/s: 1.8.23
1.32.0
1.22.4
Resolution: Fixed
Patch commited:
* trunk - [1878109|http://svn.apache.org/viewvc?rev=1878109&view=rev]
* 1.22 - [1878111 |http://svn.apache.org/viewvc?rev= 1878111&view=rev]
* 1.8 - [1878112|http://svn.apache.org/viewvc?rev= 1878112&view=rev]
> Exception root cause message is swallowed
> -----------------------------------------
>
> Key: OAK-9092
> URL: https://issues.apache.org/jira/browse/OAK-9092
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: blob
> Reporter: Thomas Mueller
> Assignee: Amit Jain
> Priority: Major
> Fix For: 1.22.4, 1.32.0, 1.8.23
>
>
> The root cause of the problem (the IOException stack trace / message) is swallowed here: org.apache.jackrabbit.oak.plugins.blob.FileCache
> {noformat}
> private void put(String key, File file, boolean copy) {
> try {
> File cached = DataStoreCacheUtils.getFile(key, cacheRoot);
> if (!cached.exists()) {
> if (copy) {
> FileUtils.copyFile(file, cached);
> } else {
> FileUtils.moveFile(file, cached);
> }
> }
> cache.put(key, cached);
> } catch (IOException e) {
> LOG.error("Exception adding id [{}] with file [{}] to cache", key, file);
> }
> }
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)