JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-6082

Application Deployment Descriptor is not properly closed

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.2.1
  • Fix Version/s: 3.1.4 (EE only), 3.2.3 (EE only), 3.3.0
  • Component/s: Core: Bootstrap / Standalone, Core: Deployment
  • Labels:
    None
  • Environment:

    Windows

  • User impact:
    Low
  • Similar Issues:
    None

Description

The parse method of org.mule.module.launcher.descriptor.PropertiesDescriptorParser does not close the FileInputStream when reading properties from the Application Deployment Descriptor (mule-deploy.properties). This can result in failed hotdeploy when the file is to be deleted.

Change code in parse method from:

p.load(new FileInputStream(descriptor));

to:

FileInputStream is = new FileInputStream(descriptor);
try {
   p.load(is);
} finally {
   is.close();
}

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds

People

  • Assignee:
    Pablo Kraan
    Reporter:
    Pär Wenåker
Vote (0)
Watch (0)

Dates

  • Created:
    20/Feb/12 09:07 AM
    Updated:
    28/Mar/12 03:03 PM
    Resolved:
    28/Mar/12 03:03 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.