App crashes when creating share-link
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
The crash passes through DateExtensions.kt at toExpirationDateLong and CreateShareResponseExtensions.kt at toOCShare, then reaches NoteShareActivity.java while creating a public share link. Start by reading those stacktrace locations and checking how the response date 2026-12-10 23:59:59 is parsed. Done when creating a share link no longer crashes for this response and the expiration date is handled successfully.
Written by the indexing model from the issue text.
Description
This issue respects the following points:
- I have read the FAQ
- I have searched for existing issues
- The issue affects the Notes Android app, neither the Notes server app nor the Nextcloud Android app.
Describe the bug
- Click on the share icon next to a note
- Click the plus icon next to "Share link"
- 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
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 178
- Avg merge
- 10h 48m
- Merged PRs (30d)
- 41
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/notes-android
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nextcloud/notes-android#3439 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
nextcloud/notes-android#3367 ·
Maintainers usually reply within 1 day
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
nextcloud/notes-android#3353 · 2 comments · 2 reactions ·
Maintainers usually reply within 1 day
-
Android: Note stuck in synchronization loop after editing until note is deleted from serverPossibly taken @alperozturk96 claimed this 6 days ago. Open0. Needs triage bug
Difficulty 4/5 3-5 days Newbie friendliness 22/100
nextcloud/notes-android#3442 · 5 comments · 2 reactions · 1 assignee ·
Maintainers usually reply within 1 day
-
0. Needs triage bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
nextcloud/notes-android#3436 · 1 reaction ·
Maintainers usually reply within 1 day
All issues in nextcloud/notes-android
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
installation sdk usability
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
beehive-lab/TornadoVM#1356 ·
Maintainers usually reply within 1 day
-
0. Needs triage enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
davidfercas/opendcanard#34 ·
-
good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 90/100
erkamyaman/rust-anything#702 ·
Maintainers usually reply within 1 day