Skip to content

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

@AyrA

Description

@AyrA

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed as a valid bug and requires fix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions