Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle keys starting with resources:... while resolving registry URI #3846

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
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 @@ -1035,6 +1035,10 @@ private String resolveRegistryURI(String key) {
registryRoot = localRegistry;
resourcePath = key.substring(MicroIntegratorRegistryConstants.LOCAL_REGISTRY_PREFIX.length());

} else if (key.startsWith(MicroIntegratorRegistryConstants.RESOURCES_PREFIX)) {
registryRoot = govRegistry;
resourcePath = MicroIntegratorRegistryConstants.MI_RESOURCES_DIRECTORY_NAME + URL_SEPARATOR +
key.substring(MicroIntegratorRegistryConstants.RESOURCES_PREFIX.length());
} else {
registryRoot = govRegistry;
resourcePath = key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ public class MicroIntegratorRegistryConstants {
public static final String PROTOCOL_HTTPS = "https";
public static final String FILE_PROTOCOL_PREFIX = "file:";


public static final String RESOURCES_PREFIX = "resources:";
public static final String CONFIG_REGISTRY_PREFIX = "conf:";
public static final String GOVERNANCE_REGISTRY_PREFIX = "gov:";
public static final String LOCAL_REGISTRY_PREFIX = "local:";

public static final String MI_RESOURCES_DIRECTORY_NAME = "mi-resources";
public static final String CONFIG_DIRECTORY_NAME = "config";
public static final String GOVERNANCE_DIRECTORY_NAME = "governance";
public static final String LOCAL_DIRECTORY_NAME = "local";
Expand Down
Loading