Splamy / TS3AudioBot

Advanced Musicbot for Teamspeak 3
https://splamy.de/TSAudioBot/Home
Open Software License 3.0
700 stars 139 forks source link

Rights doesn't work #1049

Closed Duster-Cule closed 10 months ago

Duster-Cule commented 10 months ago

Describe the bug I have edited the rights.toml file, making my useruid have the primission of admin, but it doesn't work, In the web interface I can do many operations such as turning on/off the bot, setting and moving but playing songs.

When I add links of song the network record in chrome says there's a get request for http://XX.XX.XX.XX:58913/api/bot/use/0/(/data/song/cover/get) returning 403 Forbidden In the same time server console says

23:23:19.3736| WARN|Api| permissions_client_insufficient: the command failed to execute: insufficient client permissions (missing permission:b_client_modify_own_description)
23:23:19.4578| INFO|Api| ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume))
23:23:19.5695| INFO|Api| ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/data/song/cover/get)
23:23:19.8521| INFO|0| Song queue ended: No next song could be played.
23:23:19.8538| WARN|0| permissions_client_insufficient: the command failed to execute: insufficient client permissions (missing permission:b_client_modify_own_description)

To Reproduce In first launching there was all ok, and I create default rights file with admin useruid accroding to the tips. But when run it again it didn't work, I can't play songs as the above situation.(Even I didn't edit rights.toml)

Version Version: 0.12.0 Branch: master CommitHash: 768c186742bff87ea2c13a02f5fe1da5462ceb97

Platform CentOS 7.9

Log

2024-01-12 23:05:26.1115| INFO|Core|Setup.LogHeader [============ TS3AudioBot started =============]
2024-01-12 23:05:26.1774| INFO|Core|Setup.LogHeader [ Date: Friday, 12 January 2024 23:05:26
2024-01-12 23:05:26.2896| INFO|Core|Setup.LogHeader [ Version: 0.12.0/master/768c1867
2024-01-12 23:05:26.2901| INFO|Core|Setup.LogHeader [ Build: Release
2024-01-12 23:05:26.2901| INFO|Core|Setup.LogHeader [ Platform: CentOS Linux 7 (Core) (64bit)
2024-01-12 23:05:26.2901| INFO|Core|Setup.LogHeader [ Runtime: .NET Framework 3.1.13 ServerGC:True GC:SustainedLowLatency
2024-01-12 23:05:26.2910| INFO|Core|Setup.LogHeader [ Opus: libopus 1.0.2 (x64)
2024-01-12 23:05:26.2910| INFO|Core|Setup.LogHeader [==============================================]
2024-01-12 23:05:26.8044| INFO|Core|WebServer.StartWebServerInternal Starting Webserver on port 58913
2024-01-12 23:05:26.9787| INFO|Core|Bot.Run Bot "default" connecting to "127.0.0.1:9987"
2024-01-12 23:05:27.4296| INFO|Core|Ts3Client.ConnectClient Client connected.
2024-01-12 23:05:40.3975| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/list
2024-01-12 23:05:41.5681| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:05:41.5681| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume))
2024-01-12 23:05:42.2087| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/volume/50)/(/volume))
2024-01-12 23:05:43.3244| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/add/xHa7PoPuWKWvGYgUMMqWKLCfHkY%3D%3AlhpOQ15XoVqxKixJZtwKIxVLV6AhCsHQ)
2024-01-12 23:05:43.4787| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume))
2024-01-12 23:05:46.5577| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:05:47.2237| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/add/http%3A%2F%2Fmusic.163.com%2Fsong%2Fmedia%2Fouter%2Furl%3Fid%3D354750.mp3)
2024-01-12 23:05:47.9388| WARN|Api|Util.UnwrapToLog permissions_client_insufficient: the command failed to execute: insufficient client permissions (missing permission:b_client_modify_own_description)
2024-01-12 23:05:48.0484| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume))
2024-01-12 23:05:48.1576| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/data/song/cover/get)
2024-01-12 23:05:48.4404| INFO|0|PlayManager.StopInternal Song queue ended: No next song could be played.
2024-01-12 23:05:48.4471| WARN|0|Util.UnwrapToLog permissions_client_insufficient: the command failed to execute: insufficient client permissions (missing permission:b_client_modify_own_description)
2024-01-12 23:05:50.1660| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume))
2024-01-12 23:05:51.5548| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:05:52.1652| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume))
2024-01-12 23:05:55.1767| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume))
2024-01-12 23:05:56.5559| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:05:57.1446| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/bot/move/2)
2024-01-12 23:05:57.2572| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:06:00.6159| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/bot/move/1)
2024-01-12 23:06:00.7080| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:06:06.6391| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:23:15.7041| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:23:19.0350| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/add/http%3A%2F%2Fmusic.163.com%2Fsong%2Fmedia%2Fouter%2Furl%3Fid%3D354750.mp3)
2024-01-12 23:23:19.3736| WARN|Api|Util.UnwrapToLog permissions_client_insufficient: the command failed to execute: insufficient client permissions (missing permission:b_client_modify_own_description)
2024-01-12 23:23:19.4578| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume))
2024-01-12 23:23:19.5695| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/data/song/cover/get)
2024-01-12 23:23:19.8521| INFO|0|PlayManager.StopInternal Song queue ended: No next song could be played.
2024-01-12 23:23:19.8538| WARN|0|Util.UnwrapToLog permissions_client_insufficient: the command failed to execute: insufficient client permissions (missing permission:b_client_modify_own_description)
2024-01-12 23:23:20.7065| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:23:21.5820| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume))
2024-01-12 23:23:23.5753| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume))
2024-01-12 23:23:25.7093| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:23:26.5914| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume))
2024-01-12 23:23:31.6409| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:23:36.6403| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-12 23:23:41.6331| INFO|Api|WebApi.ProcessApiV1Call ::ffff:61.185.222.66 Requested: /api/bot/use/0/(/json/merge/(/server/tree)/(/whisper/list))
2024-01-13 00:07:53.8792| INFO||Core.ConsoleInterruptHandler Got interrupt signal, trying to soft-exit.
2024-01-13 00:07:53.8810| INFO||Core.StopAsync TS3AudioBot shutting down.
2024-01-13 00:07:53.8845| INFO||Bot.Stop Bot (0) disconnecting.
2024-01-13 00:07:53.8992| INFO||WebServer.Dispose WebServer is closing
2024-01-13 00:07:53.8992| INFO|Core|WebServer.OnShutdown WebServer has closed
2024-01-13 00:07:53.9008| INFO||Core.StopAsync Bye
Duster-Cule commented 10 months ago

Oh sry, thats my fault. My song link has expired.