https url not supported for tfs event workflow

Mar 16, 2016 at 9:31 AM
Edited Mar 16, 2016 at 9:31 AM
When the tfs server url address fully switched to https address, the workflow get error as shown below:
016-03-10 10:41:19.000 ERROR [020756961871907] [dation Task Thread TaskPool 13] TFSEventWorkflowsServerPlugin.WorkflowRunner | Loading error: Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException: HTTP code 303: See Other
at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.ReadResponse(HttpWebResponse webResponse, WebException webException)
at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.IsAuthenticationChallenge(TfsMessage requestMessage, HttpWebResponse webResponse, WebException webException, TfsMessage& responseMessage)
at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest()
at Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout)
at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs)
at Microsoft.TeamFoundation.Framework.Client.LocationWebService.Connect(Int32 connectOptions, Int32 lastChangeId, Int32 features)
at Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.Connect(ConnectOptions connectOptions)
at Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.EnsureConnected(ConnectOptions optionsNeeded)
at Microsoft.TeamFoundation.Framework.Client.FrameworkServerDataProvider.get_CatalogResourceId()
at Microsoft.TeamFoundation.Client.TfsConfigurationServer.get_CatalogNode()
at artiso.TFSEventWorkflows.TFSEventWorkflowsServerPlugin.WorkflowRunner.GetTFSEventConfigFromTfs(IVssRequestContext requestContextCollection)

Is there a fix for this? Thanks.
Coordinator
Apr 4, 2016 at 8:28 PM
Edited Apr 7, 2016 at 12:36 PM
LohChong, thx for this comment. Indeed I found one line of code using the NetBios name and not the FQDN for an internal request to TFS itself and for this the certificate is not valid. So if you really want to use HTTPS internally, currently TFS Event Workflows will not work. A quick workaround is the usage of HTTP in the intranet and HTTPS only for internet requests (reverse proxying/path rewrite on the firewall).
Let me know if this is applicable in your scenario.