[MAGNOLIA-1864] ClasspathSpool lock resources on getLastModified Created: 19/Nov/07  Updated: 23/Jan/13  Resolved: 29/Nov/07

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.5 RC1
Fix Version/s: 3.5 RC2

Type: Bug Priority: Critical
Reporter: Manuel Molaschi Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File classpathspoolpatch.patch    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

The method getLastModified in info.magnolia.cms.servlets.ClasspathSpool opens a connection to resource (Url.openConnection()) but doesn't close it.

I attach a working patch for this bug.



 Comments   
Comment by Magnolia International [ 19/Nov/07 ]

Thanks - there's a redundant is.close() in this patch, though.

Comment by manuel.molaschi [ 19/Nov/07 ]

You're right ;P

Comment by Philipp Bracher [ 29/Nov/07 ]

Many thanks!

Generated at Mon Feb 12 03:31:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.