You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Device, operating system: Generic cobbled-together Windows 10 22H2 desktop
The Lounge version: 4.3.1, problem also seems to exist in 4.4.0
When lockNetwork is true, NetworkForm.vue hides some fields/options that would be expected to be shown. (Commands, the option for SASL External, possibly others.) I believe the problem is that https://github.com/thelounge/thelounge/blob/master/server/server.ts#L871 strips those out of the defaults object but I'm unable to test it to be certain.
If I'm right, adding "tls" and "uuid" to the fields that are passed through should ameliorate the issue. (Perhaps instead of only allowing certain fields, only fields that must be disallowed should be stripped?)
The text was updated successfully, but these errors were encountered:
Kufat
added
the
Type: Bug
Issues that report and PRs that solve any defects that cause unexpected behaviors.
label
May 14, 2023
I've apparently fixed this locally but will test a bit before I provide a PR. This is my first time working with TypeScript, Vue, etc. and one of my first times working with Node, so I'm not super confident in my ability to fix bugs without side effects. ;p
@MaxLeiter Part of the problem is that the 'args' passed to edit() in network.ts doesn't always contain all args.
It's a straightforward fix but I don't know how to do the check idiomatically.
Example: ('sasl' might or might not be omitted from 'args' under some circumstances)
// Currentthis.sasl=String(args.sasl||"");// Problem: sasl field is cleared if absent from object// Bad fix:this.sasl=String(args.sasl||this.sasl||"");// Problem: Can't clear sasl even if you want to// Options:// Option 1if('sasl'inargs){this.sasl=args.sasl;}// Option 2this.sasl='sasl'inargs ? args.sasl : this.sasl;// Option 3'sasl'inargs&&(this.sasl=args.sasl);
When lockNetwork is true, NetworkForm.vue hides some fields/options that would be expected to be shown. (Commands, the option for SASL External, possibly others.) I believe the problem is that https://github.com/thelounge/thelounge/blob/master/server/server.ts#L871 strips those out of the defaults object but I'm unable to test it to be certain.
If I'm right, adding "tls" and "uuid" to the fields that are passed through should ameliorate the issue. (Perhaps instead of only allowing certain fields, only fields that must be disallowed should be stripped?)
The text was updated successfully, but these errors were encountered: