Community
Participate
Working Groups
Created attachment 129997 [details] QueryableArtifactRepositoryManager patch Artifact Repositories are currently displayed multiple times in the AdminUI, when there are 2 repositories each repository is displayed twice, when there are 3 repositories each repository is displayed 3x, and so on. It appears to be caused by a bug in QueryableArtifactRepositoryManager's query method. It iterates over an array with query.perform but passes the array as an argument rather than an element. Based on the comments & code it seems the loop is unnecessary so I've removed it. Attached is a patch along with a test.
Created attachment 130005 [details] QueryableRepositoryManager patch The patch makes getRepoLocations() abstract in QueryableRepositoryManager and adds implementations to the subclasses. Previously QueryableRepositoryManager always used the flags for Metadata Repositories, currently this didn't cause a known issue but might int he future.
Reviewed and committed both patches. Per discussion with Matt, we had to run the QueryableMetadataRepository tests before the artifact tests or else the testBrokenRepository would fail. I'm not worried about figuring that out right now, but it suggests that some of the UI tests depend on previous repo manager state. Fixed in HEAD >20090326.
*** Bug 268627 has been marked as a duplicate of this bug. ***
*** Bug 271119 has been marked as a duplicate of this bug. ***