owntracks / android

OwnTracks Android App
http://owntracks.org
Eclipse Public License 1.0
1.37k stars 475 forks source link

command executed on all devices when published to bad topic #451

Closed capulo closed 7 years ago

capulo commented 7 years ago

i accidentaly published cmd for reporting location to bad topic and i got reply from all devices :) in booklet is definition: owntracks/user/device/cmd with _type=cmd for remote commands but when i sent message this way: mosquitto_pub -t owntracks/anything/cmd -m '{"_type":"cmd","action":"reportLocation"}' i got reply from all devices attached to my local mosquitto server 'anything' could be really anything you want i don't think this is some secret feature :) so probably a bug

jpmens commented 7 years ago

You are saying that a publish to owntracks/BLURB278/cmd is responded to by all devices? Show us.

capulo commented 7 years ago

check screenshot from mqtt-spy virtualbox_debian64_2_20_02_2017_09_02_24

jpmens commented 7 years ago

Can you please export the configuration of the two devices and show us subTopic from the JSON output? If necessary, you can send these configs to support@owntracks.org

capulo commented 7 years ago

here are configs i'm just removed host IPs

capo.otrc.txt kika.otrc.txt

note: meanwhile user kika turned off publication of extended data, so this is why battery info is on screenshot but pubextendeddata is set to false in config.

jpmens commented 7 years ago

Thank you for the data. I note the configuration specifies a subTopic of owntracks/+/+, and this should be "seeing" but not processing cmd. I am marking this as a bug.

binarybucks commented 7 years ago

Fix is in master