Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many redirects #47

Closed
westechms opened this issue Aug 14, 2018 · 13 comments
Closed

Too many redirects #47

westechms opened this issue Aug 14, 2018 · 13 comments

Comments

@westechms
Copy link
Contributor Author

westechms commented Aug 14, 2018

From @mortezakermani
I'm having the same issue in DNN 9.2.0.

there are a lot of ?portal=0 parameters in url and site breaks

The last version of Active Directory worked for me is 05.00.02. no other versions work correctly.

@westechms
Copy link
Contributor Author

I have seen this in production rarely. When I do see it, a refresh always makes it go away.

I need as many details as you can possible supply to track down the issue.
What do your config settings look like?
Did you try 5.00.02 on DNN 9.2.0 successfully?
Are you trying to do autologin?

I will do my best to help!

@mortezakermani
Copy link

Yes, version 05.00.02 is works properly on DNN 9.2.0.

attached you can find my settings:

active

@westechms
Copy link
Contributor Author

I think I have it already narrowed down. I suspect that its the auto-login ip address. I am refactoring to allow more situations. Can you try adding an IP range in the autologin ip field that would include the client IP you are using? Please report your results.

If your client IS the web server also (localhost) then there is a Microsoft problem related to that I will address later. But please report if this is the situation also.

@ghkamfung
Copy link

I tried both "Auto-login" and no "Auto-login". Same result.
I tried to debug. It seems it cannot detect the cookie created by previous request/response cycle and keep thinking the user is not login.

Just my 2 cents.

Off topic, can someone share v5.0.0.2 to me?

@ghkamfung
Copy link

ghkamfung commented Aug 15, 2018

I install v5.0.0.6 .

  1. Login successful on first attempt. (My website is http://10.145.2.77, not using domain name yet)
  2. Logout
  3. Re-login using the same user, it fail (top-right hand corner still show "Login" link). The URL become http://10.145.2.77/Default.aspx?tabid=20&error=An%20unexpected%20error%20has%20occurred

@westechms
Copy link
Contributor Author

I have an update coming soon that should get this fixed. It appears the redirect problem will arise if you do not have an IP in the auto-login box. I you add a range such as 1.1.1.1-255.255.255.255 then the redirect problem should go away.

@ghkamfung
Copy link

We add a checking, if "portalid=0" exists in query string, then do not redirect.
It seems to fix the problem.

@mortezakermani
Copy link

Thanks a lot @ghkamfung. may you release a new version in this week?

@westechms
Copy link
Contributor Author

I should have a new version out this week with the fix. Its complete I just need to clean up the code some. @ghkamfung its proper for the url to contain 1 portalid=0 and this will break again on a different portal of the same DNN instance as its portal id will be something other than 0. It should get you by though until I can get this update out.

@sawest
Copy link
Collaborator

sawest commented Aug 20, 2018

@ghkamfund and @mortezakermani Please try the new release 6.1.2 as it should have this bug fixed. Be sure to utilize the new Enable Auto Login setting feature.

@sawest sawest self-assigned this Aug 20, 2018
@ghkamfung
Copy link

v6.1.2 vIt works for us! Thank you very much.

@sawest
Copy link
Collaborator

sawest commented Aug 22, 2018

Excellent. Thanks for the feed back.

@sawest sawest closed this as completed Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants