Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Feb 5, 2026

  • Tests written, or not not needed

Fixes #16451

Fixes #14653

Changes

Makes OCCapability non-nullable
Checks and logs existince of it

@alperozturk96
Copy link
Collaborator Author

/backport to stable-3.36

@alperozturk96 alperozturk96 linked an issue Feb 5, 2026 that may be closed by this pull request
4 tasks
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 force-pushed the fix/session-mix-oc-capability-npe branch from 0b7648d to 3ca50ec Compare February 9, 2026 11:28
@nextcloud nextcloud deleted a comment from github-actions bot Feb 9, 2026
@alperozturk96 alperozturk96 linked an issue Feb 9, 2026 that may be closed by this pull request
4 tasks
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Codacy

SpotBugs

CategoryBaseNew
Bad practice4242
Correctness7474
Dodgy code257257
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3434
Performance4444
Security1818
Total479479

@github-actions
Copy link

github-actions bot commented Feb 9, 2026

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

@github-actions
Copy link

github-actions bot commented Feb 9, 2026

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16452.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

Copy link
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

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

🐘

@tobiasKaminsky
Copy link
Member

I think this is the wrong idea to fix it:
When app is working in normal state, then it must have user and capability.
If for some reason, one of them is not available, then we need to fix it there (or prevent a call to it).

But neither user nor capability are optional and must always exist (same like e.g. server url, etc).

Copy link
Member

@tobiasKaminsky tobiasKaminsky left a comment

Choose a reason for hiding this comment

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

See last comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants