Repository: nifi-minifi-cpp Updated Branches: refs/heads/master e98ff6844 -> 058bb84ba
MINIFI-375: Remove forward slash from urls This closes #127. Signed-off-by: Aldrin Piri <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/commit/058bb84b Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/tree/058bb84b Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/diff/058bb84b Branch: refs/heads/master Commit: 058bb84ba18be6e3da26573849d05bde8ce8fdb0 Parents: e98ff68 Author: Marc Parisi <[email protected]> Authored: Tue Aug 15 15:05:41 2017 -0400 Committer: Aldrin Piri <[email protected]> Committed: Tue Aug 15 15:54:16 2017 -0400 ---------------------------------------------------------------------- libminifi/src/RemoteProcessorGroupPort.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/058bb84b/libminifi/src/RemoteProcessorGroupPort.cpp ---------------------------------------------------------------------- diff --git a/libminifi/src/RemoteProcessorGroupPort.cpp b/libminifi/src/RemoteProcessorGroupPort.cpp index 3c88e8f..05d5f7a 100644 --- a/libminifi/src/RemoteProcessorGroupPort.cpp +++ b/libminifi/src/RemoteProcessorGroupPort.cpp @@ -212,7 +212,7 @@ void RemoteProcessorGroupPort::refreshRemoteSite2SiteInfo() { if (this->host_.empty() || this->port_ == -1 || this->protocol_.empty()) return; - std::string fullUrl = this->protocol_ + this->host_ + ":" + std::to_string(this->port_) + "/nifi-api/controller/"; + std::string fullUrl = this->protocol_ + this->host_ + ":" + std::to_string(this->port_) + "/nifi-api/controller"; this->site2site_port_ = -1; configure_->get(Configure::nifi_rest_api_user_name, this->rest_user_name_); @@ -221,7 +221,7 @@ void RemoteProcessorGroupPort::refreshRemoteSite2SiteInfo() { std::string token; if (!rest_user_name_.empty()) { - std::string loginUrl = this->protocol_ + this->host_ + ":" + std::to_string(this->port_) + "/nifi-api/access/token/"; + std::string loginUrl = this->protocol_ + this->host_ + ":" + std::to_string(this->port_) + "/nifi-api/access/token"; token = utils::get_token(loginUrl, this->rest_user_name_, this->rest_password_, this->securityConfig_); logger_->log_debug("Token from NiFi REST Api endpoint %s", token); if (token.empty()) @@ -285,7 +285,7 @@ void RemoteProcessorGroupPort::refreshRemoteSite2SiteInfo() { logger_->log_info("process group remote site2site port %d, is secure %d", site2site_port_, site2site_secure_); } } else { - logger_->log_error("Cannot output body to content for ProcessGroup::refreshRemoteSite2SiteInfo"); + logger_->log_error("Cannot output body to content for ProcessGroup::refreshRemoteSite2SiteInfo: received HTTP code %d from %s", http_code, fullUrl); } } else { logger_->log_error(
