nextcloud / nextcloud/server

[Bug]: if an app exists in `apps` and `custom_apps` folder, `apps` will be picked first for js and css ressources

Open
#37,043 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop 26-feedback bug feature: apps management
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Bug description

When you use addScript and request a script of your app to be loaded
AND you have different versions of the app in both of your apps folders
THEN you will have ressources loaded from the apps folder, even if the version is lower

Steps to reproduce
  1. Setup a custom_apps folder
  2. Install latest talk in custom_apps
  3. Install old talk (11.x.x) in apps folder
  4. Load the page
    image
Expected behavior

All the ressources requests should be loaded from the default latest app root instead

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how addScript resolves JavaScript and CSS resources when the same app exists in both apps and custom_apps, then reproduce the two-version Talk setup described. Done means resource requests consistently use the latest app from the default root rather than the older copy in apps.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript, php
Domain
backend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.