Repository navigation
Privacy follow-up: no entry date in story events, no Nextcloud server in error messages - #753
Merged
Merged
Conversation
… in error messages - storyAnalyticParameters no longer sends the entry's year/month/day. - NextcloudCloudService.describeError keeps only the kind of error (Dio type, status code, OS errno) in exception messages; the raw Dio/socket text names the user's own server and those messages reach Crashlytics breadcrumb logs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #750, for the points raised in #752.
What we confirmed
year/month/day, which goes beyond "counts and categories"result.error?.messageto Crashlytics logs (backup_provider.dart), so the same hostname could leak on any failed Nextcloud sync, not only in Cloud Optimize1. Opt-out
Not planned for now. Analytics only counts feature usage and carries no personal information (see #750 for the rules every event follows). This is covered by the privacy policy and terms on storypad.me.
2. Story events
storyAnalyticParametersno longer sends the entry's date. Story events now send only counts and flags about the entry, such as page and tag counts or whether it's starred or pinned, and never its date, text or location. The full list is instoryAnalyticParameters, and a test checks the exclusions.3. Nextcloud errors in Crashlytics
Verified against the locked versions (dio 5.11.1,
webdav_client1.2.2):SocketExceptionand includes its text. Dart's socket errors name the server:Failed host lookup: 'cloud.example.com', oraddress = …, port = ….NextcloudCloudService._buildExceptionput that text intoNetworkException/ServiceExceptionmessages.FirebaseCrashlytics.instance.logfrom Cloud Optimize ($e) and from the sync-failure log inBackupProvider. The logs are uploaded with the next crash report in the same session.The new
NextcloudCloudService.describeError()keeps only the kind of error, e.g.DioException(connectionError, SocketException(errno 8))orDioException(badResponse, status 502). All three_buildExceptionmessages and theconnect()failure use it. The fix is in the service itself, so every place that logs or shows these messages is covered. Google Drive and Dropbox are unchanged: their hosts are fixed, not the user's own.Changes
base_analytics_event_adaptor.dart: dropyear,monthanddayfromstoryAnalyticParameters, and add a comment stating the rule.analytics_service.dart: the header rule now also lists "an entry's date".nextcloud_cloud_service.dart: newdescribeError(), used in place of the raw$error/$ein exception messages.storyAnalyticParameterssends no date, title, text or place, and still sends the counts.describeErrordrops the host, IP and path for DNS failures, refused connections and bad responses, and keeps the status code and errno. One test first checks that the raw Dio text does contain the host, so the test can't pass by accident.Docs (
docs/app/architecture/initialization.mdin the monorepo) are updated alongside.Test plan
dart analyze: no issuesflutter test test/core/services/analytics test/core/services/nextcloud_cloud_service_test.dart: all passCloses #752
🤖 Generated with Claude Code