Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

The order of applications in the config.json apps should not be important #2891

Closed

Description

@butonic

I was adding the default apps to ocis and stubled over

core.bundle.js:13 TypeError: Cannot read property '0' of undefined
    at redirect (core.bundle.js:110)
    at a (core.bundle.js:110)
    at u (core.bundle.js:110)
    at Object.s [as match] (core.bundle.js:110)
    at Le.match (core.bundle.js:110)
    at e.pe.transitionTo (core.bundle.js:110)
    at Le.init (core.bundle.js:110)
    at Mn.beforeCreate (core.bundle.js:110)
    at Bt (core.bundle.js:13)
    at tn (core.bundle.js:13)
core.bundle.js:13 TypeError: Cannot read property 'meta' of undefined
    at showHeader (core.bundle.js:105)
    at dn.get (core.bundle.js:13)
    at dn.evaluate (core.bundle.js:13)
    at s.showHeader (core.bundle.js:13)
    at s.<anonymous> (core.bundle.js:105)
    at s.t._render (core.bundle.js:13)
    at s.r (core.bundle.js:13)
    at dn.get (core.bundle.js:13)
    at new dn (core.bundle.js:13)
    at core.bundle.js:13

I tried the different apps and left out draw-io, which was first in the list. Trying to reproduce this I can recreate the above error after logging in, resulting in a WSOD using
PHOENIX_WEB_CONFIG_APPS="draw-io,files" bin/ocis server

Reversing the order (or maybe putting files first) resolves the problem
PHOENIX_WEB_CONFIG_APPS="files,draw-io" bin/ocis server

ocis renders the config.json dynamically and we want to return different apps, based on the users role / permissions. We can try to get the order right on the server, or phoenix extensions learn dependencies ... shudder

For now, I'll update the defaults in ocis-phoenix.

Related: #2544

Activity

  1. added
    Type:Bug
    on Jan 17, 2020
  2. added a commit that references this issue on Jan 17, 2020
  3. added
    Priority:p1-urgent
    Priority:p3-medium
    and removed
    Priority:p1-urgent
    on Dec 3, 2021
  4. kulmann commented on Mar 8, 2022

    @kulmann
    Contributor

    This has been solved in #5752

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:p3-mediumTopic:Extensions-frameworkType:Bug

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions