Re: [fileupload] DefaultFileItem.getUniqueId and multiple class loaders

2005-09-28 Thread Alexey Panchenko
Mike S wrote: Are there any suggestions as to the best way to modify the getUniqueId method to return a unique ID across class loaders? We are thinking along the lines of injecting a random number to concatenate with the static counter in the DefaultFileItem, (or grabbing the start timestamp

[fileupload] DefaultFileItem.getUniqueId and multiple class loaders

2005-09-27 Thread Mike S
We have a very busy server running 9 clones of a web app server. Each clone uses DiskFileUpload, and most of the incoming files are cached to disk. We discovered that in rare instances, two clones will attempt to write to the same file, causing corruption. We discovered that getUniqueId (which is