[SOLVED] Unable to login with Internet Explorer (Firefox Works)

thebrandons

Joined: 2008-11-08
Posts: 28
Posted: Thu, 2009-10-29 15:34

When I try to login using Internet Explorer 6.x or 8.x I get the "Dang" screen. If I make the gallery permission for everyone I see my albums but still fail to login (Note: "Dang" screen is not displayed). I tried different users/physical locations/versions of Explorer, but could never login (Please Help).

Firefox works great and now that bug 812 is fixed I was really happy.

Also note I performed a "git pull" yesterday to fix bug 812 so I am up to date.

Some extra information:
If login with <valid_user> <wrong_password> -> Gallery says invalid user
If login with <valid_user> <valid_password> -> Gallery says nothing but I am not logged in

Thanks,
Kevin

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-10-29 16:18

I can log in with IE6 just fine.

Do another git pull, there have been changes since yesterday. Clear your browsers cache, etc. Is there anything in your /var/logs?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
thebrandons

Joined: 2008-11-08
Posts: 28
Posted: Fri, 2009-10-30 02:47

Problem still remains after git pull and IE6/IE8 cache flush. The /var/logs do get pretty upset when I attempt the IE login (See below). I also have the problem with the Konqueror browser in Ubuntu. Could it have something to do with how authentication/encryption takes place. Since you do not see the issue maybe it is somehow related to my Apache setup. I can set up a user for you guys if you need to see the "Dang" message happen in IE but not Firefox.

Again if gallery has everyone permission I still cannot login, but the "DANG" message is gone. Consequently there will be no corresponding entry in the logs.

Gallery Log File snippet of IE login attempt:
2009-10-29 20:58:52 -05:00 --- error: Uncaught Exception: @todo FORBIDDEN in file modules/gallery/helpers/access.php on line 189
2009-10-29 20:58:52 -05:00 --- error: #0 /var/www/website/gallery/modules/gallery/helpers/access.php(390): access_Core::forbidden()
#1 /var/www/website/gallery/modules/gallery/controllers/login.php(47): access_Core::verify_csrf()
#2 [internal function]: Login_Controller->auth_html()
#3 /var/www/website/gallery/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Login_Controller), Array)
#4 [internal function]: Kohana::instance()
#5 /var/www/website/gallery/system/core/Event.php(209): call_user_func(Array)
#6 /var/www/website/gallery/system/core/Bootstrap.php(55): Event::run('system.execute')
#7 /var/www/website/gallery/index.php(86): require('/var/www/websi...')
#8 {main}

Thanks,

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-10-30 12:37
Quote:
I can set up a user for you guys if you need to see the "Dang" message happen in IE but not Firefox.

Sure, you can PM login credentials to me, just click Write to author.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-10-30 17:12

I'm working on creating a ticket. Can you test one thing. Instead of restricting Everybody. Can you change permissions so Everybody can view, then click Login in the upper-right corner. Do you still get a DANG page when trying to login with IE6?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
thebrandons

Joined: 2008-11-08
Posts: 28
Posted: Sat, 2009-10-31 15:09

Thanks for the quick investigation. Having "Everyone" have view permission played a big role in bug 812 as well. I tried your experiment on IE and I still could not login, but the "DANG" message was not present. In addition the admin->Users page indicated that a successful login did occur.

I am giving you admin privileges to my gallery in case it would help the process. If you make use of it just try to put things back after testing.

Also why don't others see this login issue on IE? This begs the question what is different about my situation. Note my Pictures/Albumns all have spaces in the names which has caused multiple issues. Other than that I am using my own Apache web server and the configuration should be typical.

Thanks,

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sun, 2009-11-01 16:26

Sorry I wasn't able to get in there yesterday and test, Halloween and all.

I'm able to log into my G3 install with IE6 without problems. I did finally notice that when trying to login with IE 6 the status bar is trying to load data from an IP address on port 81. While logging in from Firefox it's just trying to load data from that IP address. When I try to log into my G3 installs it displays the domain name, not the IP address.

I don't know why IE6 is choking. AHHHH. I just checked with IE8 and it can't log in either. It does give a bit more information. For some reason it's blocking the cookies.

"Could not find a privacy policy for http://YOUR_IP:81/gallery/. To view this site's privacy policy, contact the Web site directly."

Then there are options to allow that site to use cookies. Although, allowing that URL still didn't work. In IE8, I ended up having to go to Tools > Internet Options > Privacy (tab) > Advanced (button) and override the automatic cookie handling to allow First-party Cookies, Third-party Cookies and always allow session cookies.

That seemed to get me logged in. I haven't checked where or what settings for IE6 but I'm sure it's a cookie problem there as well. Which possibly could get solved by modifying a configuration for how your site is setup.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sun, 2009-11-01 16:27

Or get everyone to install Firefox. It runs along side IE just fine :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
thebrandons

Joined: 2008-11-08
Posts: 28
Posted: Mon, 2009-11-02 03:09

Wow that was some good investigative work. Your clues pointed me to the problem but I don't have a good solution. Basically my website is hosted on port 81 because my ISP blocks port 80. My DNS provider has a feature to redirect www.mysite.com requests to www.mysite.com:81. As someone navigates my website the URLs become things like <Actual IP Address>:81/gallery.

The problem seems to be IE rejects cookies when the URL is <IP> but the name is www.mysite.com. I think this only occurs on the login screen were the URL is www.mysite.com but the login link is "<IP>:81/gallery/index.php/login/ajax". I altered my DNS provider so it always redirects to <IP>:81 without creating a frame to maintain the URL name (Works!). I would prefer the URL to be ww.mysite.com:81, but that may not be possible.

I believe the URL redirect is a common trick as ISPs all seem to be blocking port 80.

Lastly could you tell me how you found the security log message file from IE?

Thanks,

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-11-02 03:12

I don't know if they are in IE6, but IE8 has a little icon in the status bar at the bottom of the screen that pops in there if there is a problem with cookies.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here