mirror of https://github.com/apache/nifi.git
Merge branch 'NIFI-344' of https://github.com/danbress/incubator-nifi into develop
This closes #29
This commit is contained in:
commit
42f69196c2
|
@ -370,6 +370,10 @@ public class RemoteProcessGroupResource extends ApplicationResource {
|
|||
if (uri.getScheme() == null || uri.getHost() == null) {
|
||||
throw new IllegalArgumentException("The specified remote process group URL is malformed: " + requestProcessGroupDTO.getTargetUri());
|
||||
}
|
||||
|
||||
if (!(uri.getScheme().equalsIgnoreCase("http") || uri.getScheme().equalsIgnoreCase("https"))) {
|
||||
throw new IllegalArgumentException("The specified remote process group URL is invalid because it is not http or https: " + requestProcessGroupDTO.getTargetUri());
|
||||
}
|
||||
|
||||
// normalize the uri to the other controller
|
||||
String controllerUri = uri.toString();
|
||||
|
@ -860,6 +864,10 @@ public class RemoteProcessGroupResource extends ApplicationResource {
|
|||
if (uri.getScheme() == null || uri.getHost() == null) {
|
||||
throw new IllegalArgumentException("The specified remote process group URL is malformed: " + requestRemoteProcessGroup.getTargetUri());
|
||||
}
|
||||
|
||||
if (!(uri.getScheme().equalsIgnoreCase("http") || uri.getScheme().equalsIgnoreCase("https"))) {
|
||||
throw new IllegalArgumentException("The specified remote process group URL is invalid because it is not http or https: " + requestRemoteProcessGroup.getTargetUri());
|
||||
}
|
||||
|
||||
// normalize the uri to the other controller
|
||||
String controllerUri = uri.toString();
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<div class="setting">
|
||||
<div class="setting-name">URL</div>
|
||||
<div class="setting-field">
|
||||
<input id="new-remote-process-group-uri" type="text"/>
|
||||
<input id="new-remote-process-group-uri" type="text" placeholder="https://remotehost:8080/nifi"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue