Skip to content

fix(oc-capability): parsing wcf entries#16780

Merged
alperozturk96 merged 2 commits intomasterfrom
fix/handle-edge-cases-for-parsing-wcf-related-entries
Mar 31, 2026
Merged

fix(oc-capability): parsing wcf entries#16780
alperozturk96 merged 2 commits intomasterfrom
fix/handle-edge-cases-for-parsing-wcf-related-entries

Conversation

@alperozturk96
Copy link
Copy Markdown
Collaborator

@alperozturk96 alperozturk96 commented Mar 30, 2026

Issue

Probably OOM happened due to some other operation nevertheless better to handle these cases.

Exception java.lang.OutOfMemoryError:
  at com.google.gson.stream.JsonReader.<init> (JsonReader.java:312)
  at com.google.gson.Gson.newJsonReader (Gson.java:1077)
  at com.google.gson.Gson.fromJson (Gson.java:1258)
  at com.google.gson.Gson.fromJson (Gson.java:1169)
  at com.google.gson.Gson.fromJson (Gson.java:1106)
  at com.nextcloud.utils.extensions.OCCapabilityExtensionsKt.jsonToList (OCCapabilityExtensions.kt:55)
  at com.nextcloud.utils.extensions.OCCapabilityExtensionsKt.forbiddenFilenameExtensions (OCCapabilityExtensions.kt:40)
  at com.nextcloud.utils.autoRename.AutoRename.rename (AutoRename.kt:59)
  at com.nextcloud.utils.autoRename.AutoRename.rename$default (AutoRename.kt:27)
  at com.nextcloud.client.database.entity.UploadEntityKt.toOCUpload (UploadEntity.kt:70)
  at com.nextcloud.client.jobs.upload.FileUploadHelper$getUploadsByStatus$1.invokeSuspend (FileUploadHelper.kt:408)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:34)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:101)
  at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run (LimitedDispatcher.kt:113)
  at kotlinx.coroutines.scheduling.TaskImpl.run (Tasks.kt:89)
  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt:589)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:823)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:720)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt:707)

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@github-actions
Copy link
Copy Markdown

APK file: https://github.com/nextcloud/android/actions/runs/23747402271/artifacts/6179165201
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@github-actions
Copy link
Copy Markdown

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions
Copy link
Copy Markdown

Codacy

SpotBugs

CategoryBaseNew
Bad practice3939
Correctness7070
Dodgy code231231
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3434
Performance4242
Security1616
Total442442

@github-actions
Copy link
Copy Markdown

APK file: https://github.com/nextcloud/android/actions/runs/23749083586/artifacts/6180211568
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@alperozturk96 alperozturk96 merged commit 1a88926 into master Mar 31, 2026
17 of 20 checks passed
@alperozturk96 alperozturk96 deleted the fix/handle-edge-cases-for-parsing-wcf-related-entries branch March 31, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants