Skip to content

[BUG] Kiteworks accounts with bad Space filtering #4674

Closed

Description

@jesmrec

Actual behaviour

The space filter is intended to work with one Personal space. Since Kiteworks accounts are multi-personal, whatever is typed in the filter shows only the first space in the list. That's because the Personal space takes this place and it is pinned to that position in oC servers.

Expected behaviour

Set up the filter in a different way. If server is oC, current behaviour. If server is Kiteworks, filtering with no restrictions about Personal spaces. Just showing spaces which name matches the input.

Activity

  1. added theissue type on Sep 1, 2025
  2. changed the title [-][BUG] Kiteworks accounts with bad Space filter[/-] [+][BUG] Kiteworks accounts with bad Space filtering[/+] on Sep 1, 2025
  3. added this to the Backlog milestone on Sep 12, 2025
  4. DeepDiver1975 commented on Jul 2, 2026

    @DeepDiver1975
    Contributor

    Confirmed bug, app-side. Located in SpacesListFragment.subscribeToViewModels().

    Current filter path when searchFilter is non-empty (SpacesListFragment.kt#L183-L192):

    • The name match explicitly excludes every personal space: filter { it.name...contains(searchFilter) && \!it.isPersonal && shouldShowDisabledSpace(it) } (line 185).
    • Then it re-adds only the FIRST personal space, unconditionally, pinned to position 0: uiState.spaces.find { it.isPersonal } → add(0, personalSpace) (lines 187-191).

    For single-personal oC this is correct. For Kiteworks (multi-personal) it's wrong on two counts:

    • Only the first personal space is ever shown, pinned regardless of the filter text.
    • No personal space is matched by name at all (they're excluded by \!it.isPersonal), so typing a personal space's name can't surface it.

    The app already has the multi-personal signal in scope: isMultiPersonal (from capabilities.spaces.hasMultiplePersonalSpaces) is set at line 147 and passed to the adapter at lines 194/198 — but the filter branch at 183-192 never consults it.

    Fix direction (app-side, no server change): branch the filter on isMultiPersonal. When multi-personal, drop the \!it.isPersonal exclusion and the pinned add(0, ...), and just match all spaces by name (it.name.contains(searchFilter) && shouldShowDisabledSpace(it)); keep the existing pin-personal behavior only for single-personal servers.

    Locus is purely client-side list filtering — the graph/drives response and the multi-personal capability are already correct here; no Kiteworks/oCIS server change is needed.

    Verified against current master (SpacesListFragment.kt, SpacesListViewModel.kt#L121-L122, OCSpace.kt#L46).

    🤖 Generated with Claude Code

  5. modified the milestones: Backlog, 5.0 - Current on Oct 27, 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

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions