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

Bug 361174

Summary: Login does not redirect on servers without anonymous read enabled
Product: [ECD] Orion Reporter: John J. Barton <johnjbarton>
Component: ServerAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse, malgorzata.tomczyk, Szymon.Brandys
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description John J. Barton CLA 2011-10-17 14:25:13 EDT
(I wanted to give you a test case on orionhub but it seems down.)

Find a .html file in an orion project
Copy the URL
Log out of Orion
Paste the url in the to location bar of the browser
Delete the characters "edit/edit.html#/" from the URL, enter.
Login to Orion.

Expected: the URL will be visted:
Actual: a login page, even if we are logged in.

I'd tell you what version of the server if I knew how.
Comment 1 John Arthorne CLA 2011-10-17 14:50:21 EDT
It appears to be working fine for me, at least on orionhub. You shouldn't need to login at all to view a file. For example:

http://orionhub.org/file/k/bundles/org.eclipse.orion.client.core/about.html

However this is because orionhub.org enables anonymous read, so maybe this problem depends on your server configuration.
Comment 2 Malgorzata Janczarska CLA 2011-11-24 05:52:14 EST
I disabled anonymous read and I'm not able to reproduce it. Can you check what's the login page URL? It should end with ?redirect=<target url>. This param points where login page should redirect after login. If you don't have it this means it was lost somewhere, if you have it, you login is correct and you'll still not redirected that his means that redirecting doesn't work for some reason.
Comment 3 Anthony Hunter CLA 2014-06-16 12:32:04 EDT
(In reply to John Arthorne from comment #1)
> It appears to be working fine for me, at least on orionhub. You shouldn't
> need to login at all to view a file. For example:
> 
> http://orionhub.org/file/k/bundles/org.eclipse.orion.client.core/about.html
> 
> However this is because orionhub.org enables anonymous read, so maybe this
> problem depends on your server configuration.

Agreed this works fine with or without the anonymous read.