VCenter event connector failing with error -"Connection test failed: RESPONSE STATUS ERROR No: 500"DescriptionThe Event Management vCenter connector breaks login when usernames or passwords contain predefined XML entities ", &, ', <, or >When performing the "Test Connector", below error can be observed. Connection test failed: RESPONSE STATUS ERROR No: 500RESPONSE ERROR : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring>Error returned by expat parser: not well-formed (invalid token)while parsing serialized value of type stringat line 7, column 0while parsing call information for method Loginat line 4, column 0while parsing SOAP bodyat line 3, column 0while parsing SOAP envelopeat line 1, column 0while parsing HTTP request for method loginon object of type vim.SessionManagerat line 1, column 0</faultstring><detail><InvalidRequestFault xmlns="urn:vim25" xsi:type="InvalidRequest"></InvalidRequestFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>RESPONSE STATUS ERROR No: 500RESPONSE ERROR : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring>The session is not authenticated.</faultstring><detail><NotAuthenticatedFault xmlns="urn:vim25" xsi:type="NotAuthenticated"><object type="Folder">group-d1</object><privilegeId>System.View</privilegeId></NotAuthenticatedFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>RESPONSE STATUS ERROR No: 500RESPONSE ERROR : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring>The session is not authenticated.</faultstring><detail><NotAuthenticatedFault xmlns="urn:vim25" xsi:type="NotAuthenticated"><object type="Folder">group-d1</object><privilegeId>System.View</privilegeId></NotAuthenticatedFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope> Steps to Reproduce Connect to the Instance and Navigate to Connector InstanceOpen the VCenter Connector and click on "Test Connector"The system throws an error.WorkaroundThis problem has been fixed. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix.For now, below workaround steps can be considered. Connect to the Instance and navigate to MID Server -> Script Includes -> vCenter_JSScroll down to authToken: function () - Line no 368 [If not customized/updated recently]Replace the lines that start with: var username & var password with the following code: var StringUtil = Packages.com.glide.util.StringUtil;var username = StringUtil.escapeHTML(this.probe.getParameter("username") || "");var password = StringUtil.escapeHTML(this.probe.getParameter("password") || ""); Save the script include and click on "Test Connector". It will connect successfully. Related Problem: PRB1400358