[JIRA] [core] (JENKINS-22693) Resource leak in hudson.model.FileParameterValue

2014-07-02 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-22693


Resource leak in hudson.model.FileParameterValue















Code changed in jenkins
User: Oleg Nenashev
Path:
 core/src/main/java/hudson/model/FileParameterValue.java
http://jenkins-ci.org/commit/jenkins/eb9cbead0b117e0544871d17e7077e7837a60bb7
Log:
  FIXED JENKINS-22693 - Properly close InputStreams in FileParameterValue

Signed-off-by: Oleg Nenashev o.v.nenas...@gmail.com
(cherry picked from commit 8767ddb192cf752c7d28f512884b9ecd3b9cdbd4)





























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







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-22693) Resource leak in hudson.model.FileParameterValue

2014-06-30 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 updated  JENKINS-22693


Resource leak in hudson.model.FileParameterValue
















Change By:


Daniel Beck
(30/Jun/14 6:39 PM)




Labels:


lts-candidate



























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







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-22693) Resource leak in hudson.model.FileParameterValue

2014-06-01 Thread scm_issue_l...@java.net (JIRA)















































SCM/JIRA link daemon
 resolved  JENKINS-22693 as Fixed


Resource leak in hudson.model.FileParameterValue
















Change By:


SCM/JIRA link daemon
(01/Jun/14 9:12 AM)




Status:


InProgress
Resolved





Resolution:


Fixed



























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







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-22693) Resource leak in hudson.model.FileParameterValue

2014-06-01 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-22693


Resource leak in hudson.model.FileParameterValue















Code changed in jenkins
User: Oleg Nenashev
Path:
 core/src/main/java/hudson/model/FileParameterValue.java
http://jenkins-ci.org/commit/jenkins/8767ddb192cf752c7d28f512884b9ecd3b9cdbd4
Log:
  FIXED JENKINS-22693 - Properly close InputStreams in FileParameterValue

Signed-off-by: Oleg Nenashev o.v.nenas...@gmail.com





























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







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-22693) Resource leak in hudson.model.FileParameterValue

2014-06-01 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-22693


Resource leak in hudson.model.FileParameterValue















Code changed in jenkins
User: Oleg Nenashev
Path:
 core/src/main/java/hudson/model/FileParameterValue.java
http://jenkins-ci.org/commit/jenkins/d2fb6d918c97b7b568eeff5b43e7095cbcb5d107
Log:
  Merge pull request #1225 from synopsys-arc-oss/jenkins22693-inputstream-fix

FIXED JENKINS-22693 - Properly close InputStreams in FileParameterValue


Compare: https://github.com/jenkinsci/jenkins/compare/e7ca7ae9ec4a...d2fb6d918c97




























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







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-22693) Resource leak in hudson.model.FileParameterValue

2014-06-01 Thread dogf...@java.net (JIRA)














































dogfood
 commented on  JENKINS-22693


Resource leak in hudson.model.FileParameterValue















Integrated in  jenkins_main_trunk #3419
 FIXED JENKINS-22693 - Properly close InputStreams in FileParameterValue (Revision 8767ddb192cf752c7d28f512884b9ecd3b9cdbd4)

 Result = SUCCESS
o.v.nenashev : 8767ddb192cf752c7d28f512884b9ecd3b9cdbd4
Files : 

	core/src/main/java/hudson/model/FileParameterValue.java





























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







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-22693) Resource leak in hudson.model.FileParameterValue

2014-05-21 Thread o.v.nenas...@gmail.com (JIRA)














































Oleg Nenashev
 commented on  JENKINS-22693


Resource leak in hudson.model.FileParameterValue















The PR just hangs for several weeks...
https://github.com/jenkinsci/jenkins/pull/1225



























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







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-22693) Resource leak in hudson.model.FileParameterValue

2014-04-20 Thread ever...@free.fr (JIRA)














































evernat
 created  JENKINS-22693


Resource leak in hudson.model.FileParameterValue















Issue Type:


Bug



Assignee:


Unassigned


Components:


core



Created:


20/Apr/14 10:05 AM



Description:


A FileInputStream is not closed in hudson.model.FileParameterValue for "return IOUtils.toByteArray(new FileInputStream(file))".
This is a resource leak.

The FileInputStream should be closed, using finally. For example:
final InputStream input = new FileInputStream(file);
try {
return IOUtils.toByteArray(input);
} finally {
input.close();
}




Project:


Jenkins



Priority:


Major



Reporter:


evernat

























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







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-22693) Resource leak in hudson.model.FileParameterValue

2014-04-20 Thread ever...@free.fr (JIRA)














































evernat
 updated  JENKINS-22693


Resource leak in hudson.model.FileParameterValue
















Change By:


evernat
(20/Apr/14 10:06 AM)




Description:


AFileInputStreamisnotclosedin[hudson.model.FileParameterValue|https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/FileParameterValue.java#L260]forreturnIOUtils.toByteArray(newFileInputStream(file)).Thisisaresourceleak.TheFileInputStreamshouldbeclosed,usingfinally.Forexample:
{code}
finalInputStreaminput=newFileInputStream(file);try{returnIOUtils.toByteArray(input);}finally{input.close();}
{code}



























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







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.