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

Channel viewer fails if the query can't subscribe to a channel #157

Open
AyrA opened this issue Jan 23, 2021 · 1 comment
Open

Channel viewer fails if the query can't subscribe to a channel #157

AyrA opened this issue Jan 23, 2021 · 1 comment
Labels
bug Confirmed as a valid bug and requires fix.

Comments

@AyrA
Copy link

AyrA commented Jan 23, 2021

Description

My server has a few channels where guests can neither join nor see users inside of them because they lack permissions to join the channel and to subscribe to it. This seems to really throw off the Text and HTML generator.

How to trigger

  1. Create a channel where a user lacks permissions to subscribe
  2. Create server query parameters from said users
  3. Connect to the server using the given query parameters
  4. Trigger with $viewer=new TeamSpeak3_Viewer_Text();echo $server->getViewer($viewer);

$server is a connected TS3 library instance.

Expected outcome

Channels without subscription power are skipped in a similar way that the regular TS3 client does.

Actual outcome

PHP Crash

Key Value
Type TeamSpeak3_Adapter_ServerQuery_Exception
Message insufficient client permissions (failed on i_channel_subscribe_power)
Code 0x00000A08
Location Reply.php (Line: 316)

Trace:

Reply.php(88) fetchError(object)
ServerQuery.php(140) __construct(array,string,object,boolean)
Abstract.php(70) request(string,boolean)
Server.php(87) request(string,boolean)
Server.php(647) request(string)
Channel.php(118) clientList()
Channel.php(514) clientList()
Abstract.php(462) fetchNodeList()
Abstract.php(479) verifyNodeList()
Abstract.php(511) count()
Abstract.php(195) hasChildren()
channel-api.php(20) getViewer(object)

@ronindesign ronindesign added the bug Confirmed as a valid bug and requires fix. label Aug 3, 2023
@ronindesign
Copy link
Collaborator

This seems to be a bug with how permission/subscription is handled. Leaving open for now, but no fix is currently under development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed as a valid bug and requires fix.
Projects
None yet
Development

No branches or pull requests

2 participants