Browse Source

Fix a documentation typo and a code comment typo to path.repo

Jason Tedor 10 years ago
parent
commit
a0243200e0

+ 1 - 1
core/src/main/java/org/elasticsearch/repositories/uri/URLRepository.java

@@ -156,7 +156,7 @@ public class URLRepository extends BlobStoreRepository {
                     logger.warn("cannot parse the specified url [{}]", url);
                     throw new RepositoryException(repositoryName, "cannot parse the specified url [" + url + "]");
                 }
-                // We didn't match white list - try to resolve against repo.path
+                // We didn't match white list - try to resolve against path.repo
                 URL normalizedUrl = environment.resolveRepoURL(url);
                 if (normalizedUrl == null) {
                     logger.warn("The specified url [{}] doesn't start with any repository paths specified by the path.repo setting: [{}] or by repositories.url.allowed_urls setting: [{}] ", url, environment.repoFiles());

+ 1 - 1
docs/reference/modules/snapshots.asciidoc

@@ -141,7 +141,7 @@ This setting supports wildcards in the place of host, path, query, and fragment.
 repositories.url.allowed_urls: ["http://www.example.org/root/*", "https://*.mydomain.com/*?*#*"]
 -----------------------------------
 
-URL repositories with `file:` URLs can only point to locations registered in the `repo.path` setting similiar to
+URL repositories with `file:` URLs can only point to locations registered in the `path.repo` setting similiar to
 shared file system repository.
 
 [float]