Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 203545

Summary: determine redirect policy
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P3 CC: alex.blewitt, robert.elves
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 221162, 248154, 352198    
Bug Blocks:    

Description Steffen Pingel CLA 2007-09-16 16:04:09 EDT
JIRA currently follows redirects when logging in to the repository. Trac and Bugzilla do not.

We should come up with a unified policy and provide the necessary API. Here is my suggestion:

- only follow redirects on repository validation and prompt the user when the provided location does not match repository location (see bug 186379)
- when redirect occurs while synchronizing queries etc. provide a meaningful error message that points at the repository settings dialog (similar to the failed login message)

This might be out of scope but we should consider adding a generic facility to allow user interaction during repository access:

- prompt user for password when login fails (which would also allow the user not to save the password)
- show warning when accepting unverified certificate
- show warning if repository requires redirect to new location
- warn if http is used although https is specified
Comment 1 Steffen Pingel CLA 2008-12-09 21:56:29 EST
Rob, what are your thoughts on this?
Comment 2 Robert Elves CLA 2008-12-12 13:33:01 EST
+1 I like what you've done with JIRA and if we have common api for all connectors to present the dialog to select/authorize the redirection (and update the repository settings with the new url) I think this would be ideal.
Comment 3 Alex Blewitt CLA 2011-08-15 09:16:02 EDT
For the authenticated JIRA case, the redirect is actually the wrong question to ask. Sometimes the server is behind a proxy (and thus is configured to appear as something else) whereas you really always want to keep the URL that you have put in place. This dialog is frankly annoying in JIRA and just gets in the way - not only that, it means that if you have configured it properly, you present users with the option of choosing the wrong answer.
Comment 4 Steffen Pingel CLA 2011-08-15 10:22:43 EDT
Thanks for your input. The JIRA connector is now maintained by Atlassian. I would recommend posting in their support forums if you are in favor of removing the prompt.

We'll keep your suggestions in mind. In either case, I assume that we will choose a less invasive way to handle redirects if we generalize that in the framework.
Comment 5 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn