Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

when searching with last word autocompleted trailing space is not trimmed

未关闭 适合新手
#17,183 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
64/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
kotlin
领域
mobile, search

调研方向

issue 中没有指定源文件或测试。请从 Android 应用的搜索界面开始,跟踪提交的查询如何到达文件夹搜索,并使用“files ”复现该故障;完成标准是自动补全产生的尾随空格不再阻止找到“files”文件夹,并且在存在相关搜索测试时将其更新或添加。

由索引模型根据 Issue 内容生成。

描述

0. Needs triage bug
⚠️ Before posting ⚠️
  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
  1. search for a folder (e.g "files"
  2. select some completion from the keyboard or (adding a space at the end after a word) (eg. "files ")
  3. search won't find it
Expected behaviour

The search trims trailing spaces (if not specified somehow explicitly) and the finds the something (in eg. the folder "files")

Actual behaviour

The folder "files" is not found, as it is searched for "files "

Android version

16

Device brand and model

Pixel 7a

Stock or custom OS?

Stock

Nextcloud android app version

34.0.0

Nextcloud server version

33.0.5

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

Additional information

This behaviour frustrates me as searching often returns nothing where it shouldn't.

I haven't considered files/folders actually ending on a space, they don't make sense to me that much and should be found none the less.

主要语言
Kotlin
星标
5.6k
派生
2k
平均合并
2 天 9 小时
30 天内合并 PR
96

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/android 的其他 Issue

查看 nextcloud/android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。