Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skjnldsv opened this issue Mar 3, 2023 · 5 comments
Labels

Comments

@skjnldsv
Copy link
Member

skjnldsv commented Mar 3, 2023

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

@skjnldsv skjnldsv added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap 1. to develop Accepted and waiting to be taken care of 24-feedback 25-feedback 26-feedback and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Mar 3, 2023
@szaimen
Copy link
Contributor

szaimen commented Mar 6, 2023

cc @ArtificialOwl as this looks like a pretty big problem with multiple app versions.

@joshtrichards
Copy link
Member

Is there a good reason for supporting multiple versions of an app being installed simultaneously? Only one can truly be active at a time anyhow.

I think we should just add an admin setup check that considers this an invalid situation and tells the admin to eliminate the duplicate apps (i.e. #40063).

@szaimen
Copy link
Contributor

szaimen commented Sep 10, 2023

Is there a good reason for supporting multiple versions of an app being installed simultaneously? Only one can truly be active at a time anyhow.

Yes, the idea was to allow to update shipped app via the appstore...

@szaimen
Copy link
Contributor

szaimen commented Jan 9, 2024

@ArtificialOwl now that you released https://github.com/nextcloud-releases/related_resources/releases/tag/1.2.0 to the store, https://apps.nextcloud.com/apps/related_resources, I suppose people will run into the above issue. So would you mind having a look at the problem above?

@joshtrichards
Copy link
Member

Yes, the idea was to allow to update shipped app via the appstore...

Maybe we make the logic prefer the writable apps path (under the assumption it's the one most likely to be the newest/updated/from-the-app-store one).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants