Kissaki / MumPI

A Webinterface for Mumble Server. Written in PHP, using Ice middleware.
http://kissaki.github.io/MumPI/
Other
105 stars 30 forks source link

ChannelViewer doesn't put the mumble links since 2.2.6 #53

Closed nicolasjoly closed 8 years ago

nicolasjoly commented 8 years ago

I had to revert back one line in ChannelViewerProtocolProducer.php so the links would work again. The commented line is the new one and the one above it is the old one.

$connecturlTemplate = 'mumble://MYIP:64738' . urlencode(SettingsManager::getInstance()->getServerAddress($server->getId())) . '%s?version=1.2.8';
//$connecturlTemplate = $serverConnectAddress != null ? 'mumble://%s?version=1.2.0' : null;
Kissaki commented 8 years ago

I noticed they do not work for me, but thought it was because of some special characters. I guess I will have to look into this again.

The links worked for you with the previous version?

nicolasjoly commented 8 years ago

Yes and by changing "connecturlTemplate" back to it's original values (getting the line from 2.2.5 and putting it in 2.2.6), it works again.

Kissaki commented 8 years ago
$connecturlTemplate = 'mumble://MYIP:64738' . urlencode(SettingsManager::getInstance()->getServerAddress($server->getId())) . '%s?version=1.2.8';

does not really make sense though.

That will produce an URL with IP and port, but the port is not a valid port. It does not produce valid urls for me at all.

I guess you do not have $viewer_serverAddresses configured for the server?

The version as it is works for me with trivial alphanumeric channel names. Ones with a space do not work currently. But I can not see the issue or solution you describe.

nicolasjoly commented 8 years ago

With my change, the URL seems fine. I can click it and it will connect to my server no problem. Here's what it looks like in your JSON that I'm using:

"x_connecturl":"mumble:\/\/111.111.111.111:64738?version=1.2.12"

Kissaki commented 8 years ago

Do you have $viewer_serverAddresses configured in settings.inc.php?

Kissaki commented 8 years ago

Close as no further input/response. Works for me, unreproducible, implausible fix description.

Kissaki commented 8 years ago

The mentioned space character issue is/was tracked in #56 (fixed in 6767d5a692cde822827b16f683144d00c74d14b7).