Nertivia / issues

General issues for nertivia
0 stars 2 forks source link

REST request allows empty channel names #100

Open alexdev-at opened 3 years ago

alexdev-at commented 3 years ago

Device + OS: API - Server related

Browser: API - Server related

Bug: Endpoint: https://nertivia.net/api/servers/{serverId}/channels Method: PUT

Probably also applies to: (But DID NOT TEST) https://nertivia.net/api/servers/{serverId}/channels/{channelId} Method: PATCH

Sending an empty name string makes it possible to create channels with no names / empty names. The app prevents you from doing that by checking if the length you entered is greater than 0, but the server seems to not care about the length, at least not if the size is 0.

bennyscripts commented 2 years ago

+Rep