-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Theme: IPv6 connection #649
Comments
I don't think how it could be the theme issue. I will try to reproduce it and get back to you a bit later. |
I want to add that if the site is accessed via a domain (while still using ipv6), it seems to work correctly, which makes this even weirder. So this only happens if the server is connected directly with an ipv6 address instead of domain. |
While I will debug it a bit later I have no idea how and why it would be related to the theme. Are you sure that it doesn't work in old themes? System Information Page in old themes is different but uses the same mechanism. Make sure that percent signs are also present when you switch themes. |
What are the errors in the console? |
This is the only one: |
Did you try Chrome, out of curiosity? Did you try Incognito Mode? |
Tried! Same result. |
Are you using proxy? |
Not on my computer or network. Via IPv6 the connection to the server goes directly to webmin, but for IPv4 it goes via an nginx reverse proxy, which forwards the request to Webmin's IPv6 address. This set up works correctly however. It does not matter if the request comes from IPv6 or not, it only happens when both no domain name was used and the connection was on IPv6. (When the URL host is an IPv6 address.) |
I would need your setup to reproduce the problem. |
Nope, you can completely ignore the nginx setup because it is only for v4 compatability, which I normally don't use. Otherwise this setup is completely stock. Do you lack IPv6 for testing? Otherwise, what do you lack to be unable to reproduce? |
Any news? |
I can't reproduce the problem yet. |
Yeah, but why? Is there any specific reason? |
I was working a lot of time on different parts of the theme. I will come back to your issue a bit later. |
Okay, thanks! |
I don't see the ports in your error message above, are you running behind proxy? |
It doesn't show any ports because Webmin is running on default https port (443). |
Just noticed something in the address in the error message |
What is the output of You made |
I'm not sure if I know what you mean, but here's the output.
Here's also miniserv.conf
|
I still have a feeling that it's not the theme related. At first glance, why do you have What happens if you try to access your page using:
|
If I type |
What if you set the port to 1234 for example and try using:
|
It just gives me the same error in console (with the extra port number specified). Here's one line: |
I think I know what could be causing it. The cause of the issue could be the browser's extensions. Try either incognito mode, or for instance, Chrome to double check. I remember there were issues like this, that were caused by browser's extensions (Add-ons). |
It's not. |
Tried Firefox incognito mode, I suppose? |
Firefox in incognito mode loads all the addons I have (cuz settings lol), but yeah I've tried it. I've also tried it in Chrome stock. Same result in all browsers. |
I have logged it as IPv6. Yes, there are problems on |
However, I must admit that everything works great over IPv6 when not using proxy and connecting directly. Your connection is proxied most likely. |
I have made some testing and sure now that it was noting to do with the theme. Please read: webmin/webmin#505 |
Why do you keep ignoring me when I tell you the connection is NOT via a proxy. I have told you this more than once now. Look at the response headers:
If you look in the |
To eliminate any suspicion towards SSL, I tried to disable that, but I got the same result. I honestly cannot see how this could be a problem with my setup. It might very well be a problem with Webmin and not the theme though, but as this only happens when using Authentic Theme I thought the best place to put the issue was here. |
Oh, man. I didn't expect that. After signing in using IPv6 address only (without domain) I could reproduce all that you're saying for all XHR calls. (like dashboard and theme configuration, and other). Very surprising. I'll work on it now as I see the problem.. |
I got the reason why. Fixing it... |
That's great! Was it related to the theme only or Webmin as a whole? |
It was related to the bugged library for parsing URLs..
I didn't expect that happeing.. You can run Thank you very much for reporting. It's not related to the proxy, you're right!! |
Oh yeah that's really weird! Thanks for looking into it and I'm glad I could help. :) |
Please give it a try. It's checked. |
I'm really glad to get rid of that old library. It should work now. Please report here if you find any bugs! |
Did you upload the webmin theme file or do I have to clone the repo? |
Just clone it. |
Works great now! Thanks :D |
You're welcome. |
REPOST: I think you misunderstood me in the previous thread. What I meant to say was when I switched to Gray theme and back to Authentic I got the same error. Everything seems to work fine with the default Gray theme.
It seems like when it is hosted on ipv6 some parts of the theme just stops working:
*On the dashboard the status numbers (cpu usage, disk usage and all those) just don't show up (https://puu.sh/tno00/e8fe886053.png)
*The theme settings manager doesn't show. (https://puu.sh/tnono/37a375dc23.png)
This only happens when I'm connected to webmin via IPv6*. This is a fresh install so I'm pretty sure this isn't a configuration error on my end.
*Debian 8
*Firefox 50.1
*Host a server on IPv6 to reproduce and connect with IPv6, without using a domain name.
EDIT: *This only happens when both a domain name is not used and the address is IPv6. (When the URL host is an IPv6 address).
The text was updated successfully, but these errors were encountered: