Problem Description:
Attempting to modify port bindings (Eg. adding RCON port) throws exception NullReferenceException.
Using Debian 10 as the management instance and Windows 10 as an target instance.
20:28:17
Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of Backbite
20:28:27
Managed remote instance VRising01 at http://192.168.1.178:8081/
Authentication token for Backbite requested by ManageInstance on behalf of Backbite
20:28:49
Returned exception from API call ADSModule/ModifyCustomFirewallRule
NullReferenceException
[0] (NullReferenceException) : Object reference not set to an instance of an object
at ADSModule.WebMethods.ModifyCustomFirewallRule (Guid instanceId, Int32 PortNumber, Int32 Range, ModuleShared.PortProtocol Protocol, String Description, Boolean Open) at GSMyAdmin.WebServer.WebAttributes.InvokeMethod (String MethodName, Newtonsoft.Json.Linq.JObject Data, m.Http.IHttpRequest request, ModuleShared.IWebSession Session, ModuleShared.WebMethodsBase MethodsClass, String RawRequest) at GSMyAdmin.WebServer.APIService.InvokeAPI (m.Http.IHttpRequest request, ModuleShared.IWebSession Session, Newtonsoft.Json.Linq.JObject Data, String RequestModule, String RequestMethod, String RawRequest)
20:30:53
Returned exception from API call ADSModule/ModifyCustomFirewallRule
NullReferenceException
[0] (NullReferenceException) : Object reference not set to an instance of an object
at ADSModule.WebMethods.ModifyCustomFirewallRule (Guid instanceId, Int32 PortNumber, Int32 Range, ModuleShared.PortProtocol Protocol, String Description, Boolean Open) at GSMyAdmin.WebServer.WebAttributes.InvokeMethod (String MethodName, Newtonsoft.Json.Linq.JObject Data, m.Http.IHttpRequest request, ModuleShared.IWebSession Session, ModuleShared.WebMethodsBase MethodsClass, String RawRequest) at GSMyAdmin.WebServer.APIService.InvokeAPI (m.Http.IHttpRequest request, ModuleShared.IWebSession Session, Newtonsoft.Json.Linq.JObject Data, String RequestModule, String RequestMethod, String RawRequest)
Steps to reproduce:
Step 1 - Right click server instance
Step 2 - Edit port bindings
Step 3 - Enter data for new port
Step 4 - Click the plus to add the rule
Actions taken to resolve so far:
Going directly to the instance and adding the port mapping works.
It’s a known issue that controllers can’t change the settings of instances on remote targets right now, for the time being you need to log into the target to change ports/settings/etc.