You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Kiteworks accounts with bad Space filtering #4674
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.
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).
Activity
[-][BUG] Kiteworks accounts with bad Space filter[/-][+][BUG] Kiteworks accounts with bad Space filtering[/+]DeepDiver1975 commentedon Jul 2, 2026
Confirmed bug, app-side. Located in
SpacesListFragment.subscribeToViewModels().Current filter path when
searchFilteris non-empty (SpacesListFragment.kt#L183-L192):filter { it.name...contains(searchFilter) && \!it.isPersonal && shouldShowDisabledSpace(it) }(line 185).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:
\!it.isPersonal), so typing a personal space's name can't surface it.The app already has the multi-personal signal in scope:
isMultiPersonal(fromcapabilities.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.isPersonalexclusion and the pinnedadd(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