Skip to content

Conversation

@joragua
Copy link
Collaborator

@joragua joragua commented Mar 26, 2025

Related Issues

App: #4560

  • Add changelog files for the fixed issues in folder changelog/unreleased. More info here
  • Add feature to Release Notes in ReleaseNotesViewModel.kt creating a new ReleaseNote() with String resources (if required)

QA

Checks: #4562 (comment)

Reports

@joragua joragua self-assigned this Mar 26, 2025
@joragua joragua linked an issue Mar 26, 2025 that may be closed by this pull request
@joragua joragua force-pushed the fix/confusing_behaviour_with_apps_provider branch from ef4f682 to 41bbfbe Compare March 26, 2025 10:00
@joragua joragua marked this pull request as ready for review March 26, 2025 10:31
@joragua joragua requested a review from JuancaG05 March 26, 2025 10:31
Copy link
Contributor

@JuancaG05 JuancaG05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little change in the release note 👍

@joragua joragua force-pushed the fix/confusing_behaviour_with_apps_provider branch from 5185790 to 864c9bd Compare March 26, 2025 11:29
@joragua joragua force-pushed the fix/confusing_behaviour_with_apps_provider branch from 864c9bd to bce15bd Compare March 26, 2025 11:34
Copy link
Contributor

@JuancaG05 JuancaG05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now

@jesmrec
Copy link
Collaborator

jesmrec commented Mar 26, 2025

[WIP]

QA checks:

  • Create new file

    • OpenPresentation
    • OpenSpreadsheet
    • OpenDocument
    • Microsoft PowerPoint
    • Microsoft Excel
    • Microsoft Word
  • Open file

    • .odp
    • .ods
    • .odt
    • .pptx
    • .xlsx
    • .docx
  • Update

@jesmrec
Copy link
Collaborator

jesmrec commented Mar 26, 2025

(1) [FIXED]

Migration from previous version makes the app crash.

  1. Install master
  2. Add an account with app providers
  3. Update to current branch

Current:

app crashes at start:

13:51:49.486  E  Process: com.owncloud.android.debug, PID: 14262 (Ask Gemini)
                 com.squareup.moshi.JsonDataException: Required value 'productName' missing at $[1]
                 	at com.squareup.moshi.internal.Util.missingProperty(Util.java:660)
                 	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:105)
                 	at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
                 	at com.squareup.moshi.CollectionJsonAdapter.fromJson(CollectionJsonAdapter.java:81)
                 	at com.squareup.moshi.CollectionJsonAdapter$2.fromJson(CollectionJsonAdapter.java:55)
                 	at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
                 	at com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:70)
                 	at com.owncloud.android.data.appregistry.datasources.implementation.OCLocalAppRegistryDataSource.toAppRegistryProvider(OCLocalAppRegistryDataSource.kt:107)
                 	at com.owncloud.android.data.appregistry.datasources.implementation.OCLocalAppRegistryDataSource.toModel(OCLocalAppRegistryDataSource.kt:84)
                 	at com.owncloud.android.data.appregistry.datasources.implementation.OCLocalAppRegistryDataSource.access$toModel(OCLocalAppRegistryDataSource.kt:38)
                 	at com.owncloud.android.data.appregistry.datasources.implementation.OCLocalAppRegistryDataSource$getAppRegistryWhichAllowCreation$$inlined$map$1$2.emit(Emitters.kt:224)
                 	at kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke(SafeCollector.kt:15)
                 	at kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke(SafeCollector.kt:15)
                 	at kotlinx.coroutines.flow.internal.SafeCollector.emit(SafeCollector.kt:87)
                 	at kotlinx.coroutines.flow.internal.SafeCollector.emit(SafeCollector.kt:66)
                 	at kotlinx.coroutines.flow.FlowKt__ChannelsKt.emitAllImpl$FlowKt__ChannelsKt(Channels.kt:62)
                 	at kotlinx.coroutines.flow.FlowKt__ChannelsKt.access$emitAllImpl$FlowKt__ChannelsKt(Channels.kt:1)
                 	at kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1.invokeSuspend(Unknown Source:14)
                 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                 	at android.os.Handler.handleCallback(Handler.java:959)
                 	at android.os.Handler.dispatchMessage(Handler.java:100)
                 	at android.os.Looper.loopOnce(Looper.java:249)
                 	at android.os.Looper.loop(Looper.java:337)
                 	at android.app.ActivityThread.main(ActivityThread.java:9593)
                 	at java.lang.reflect.Method.invoke(Native Method)
                 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
                 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
                 	Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@c77c809, Dispatchers.Main.immediate]
13:51:49.487  E  MiSurfaceFlingerImpl.cpp.vsyncId=507446, oldVsyncId=507426, layerName=Surface(name=5da4fb Splash Screen com.owncloud.android.debug#2597)/@0xdf5fce2 - animation-leash of window_animation#2611

Expected:

no crash

Xiaomi Redmi 13 Android 15
bce15bde8

@joragua
Copy link
Collaborator Author

joragua commented Mar 26, 2025

@jesmrec (1) should be fixed with the last commit

@jesmrec
Copy link
Collaborator

jesmrec commented Mar 26, 2025

(1) fixed

@jesmrec
Copy link
Collaborator

jesmrec commented Mar 26, 2025

Approved on my side.

In regression stage will do another check.

@joragua joragua merged commit 8cecf7b into master Mar 31, 2025
7 checks passed
@joragua joragua deleted the fix/confusing_behaviour_with_apps_provider branch March 31, 2025 07:23
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.

[BUG] Confusing behaviour when creating new files using apps provider

5 participants