Git Product home page Git Product logo

Comments (3)

astorm avatar astorm commented on July 21, 2024

The OroKernel::collectBundles method won't find a bundle's bundles.yml file if the bundle lives inside a symlinked folder.

Steps to Reproduce

  1. Create a new bundle in the src folder, enabling it via bundles.yml
  2. Ensure OroCRM or the OroBAP platform application can see the bundle
  3. Move the bundle to a new folder mv src/Pulsestorm/Bundle/Somebundle /some/other/folder/Somebundle
  4. Clear the OroCRM or the OroBAP platform application cache and ensure the application can no longer see the the bundle
  5. Symlink the moved bundle folder lns src/Pulsestorm/Bundle/Somebundle /some/other/folder/Somebundle
  6. Clear the OroCRM or the OroBAP platform application cache

Expected Behavior: The OroCRM or the OroBAP platform application sees the bundle

Actual Behavior: The OroCRM or the OroBAP platform application does not see the bundle

Suggested Fix

It looks like the Symfony\Component\Finder\Finder object does not follow symlinks by default. Adding a call to followLinks should take care of this.

    #File: vendor/oro/platform/src/Oro/Bundle/DistributionBundle/OroKernel.php
    $finder
        ->files()
        ->in(
            array(
                $this->getRootDir() . '/../src',
                $this->getRootDir() . '/../vendor',
            )
        )
        ->followLinks()
        ->name('bundles.yml');

from platform.

DimaSoroka avatar DimaSoroka commented on July 21, 2024

Thanks @astorm, we'll include the fix into next release.

from platform.

rgrebenchuk avatar rgrebenchuk commented on July 21, 2024

Included to 1.0.0 release. Thanks

from platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.