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

WebUI doesn't work properly #11069

Open
Vladius25 opened this issue Aug 13, 2019 · 20 comments

Comments

@Vladius25
Copy link

commented Aug 13, 2019

qBittorrent version and Operating System

qbittorrent 4.1.5
Fedora 30 with kernel 5.2.7-200.fc30.x86_64

If on linux, libtorrent and Qt version

libtorrent 0.13.7
qt 5.12.4

What is the problem

JS scripts dont't work: impossible to do anything with WebUI.

What is the expected behavior

WebUI works as client app.

Steps to reproduce

Go on the WebUI.

Extra info(if any)

Caught on fresh versions of chrome, firefox, safari.
qbit

@thalieht thalieht added the WebUI label Aug 13, 2019

@glassez

This comment has been minimized.

Copy link
Member

commented Aug 13, 2019

@Piccirello, can you take a look into it?

@Piccirello

This comment has been minimized.

Copy link
Contributor

commented Aug 13, 2019

@Vladius25 when did this issue start occurring? Do you have access to the qbittorrent GUI or is your install webui only?

@Vladius25

This comment has been minimized.

Copy link
Author

commented Aug 13, 2019

Sorry, I couldn’t say for sure when it started. Yes, I have access to GUI.

@Piccirello

This comment has been minimized.

Copy link
Contributor

commented Aug 13, 2019

Can you post a screenshot of your webui settings? Please try to include all settings, even if it’s multiple screenshots.

@Vladius25

This comment has been minimized.

Copy link
Author

commented Aug 14, 2019

1
2
3

@Vladius25 Vladius25 changed the title WebUI don't work properly WebUI doesn't work properly Aug 14, 2019

@Piccirello

This comment has been minimized.

Copy link
Contributor

commented Aug 14, 2019

Try disabling host header validation and test it again. If that doesn't work, also disable CSRF and then test that.

@glassez

This comment has been minimized.

Copy link
Member

commented Aug 14, 2019

Maybe try to test it with clean browser profile or even with another browser? There are no similar issues...

@Piccirello

This comment has been minimized.

Copy link
Contributor

commented Aug 14, 2019

There are no similar issues...

There are several issues about assets being sent with the wrong mimetype. like #10756

@glassez

This comment has been minimized.

Copy link
Member

commented Aug 14, 2019

assets being sent with the wrong mimetype

Could 3f8f9a3 fix this issue?

@Vladius25

This comment has been minimized.

Copy link
Author

commented Aug 14, 2019

Try disabling host header validation and test it again. If that doesn't work, also disable CSRF and then test that.

I tried that, but without success.

Maybe try to test it with clean browser profile or even with another browser? There are no similar issues...

I also tried to test with new browser (icecat). There is still a problem, but i got fewer errors (regardless of security options).

icecat

@Piccirello

This comment has been minimized.

Copy link
Contributor

commented Aug 14, 2019

Could 3f8f9a3 fix this issue?

I don't believe so. There are errors on files that weren't being loaded by preferences.html.

There is still a problem, but i got fewer errors (regardless of security options).

It looks like it's still printing the same errors but icecat logs them as a warning.

Try with the hostname localhost instead of 127.0.0.1. Also try enabling https.

@Vladius25

This comment has been minimized.

Copy link
Author

commented Aug 14, 2019

Unfortunately, this doesn't help.
https

@Piccirello

This comment has been minimized.

Copy link
Contributor

commented Aug 14, 2019

Are you perhaps running any antivirus software? Maybe try changing the port too. Honestly I'm running out of ideas.

@Vladius25

This comment has been minimized.

Copy link
Author

commented Aug 14, 2019

I haven't any antivirus software. I only have selinux, but i tried to disable it. WebUI works perfectly on my windows machine. Maybe fedora maintainer has a problem? I will try to build qBittorrent from source later.

@Piccirello

This comment has been minimized.

Copy link
Contributor

commented Aug 14, 2019

You can checkout master locally and then build it in docker with this Dockerfile.

@glassez

This comment has been minimized.

Copy link
Member

commented Aug 14, 2019

Honestly I'm running out of ideas.

qBittorrent assigns mime types using QMimeDatabase. Maybe it determines mime types incorrectly in some particular Qt version(s)?

@Chocobo1

This comment has been minimized.

Copy link
Member

commented Aug 14, 2019

Maybe it determines mime types incorrectly in some particular Qt version(s)?

Probably. I'm using Qt 5.13 on linux and all html files under views folder would use the incorrect application/xhtml+xml type. It has been going like that for a long time, however it doesn't really harm WebUI usability in my case.

EDIT: Related issue: https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/98

@Piccirello

This comment has been minimized.

Copy link
Contributor

commented Aug 14, 2019

qBittorrent assigns mime types using QMimeDatabase

When reviewing our code I missed the part where this was done for translated files. That would make sense though since this only seems to occur when translations are used.

@Chocobo1 it looks like #11075 might fix this?

@Chocobo1

This comment has been minimized.

Copy link
Member

commented Aug 14, 2019

@Chocobo1 it looks like #11075 might fix this?

It is not related to this issue.

@Vladius25

This comment has been minimized.

Copy link
Author

commented Aug 14, 2019

You can checkout master locally and then build it in docker with this Dockerfile.

Yes, it works. What's more interesting that it also works on clean fedora installation. Looks like the problem is definitely mine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.