Ipfs-webui: sending anonymous usage data settings not respected

Created on 20 May 2019  Â·  12Comments  Â·  Source: ipfs/ipfs-webui

i dint select to send any of the data yet it does

20:00:12​?begin_session=*&metrics=​--​*IP*3​xhr​https://countly.ipfs.io/i?begin_session=1&metrics=%7B%22_app_version%22%3A%222.4.5%22%2C%22_ua%22%3A%22Mozilla%2F5.0%20(Windows%20NT%206.1%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F75.0.3731.0%20Safari%2F537.36%22%2C%22_resolution%22%3A%221920x1080%22%2C%22_density%22%3A1%2C%22_locale%22%3A%22en-US%22%7D&app_key=*snip*&device_id=*snip*&sdk_name=javascript_native_web&sdk_version=19.02.1&timestamp=1558361366821&hour=16&dow=1&consent=%7B%22sessions%22%3Atrue%2C%22events%22%3Atrue%2C%22views%22%3Atrue%2C%22location%22%3Atrue%2C%22crashes%22%3Afalse%7D

image

kinbug P0

All 12 comments

That definitely shouldn't happen. To help us debug that, please could you add info about the version of webui that you're seeing that happen in? The truncated git revision should be displayed in the bottom left corner in the nav bar, like so

Screenshot 2019-05-22 at 15 25 31

We've configured the countly-sdk with require_consent: true, which is supposed to disable all requests until specific consents are added: https://github.com/ipfs-shipyard/ipfs-webui/blob/83fbf45156f78c5fd90bb502e600d7f127c32749/src/bundles/analytics.js#L55-L74

so I may need to go digging in the countly sdk

please could you add info about the version of webui that you're seeing that happen in?

Revision 83fbf45

Can you share any more information to help debug this? Did you ever tick the "Help improve this app by sending anonymous usage data" box? Could you share the contents of you local indexedDB called bundle-cache? Does it have an "analytics" key in it? If so what's the value?

You can find whats in your browsers indexeddb by opening the dev tools (in chrome) and going to the Application tab > Storage > IndexedDB > bundle-cache > bundle-cache

See below for an example
Screenshot 2019-07-17 at 12 14 34

"{"version":1,"time":1558610721843,"data":{"lastEnabledAt":1558610721333,"lastDisabledAt":1558610721831,"consent":[]}}"

this ?

still present on Revision 1eef40c

i have nothing in indexedDB, however localStorage had a few variables. One was called cly_queue which held a structure like the one @icf20 posted. I deleted all cly_* variables, but still getting calls to /?begin_session=1 ... etc

Almost two years later and this is still enabled by default. Why? uBlock is blocking the requests but how many people know this is even happening?
ipfsfail01

It's not enabled by default and it's unclear why you're seeing this. Can you reproduce this bug in a fresh browser profile?

I disagree, it is ~happening~ by default and yes, I can verify the profile has nothing to do with it.

More hillarity, clicking on 'no thanks' to the prompt about collecting statistics, results in an attempt to submit said statistics:

https://countly.ipfs.io/i?consent=%7B%22sessions%22%3Afalse%2C%22events%22%3Afalse%2C%22views%22%3Afalse%2C%22location%22%3Afalse%2C%22crashes%22%3Afalse%7D&app_key=nfi_censored&device_id=censored&sdk_name=javascript_native_web&sdk_version=19.08&location=&timestamp=1619177933225&hour=11&dow=5

I am able to recreate the issue where clicking on "no thanks" triggers a request to countly.ipfs.io where it absolutely should not.
It's sending:

  • the list of analytic catagories that are being declined
%7B%22sessions%22%3Afalse%2C%22events%22%3Afalse%2C%22views%22%3Afalse%2C%22location%22%3Afalse%2C%22crashes%22%3Afalse%7D
  • the app_key
&app_key=8fa213e6049bff23b08e5f5fbac89e7c27397612
  • the device_id (most egregious)
&device_id=c2cb4124-1212-4ddf-bf26-9bab77e70121&
  • the sdk_name and sdk_version
sdk_name=javascript_native_web&sdk_version=19.08
  • location is nulled out
&location=
  • and a timestamp, hour and day of week of the event
    &timestamp=1619194484798&hour=17&dow=5

I am fixing the _"no thanks" triggers a request_ issue

@olizilla fixed this in #1768 and we shipped it in v2.12.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Luflosi picture Luflosi  Â·  3Comments

olizilla picture olizilla  Â·  4Comments

prettymuchbryce picture prettymuchbryce  Â·  5Comments

jessicaschilling picture jessicaschilling  Â·  5Comments

Luflosi picture Luflosi  Â·  3Comments