diff --git a/components/common/cpp/src/configuration.cpp b/components/common/cpp/src/configuration.cpp index 96044339473e25f3f92093548b0eafcc6c7d65a1..3a0fce37e2ee7c46d26569ed0fd58d3d68c463a6 100644 --- a/components/common/cpp/src/configuration.cpp +++ b/components/common/cpp/src/configuration.cpp @@ -385,20 +385,20 @@ bool ftl::config::update(const std::string &puri, const json_t &value) { string tail = ""; string head = ""; string uri = preprocessURI(puri); - size_t last_hash = uri.find_last_of('#'); - if (last_hash != string::npos) { + //size_t last_hash = uri.find_last_of('/'); + //if (last_hash != string::npos) { size_t last = uri.find_last_of('/'); - if (last != string::npos && last > last_hash) { + //if (last != string::npos && last > last_hash) { tail = uri.substr(last+1); head = uri.substr(0, last); - } else { - tail = uri.substr(last_hash+1); - head = uri.substr(0, last_hash); - } - } else { - LOG(WARNING) << "Expected a # in an update URI: " << uri; - return false; - } + //} else { + // tail = uri.substr(last_hash+1); + // head = uri.substr(0, last_hash); + //} + //} else { + // LOG(WARNING) << "Expected a # in an update URI: " << uri; + // return false; + //} Configurable *cfg = find(head);