libossia icon indicating copy to clipboard operation
libossia copied to clipboard

OSCQuery interface displays value even with access mode 'Set'

Open x37v opened this issue 5 years ago • 4 comments

I'm using the cpp98 interface. I have a node that should have 'Set' only access. I set it up like below.

auto n = root.create_string("cmd");
n.set_description("command handler");
n.set_access(opp::access_mode::Set);

Unfortunately this still displays the last string set in the json http response (without query strings), and the cmd?VALUE query string also returns the value.

The proposal indicates about value:

If a query is performed for the "VALUE" attribute, but the "ACCESS" attribute indicates that the OSC method isn't readable, the query should return a 204 (no content/inappropriate request).

ossia claims to support both Access and Value

x37v avatar Dec 10 '20 23:12 x37v

Thanks for the report. I guess we could have a "strict" mode by default which would respect the spec - the reason it's done like this is because in practice, lots of users asked fro the ability to see things anyways.

jcelerier avatar Dec 13 '20 10:12 jcelerier

paging @bltzr @jln- @avilleret for opinions

jcelerier avatar Dec 13 '20 10:12 jcelerier

Thanks for the report. I guess we could have a "strict" mode by default which would respect the spec - the reason it's done like this is because in practice, lots of users asked fro the ability to see things anyways.

Huh, I guess I don't get why those users don't just use the Bi mode? Maybe ossia doesn't allow you to LISTEN to a Set?

x37v avatar Dec 13 '20 16:12 x37v

this seems related to https://github.com/ossia/libossia/issues/504

afaic since lots of people are complaining we are not strictly following the specs regarding access mode, I suggest to change to strictly follow the specs, even if it breaks some code somewhere

avilleret avatar Jan 05 '21 17:01 avilleret