Skip to content

[stable8] fix: use provided appName of NcContent if possible#8160

Merged
susnux merged 1 commit into
stable8from
backport/8157/stable8
Feb 3, 2026
Merged

[stable8] fix: use provided appName of NcContent if possible#8160
susnux merged 1 commit into
stable8from
backport/8157/stable8

Conversation

@backportbot

@backportbot backportbot Bot commented Feb 3, 2026

Copy link
Copy Markdown

Backport of #8157

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot Bot requested review from Antreesy, ShGKme and susnux February 3, 2026 12:46
@backportbot backportbot Bot added bug Something isn't working 3. to review Waiting for reviews labels Feb 3, 2026
@backportbot backportbot Bot added this to the 8.36.0 milestone Feb 3, 2026
We already pass `appName` to `NcContent` and we provide this value.
So we should make use of this whenever possible.

Reason here is if e.g. library is used without the `appName`
replacement, or if the app has multiple "sub-apps".
One example here is Nextcloud core which has one global `appName` but
multiple real app names (e.g. `files`, `files_sharing` etc).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the backport/8157/stable8 branch from 8c1c3b2 to 6b0418b Compare February 3, 2026 18:30
@susnux susnux marked this pull request as ready for review February 3, 2026 18:30
@codecov

codecov Bot commented Feb 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.03%. Comparing base (86d1629) to head (6b0418b).
⚠️ Report is 10 commits behind head on stable8.

Additional details and impacted files
@@             Coverage Diff             @@
##           stable8    #8160      +/-   ##
===========================================
+ Coverage    46.01%   46.03%   +0.02%     
===========================================
  Files          192      192              
  Lines         4762     4764       +2     
  Branches      1227     1227              
===========================================
+ Hits          2191     2193       +2     
  Misses        2483     2483              
  Partials        88       88              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Antreesy Antreesy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Identical, so I guess, good

@susnux susnux merged commit c069f97 into stable8 Feb 3, 2026
20 of 23 checks passed
@susnux susnux deleted the backport/8157/stable8 branch February 3, 2026 21:49
@artonge artonge mentioned this pull request Feb 4, 2026
susnux added a commit that referenced this pull request Mar 4, 2026
- Missing piece for #8160

On main we already doing so but it was missing in stable8.
Causing wrong app names in server apps.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants