Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,31 @@ public List<StoreResource> list( final ArtifactStore store, final String path, f
{
try
{
final List<ListingResult> results = transfers.listAll(
locationExpander.expand( new VirtualResource( LocationUtils.toLocations( store ), path ) ), eventMetadata );
List<ArtifactStore> members;
try
{
members = storeManager.query()
.enabledState( true )
.getOrderedConcreteStoresInGroup( store.getPackageType(), store.getName() );
}
catch ( final IndyDataException e )
{
throw new IndyWorkflowException( "Failed to lookup concrete members of: %s. Reason: %s", e, store,
e.getMessage() );
}

final List<ConcreteResource> concreteResources = new ArrayList<ConcreteResource>();

for ( ArtifactStore member : members )
{
if ( ! PathMaskChecker.checkListingMask( member, path ) )
{
continue;
}
concreteResources.add(new ConcreteResource( LocationUtils.toLocation( member ), path ));
}

final List<ListingResult> results = transfers.listAll( new VirtualResource( concreteResources ), eventMetadata );

for ( final ListingResult lr : results )
{
Expand Down