Source:
<code>public ArtifactInputStream getInputStream(String storageId, String repositoryId, String artifactPath) throws IOException, NoSuchAlgorithmException, ArtifactTransportException, ProviderImplementationException { Storage storage = getConfiguration().getStorage(storageId); logger.debug("Checking in " + storage.getId() + ":" + repositoryId + "..."); Repository groupRepository = storage.getRepository(repositoryId); final ArtifactInputStream isRepositoryAccept = getInputStreamFromRepositoryAcceptRules(repositoryId, artifactPath, storage); if (isRepositoryAccept != null) { return isRepositoryAccept; } final ArtifactInputStream isWildcardRepositoryAccept = getInputStreamFromWildcardRepositoryAcceptRules(artifactPath, storage); if (isWildcardRepositoryAccept != null) { return isWildcardRepositoryAccept; } final RuleSet denyRules = getRoutingRules().getDenyRules(repositoryId); final RuleSet wildcardDenyRules = getRoutingRules().getWildcardDeniedRules(); for (String storageAndRepositoryId : groupRepository.getGroupRepositories()) { String sId = getConfigurationManager().getStorageId(storage, storageAndRepositoryId); String rId = getConfigurationManager().getRepositoryId(storageAndRepositoryId); Repository r = getConfiguration().getStorage(sId).getRepository(rId); if (r.isInService() && !repositoryRejects(r.getId(), artifactPath, denyRules) && !repositoryRejects(r.getId(), artifactPath, wildcardDenyRules)) { ArtifactInputStream is; try { is = resolveArtifact(sId, r.getId(), artifactPath); } <START> catch (FileNotFoundException e) <END> { continue; } if (is != null) { return is; } } } return null; }</code><technical_language>![CRITICAL](<LINK_0> log rethrow this exception. [![rule](<LINK_1>](<LINK_2></technical_language>

Target:
public ArtifactInputStream getInputStream(String storageId, String repositoryId, String artifactPath) throws IOException, NoSuchAlgorithmException, ArtifactTransportException, ProviderImplementationException { Storage storage = getConfiguration().getStorage(storageId); logger.debug("Checking in " + storage.getId() + ":" + repositoryId + "..."); Repository groupRepository = storage.getRepository(repositoryId); final ArtifactInputStream isRepositoryAccept = getInputStreamFromRepositoryAcceptRules(repositoryId, artifactPath, storage); if (isRepositoryAccept != null) { return isRepositoryAccept; } final ArtifactInputStream isWildcardRepositoryAccept = getInputStreamFromWildcardRepositoryAcceptRules(artifactPath, storage); if (isWildcardRepositoryAccept != null) { return isWildcardRepositoryAccept; } final RuleSet denyRules = getRoutingRules().getDenyRules(repositoryId); final RuleSet wildcardDenyRules = getRoutingRules().getWildcardDeniedRules(); for (String storageAndRepositoryId : groupRepository.getGroupRepositories()) { String sId = getConfigurationManager().getStorageId(storage, storageAndRepositoryId); String rId = getConfigurationManager().getRepositoryId(storageAndRepositoryId); Repository r = getConfiguration().getStorage(sId).getRepository(rId); if (r.isInService() && !repositoryRejects(r.getId(), artifactPath, denyRules) && !repositoryRejects(r.getId(), artifactPath, wildcardDenyRules)) { ArtifactInputStream is; try { is = resolveArtifact(sId, r.getId(), artifactPath); } catch (FileNotFoundException e) { logger.debug(String.format("Artifact not found in repository, continue group artifact search: repo-[%s]; path-[%s].", r.getId(), artifactPath)); continue; } if (is != null) { return is; } } } return null; }