From 5e4a3eb1816bafd52b15bafb3fc74000c659a265 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 2 Jul 2012 12:57:53 +0200 Subject: [PATCH] Don't allow __local property for replicated objects. --- components/configrpc/configrpccomponent.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/configrpc/configrpccomponent.cpp b/components/configrpc/configrpccomponent.cpp index 287162c50..7ac576676 100644 --- a/components/configrpc/configrpccomponent.cpp +++ b/components/configrpc/configrpccomponent.cpp @@ -162,6 +162,9 @@ void ConfigRpcComponent::RemoteObjectCommittedHandler(const RequestMessage& requ else object->SetProperties(properties.GetDictionary()); + if (object->IsLocal()) + throw invalid_argument("Replicated remote object is marked as local."); + object->Commit(); } -- 2.40.0