Ticket #1591 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

when HTTPS and HTTP present, EclipseTrac insists on using HTTP

Reported by: patrick.bugs@wagstrom.net Assigned to: merlimat
Priority: normal Component: EclipseTracPlugin
Severity: normal Keywords: patch
Cc: Trac Release: 0.10

Description

I have a Trac server set up on a secure host. If someone enters in a URL for the host without the https:// the webserver issues a 302 response with a redirect to the URL over a secure connection.

Thus, if I go to: http://myhost/trac/login/ It will redirect to: https://myhost/trac/login/

I've noticed that when I try to login using the Eclipse Trac plugin, it makes a try to the unsecured host even if the trac server has an https URL. I have verified this by watching network dumps from wireshark and looking at my apache logs, which indicate it is connecting without SSL.

On a side note, my server is handing out HTTP 302 responses, the client should be able to interpret those.

Attachments

EclipseTracSSL.patch (1.0 kB) - added by patrick.bugs@wagstrom.net on 05/31/07 08:28:37.
patch to change from XmlRpcLiteHttpTransportFactory? to XmlRpcSunHttpTransportFactory?

Change History

05/31/07 08:27:51 changed by patrick.bugs@wagstrom.net

  • keywords set to patch.

I did some digging and found out that the issue was with the usage of XmlRpcLiteHttpTransportFactory?, and it's inability to handle the URL situation properly. No matter what it just couldn't run over HTTPS and didn't like getting those HTTP 302 redirects. I patched this to use the XmlRpcSunHttpTransportFactory?, and now it seems to work fine. Tested it on connections to both an SSL and unsecured server.

05/31/07 08:28:37 changed by patrick.bugs@wagstrom.net

  • attachment EclipseTracSSL.patch added.

06/03/07 05:30:42 changed by anonymous

  • owner changed from merlimat to anonymous.
  • status changed from new to assigned.

Thanks, patch applied.

06/03/07 05:31:06 changed by merlimat

  • owner changed from anonymous to merlimat.
  • status changed from assigned to new.

06/03/07 07:21:43 changed by merlimat

  • status changed from new to closed.
  • resolution set to fixed.

Solved in 1.0.4, [2274]


Add/Change #1591 (when HTTPS and HTTP present, EclipseTrac insists on using HTTP)




Change Properties
Action