App crashes when creating share-link

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

崩溃经过 DateExtensions.kt 中的 toExpirationDateLong 和 CreateShareResponseExtensions.kt 中的 toOCShare,随后在创建公开分享链接时到达 NoteShareActivity.java。先阅读堆栈跟踪中的这些位置,并检查响应日期 2026-12-10 23:59:59 是如何解析的。完成标准是:使用此响应创建分享链接时不再崩溃,并且过期日期能够得到正确处理。

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

描述

0. Needs triage bug
This issue respects the following points:
Describe the bug
  1. Click on the share icon next to a note
  2. Click the plus icon next to "Share link"
  3. The app crashes
Expected behavior

I dont expect the app to crash, but allow me to create a share-link instead.

Notes Android version

35.0.0

Notes server version

6.1.1

Nextcloud Android version

35.0.0

Nextcloud version

35.0.3

Device

Google Pixel 10 Pro XL

Android Version

17

App Store
  • Google Play Store
  • F-Droid
  • Huawei App Gallery
Stacktrace
App Version: 35.0.0
App Version Code: 350000090
App Flavor: play

Files App Version Code: 350010090 (PROD)

---

OS Version: 6.12.81-android16-6-g4a1a020d156e-ab16388316-4k(16581829)
OS API Level: 37
Device: mustang
Manufacturer: Google
Model (and Product): Pixel 10 Pro XL (mustang)

---

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:585)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:906)
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:575)
	... 1 more
Caused by: java.text.ParseException: Unparseable date: "2026-12-10 23:59:59"
	at java.text.DateFormat.parse(DateFormat.java:400)
	at it.niedermann.owncloud.notes.shared.util.extensions.DateExtensionsKt.toExpirationDateLong(DateExtensions.kt:22)
	at it.niedermann.owncloud.notes.share.model.CreateShareResponseExtensionsKt.toOCShare(CreateShareResponseExtensions.kt:48)
	at it.niedermann.owncloud.notes.share.NoteShareActivity.lambda$createPublicShareLink$8(NoteShareActivity.java:417)
	at it.niedermann.owncloud.notes.share.NoteShareActivity.$r8$lambda$U-RJDka-Da36UgQywALdXhtR03w(NoteShareActivity.java:0)
	at it.niedermann.owncloud.notes.share.NoteShareActivity$$ExternalSyntheticLambda4.run(D8$$SyntheticClass:0)
	at android.os.Handler.handleCallback(Handler.java:1080)
	at android.os.Handler.dispatchMessageImpl(Handler.java:135)
	at android.os.Handler.dispatchMessage(Handler.java:126)
	at android.os.Looper.loopOnce(Looper.java:285)
	at android.os.Looper.loop(Looper.java:390)
	at android.app.ActivityThread.main(ActivityThread.java:9884)
	... 3 more

主要语言
Java
星标
1.1k
派生
178
平均合并
10 小时 48 分钟
30 天内合并 PR
41

环境准备

从这里开始

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

nextcloud/notes-android 的其他 Issue

查看 nextcloud/notes-android 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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