Page MenuHomeFeedback Tracker

add removePublicVariableEventHandler
New, WishlistPublic

Description

to complement addPublicVariableEventHandler.

removePublicVariableEventHandler "PVname"

this way it would be possible to use unique PVs to communicate with clients from the server, for increased security.

Details

Legacy ID
1397188067
Severity
None
Resolution
Open
Reproducibility
Always
Category
Feature Request

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Feature Request.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Open.
Killzone_Kid set Legacy ID to 1397188067.May 7 2016, 7:34 PM

CompileFinal for a addPublicVariableEventhandler would be awesome as well

can you not do

func = compilefinal "code";
"var" addpublicvariableeventhandler func?

EDIT yep, you can't, just checked, the code can be overwritten

yea 'add'PublicVariableEventhandler isn't really adding a PV, its more a 'set' command. You can overwrite/remove eventhandler with

"MyEH" addPublicVariableEventhandler {};

Probably is it still in the cache of the client/server but who knows.
Maybe is it better to request a 'setPublicVariableEventhandler' that can't be overwriten like a compileFinal function.

Please add this command, to remove it. If not possible to prevent re-writing of the code, then we need the ability to simply remove it after use.

#Bump

A lot of time is gone since reporting this important security issue, nothing done, please add this in further versions!

Was thinking about this again today. If BIS engine code or internal scripts makes use of this command there may be a reason to not (yet) provide clients the ability.