You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2016/11/03 05:11:58 UTC
[jira] [Updated] (LENS-1342) Unclosed InputStreamReader in
PropertyBasedUserConfigLoader
[ https://issues.apache.org/jira/browse/LENS-1342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amareshwari Sriramadasu updated LENS-1342:
------------------------------------------
Assignee: Ted Yu
Fix Version/s: 2.7
Component/s: server
> Unclosed InputStreamReader in PropertyBasedUserConfigLoader
> -----------------------------------------------------------
>
> Key: LENS-1342
> URL: https://issues.apache.org/jira/browse/LENS-1342
> Project: Apache Lens
> Issue Type: Bug
> Components: server
> Reporter: Ted Yu
> Assignee: Ted Yu
> Priority: Minor
> Fix For: 2.7
>
> Attachments: 1342.v1.txt
>
>
> {code}
> try {
> properties.load(new InputStreamReader(new FileInputStream(new File(filename)), "UTF-8"));
> } catch (IOException e) {
> throw new UserConfigLoaderException("property file not found. Provided path was: " + filename);
> }
> {code}
> The InputStreamReader should be closed upon return from the method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)