Android app does not open .xlsm files in Nextcloud Office, while .xlsx files work

未关闭
#17,419 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

首先使用 .xlsm 文件复现 Android 应用的行为,并使用所述的 Nextcloud Office 和 EuroOffice 设置将其与 .xlsx 进行比较。跟踪应用针对这些扩展名的文件打开和类型处理入口点。完成的标准是:点击 .xlsm 后,它会直接在 Nextcloud Office 中打开,与 .xlsx 的行为一致,且不会出现 Android 的“打开方式”对话框。

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

描述

0. Needs triage bug
⚠️ Before posting ⚠️
  • This is a bug, not a question or an enhancement.
  • #17420
  • 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. Connect the official Nextcloud Android app to a Nextcloud AIO server with Nextcloud Office enabled.
  2. Upload or select an Excel ".xlsm" file containing macros.
  3. Tap the ".xlsm" file in the Nextcloud Android app.
  4. Android displays the system "Open with" dialog instead of opening the file in Nextcloud Office.
  5. Tap an ".xlsx" file in the same Nextcloud account.
  6. The ".xlsx" file opens correctly in Nextcloud Office from within the Android app.
  7. Create a share link for the same ".xlsm" file and open the link in a mobile browser.
  8. The ".xlsm" file opens and can be edited correctly in Nextcloud Office in the browser.

The issue occurs with both the standard Nextcloud Office/Collabora integration and EuroOffice.

Expected behaviour

Tapping an ".xlsm" file in the official Nextcloud Android app should open the document directly in Nextcloud Office, in the same way that ".xlsx" files do.

Actual behaviour

When tapping an .xlsm file, Android shows the system "Open with" dialog instead of opening the document in Nextcloud Office.

The same .xlsm file opens and can be edited correctly in Nextcloud Office when opened through a share link in the mobile browser.

Regular .xlsx files open correctly in Nextcloud Office directly from the Android app.

The same behaviour occurs with both Nextcloud Office/Collabora and EuroOffice.

Android version

Android 16

Device brand and model

Xiaomi Redmi Pad 2 5G (2509BRP2DG)

Stock or custom OS?

Stock

Nextcloud android app version

34.1.0

Nextcloud server version

Nextcloud AIO v13.4.0

Using a reverse proxy?

Yes

Android logs

No response

Server error logs

Additional information

No response

主要语言
Kotlin
星标
5.7k
派生
2.1k
平均合并
1 天 22 小时
30 天内合并 PR
135

环境准备

在 Codespaces 中打开

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

从这里开始

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

nextcloud/android 的其他 Issue

查看 nextcloud/android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

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