Skip to content

Commit

Permalink
Fix baseUrl config parameter handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Mar 19, 2019
1 parent 1ce6359 commit fe005e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,12 +465,13 @@ void throwNullAttrException(Filter query) {

// create uri from base host:
URIBuilder getURIBuilder() {
String baseHost = configuration.getBaseUrl();
URIBuilder uri = new URIBuilder();
uri.setScheme("https");
uri.setHost(baseHost);
uri.setPath(URI_BASE_PATH);
return uri;
try {
URIBuilder uri = new URIBuilder(configuration.getBaseUrl());
uri.setPath(URI_BASE_PATH);
return uri;
} catch (URISyntaxException e) {
throw new IllegalStateException(e.getMessage(), e); // todo
}
}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
public class GrouperTestHelper {

private static final String BASE_URL = "192.168.56.101:9443";
private static final String BASE_URL = "https://192.168.56.101:9443";
private static final String ADMIN_USERNAME = "banderson";
private static final String ADMIN_PASSWORD = "password";
private static final String SUPER_GROUP = "etc:sysadmingroup";
Expand Down

0 comments on commit fe005e3

Please sign in to comment.