plugorgau / eventstreamr-station

EventStreamr Station Manager
2 stars 1 forks source link

Better Handle Characters in JSON Attributes #7

Closed techman83 closed 9 years ago

techman83 commented 9 years ago

Issue by techman83 Monday Jan 20, 2014 at 08:00 GMT Originally opened as https://github.com/plugorgau/eventstreamr/issues/53


Currently the very hacky fix to get around this here https://github.com/lukejohnosmahi/eventstreamr/blob/master/station/bin/station-mgr.pl#L396-L399

    # Post data
    $json = to_json($data);
    # some bug and it's late this could cause hideous issues if 
    # a device id has a / in it, but this should be unlikely
    $json =~ s{/|\.}{}g;

Would prefer a better solution for this.

techman83 commented 9 years ago

Ran a full conference with this code disabled. It was due to how we were setting the standby loop ID. This is not an issue now as we set the standby loop id to 'dvfile'.