Modify

Opened 7 years ago

Closed 7 years ago

#1591 closed defect (fixed)

when HTTPS and HTTP present, EclipseTrac insists on using HTTP

Reported by: patrick.bugs@… Owned by: 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 (1)

EclipseTracSSL.patch (1017 bytes) - added by patrick.bugs@… 7 years ago.
patch to change from XmlRpcLiteHttpTransportFactory to XmlRpcSunHttpTransportFactory

Download all attachments as: .zip

Change History (5)

comment:1 Changed 7 years ago by patrick.bugs@…

  • Keywords patch added

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.

Changed 7 years ago by patrick.bugs@…

patch to change from XmlRpcLiteHttpTransportFactory to XmlRpcSunHttpTransportFactory

comment:2 Changed 7 years ago by anonymous

  • Owner changed from merlimat to anonymous
  • Status changed from new to assigned

Thanks, patch applied.

comment:3 Changed 7 years ago by merlimat

  • Owner changed from anonymous to merlimat
  • Status changed from assigned to new

comment:4 Changed 7 years ago by merlimat

  • Resolution set to fixed
  • Status changed from new to closed

Solved in 1.0.4, [2274]

Add Comment

Modify Ticket

Action
as closed The owner will remain merlimat.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.