Error when calling phpmyadmin with Firefox on 1 domain

Richard G

Verified User
Joined
Jul 6, 2008
Messages
13,850
Location
Maastricht
Error calling phpmyadmin with Firefox on punycode domains

I got an issue when one of my clients is trying to call his phpmyadmin like this:
http://www.külschrank.de/phpmyadmin (domain is masked but it is indeed German zo with the ü in it).

Now both in Firefox and Internet Explorer the login screen appears, so far so good.
But with Internet Explorer after filling in the username and password (either the users DA credentials or the database credentials), the login goes fine and the phpmyadmin page appears.

When I do the same with Firefox, after clicking login, nothing of Firefox is to be seen, in both columns only this text appears:
Geblokkeerd door inhoudbeveiligingsbeleid

Deze pagina heeft een inhoudbeveiligingsbeleid dat embedding op deze manier voorkomt.

Firefox heeft voorkomen dat de pagina op deze manier werd geladen, omdat de pagina een inhoudbeveiligingsbeleid heeft dat dit niet toestaat.

This is the Dutch Firefox, the English translation is like this:
Blocked by security zone policy
Roughly translated the rest says that "this page had a content security policy which prevents embedding this way" and that
"Firefox prevented the page to be loaded this way, because the page has a content security policy which does not allow this".

This is a Directmin server, fully up2date with mod_ruid2 and the strange part is that this ONLY happens on this domain.

This is what the domain logfile says (I masked my ip and the domainname).
84.26.xx.xx - - [15/Dec/2012:01:30:57 +0100] "GET /phpmyadmin/js/update-location.js?ts=13530xxxx HTTP/1.1" 304 209 "http://www.xn--khlschrank-jzb.de/phpmyadmin/" "Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0"

So it's giving a 304 but with Internet Explorer there is no problem logging in.
Also when trying to login this way on any other domain on the server, I can login to any database I want with the correct credentials.

Do I start from the domain with the error, I can't get in any phpmyadmin, It only shows me that error page.

What is going on here? What is causing this? It's not Firefox, because this is working on other domains without problems and it's a default Firefox.

So there must be something wrong on the users account or site I don't know.
Tested also without a .htaccess on the users public_html, which did not help either.

How can I fix this?
 
Last edited:
I just tested something.
It looks like it's an incompatibility bug which only affects some browsers.

This problem happens on ALL domains with "umlaut" in them like:
www.kühlschrank.de which has to be setup like /home/user/xn--khlschrank-jzb.de/public_html

Also when using other German domains, the same problem occurs and only occurs with Firefox, not with Internet Explorer (I did not test other browsers).
I can't figure out why Firefox will get a 304 and Internet Explorer does not have any problems.

The problem also only occurs when called from those German domains with umlaut.
When I use http://www.mycompany.com/phpmyadmin and use the login credentials from the German domain's credentials, then phpmyadmin will be loaded without any problems in Firefox.

So there must be an incompatibility when called from the domain itself.
It looks like Firefox does not convert the domain correctly.

See the attach picture and watch the difference in domainname called pointed to by the arrows:

problem.png
 
Last edited:
I already have the newest Firefox, so I can't update it.
You also can't do anything with the real domain, because just visiting the site or the login page will give no problems.
As I wrote in my first post, the problem occurs after login in to phpmyadmin (so when the phpmyadmin page with the database should appear). You understand that I can't give you the clients credentials.

So I'm afraid only DA support can help me with this, or maybe I can make a test database on the clients account and send you the credentials of that. But you will only see the same error page I see, only maybe in your own Firefox language.
 
It appears to me that the issue, then, is with Firefox. Hopefully a php programmer will reply with ideas, I could easily be wrong.

Jeff
 
That was my first thought too. But when it was a Firefox issue, I would not be able to get to that same database via the phpmyadmin link of another domain on the server.

Sellerone tested for me and found out the following (I masked the domain name and tokens a bit):

ive tested you're issue and i did this.

Once logged with FF and IE, i did copied the IE url of just one page and pasted to FF, and it work:
http://www.kühlschrankxxx.de/phpmyadmin/main.php?token=ab32c47cc91dcf3b152fxxxxxxxx

Apparently the internal page load try to load this url: www.xn--khlschrankxxx-jzb.de while IE keep the original domain name.

Im thinking about somehow DNS/Apache config issue/bug cause if i open www.xn--khlschrankxxx-jzb.de FF it work, www.xn--khlschrankxxx-jzb.de/phpmyadmin doesnt work and http://www.kühlschrankxxx.de/phpmyadmin/main.php?token=ab32c47cc91dcf3b152fcdxxxxxxxx
 
Jeff: You still might be right, it could be something in the way Firefox is handling IDN and punycode.

I got too curious and installed Chrome to see if Chrome would have a problem, and that is not the case.
So IE and Chrome do not have a problem, it looks only firefox has this problem.
 
Back
Top