Skip to content

fix(settings): reject reset requests for non-remote device keys #150

Open

Description

@Quick104

Problem

AndroidPlayerSettingsStore.resetDeviceSetting(key) currently forwards any caller-supplied key to the canonical delete endpoint:

android-shared/src/androidMain/kotlin/org/siloserver/silo/common/settings/AndroidPlayerSettingsStore.kt:583-588

A local-only or unknown key is rejected by the server, while the method still looks like a successful reset path to its caller.

PR #101 added a membership check against the old DeviceSettings list. That exact check is no longer correct after #119: the current list also includes granular subtitle fields that are deliberately filtered out of the canonical remote set.

Expected behavior

  • Reject keys that are not in the current canonical remote-device settings set before enqueueing a delete.
  • Use the generated/filtered remote set (currently represented by RemoteDeviceSettings), not the old broad DeviceSettings membership rule.
  • Add focused coverage proving local-only, granular subtitle, and unknown keys cannot reach the flusher.
  • Preserve valid reset and reset-all behavior.

Context: #101, #119

Activity

  1. added
    bug
    triaged
    and removed
    triaged
    on Sep 20, 2026
  2. added theissue type on Sep 20, 2026
  3. removed
    bug
    on Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions