EasyBeans is an open source implementation by ObjectWeb of the EJB3 container specification. 
X Wiki
  History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: UTIL-57
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Guillaume Sauthier
Reporter: Guillaume Sauthier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OW2 Util

Directory URL for an archive may change during archive lifetime

Created: 18/Aug/09 10:11 AM   Updated: 18/Aug/09 10:42 AM
Component/s: None
Affects Version/s: OW2 Util 1.0.18
Fix Version/s: OW2 Util 1.0.19


 Description  « Hide
An URL that denotes a directory have to ends with a '/'.
When creating the URL from a File, the filesystem tries to determine if the File is a directory or not, if it is, the final '/' is appended. But if it cannot (File does not exist for example), no '/' is appended.

So, when a DirectoryArchiveImpl is first created, its URL ends with a '/', but if the file is removed, each call to IArchive.getURL() will return an URL without '/'. That is a problem because the URL is usually used as a key...

Caching the initial value should solve the problem.

 All   Comments   Change History   Related Builds      Sort Order:
Guillaume Sauthier - 18/Aug/09 10:41 AM
Fixed in trunk


Copyright © 2006-2007 EasyBeans / ObjectWeb consortium

http://www.easybeans.org