Community
Participate
Working Groups
I noticed in SimpleMetadataRepositoryFactory and SimpleArtifactRepositoryFactory that they both create temporary copies of the index files. This is fine for reading remote repositories but seems odd for local repositories. I propose changing it to reading local repositories directly instead of making a copy of the index. I can make the changes as part of my work on caching metadata since I'm refactoring most of the code already. Just wondering if there are any reasons to keep the current method of reading index files.
Created attachment 87710 [details] Local Index Check v01 Patch changes: +Added a check to SimpleArtifactRepositoryFactory#load(*) to use ECFTransport only when the index file is from a remote location. The local file check for SimpleMetadataRepositoryFactory#load(*) will be included in the metadata caching bug report. I'm going to do a bit more testing on this. I'll flag it for review when it's ready.
Tim will update the patch, then I will review/release.
Created attachment 90510 [details] Local Index Check v02 Patch changes: + Respun the patch to match the changes since the first patch was posted.
Fix released.