What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Did Zed module (controller) loading changed recently? our custom zed module suddenly doesn't work af

UK5DS29L2
UK5DS29L2 Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet
edited November 2019 in Help

Did Zed module (controller) loading changed recently? our custom zed module suddenly doesn't work after recent package updates (gives no route error now, was serving a JSON before)

Comments

  • not that i am aware of πŸ€”

  • i’ll ask internally

  • UK5DS29L2
    UK5DS29L2 Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet

    my guess is something needs to be done after installing "spryker/router-extension" maybe?

  • Sylvain Gaffie
    Sylvain Gaffie Cloud Engineer @Spryker. Sprykee Posts: 18 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited November 2019

    Hi, is your controller a gateway controller and named something else than GatewayController?

  • Sylvain Gaffie
    Sylvain Gaffie Cloud Engineer @Spryker. Sprykee Posts: 18 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited November 2019
    $config[AuthConstants::AUTH_DEFAULT_CREDENTIALS] = [
        'yves_system' => [
            'rules' => [
                [
                    'bundle' => '*',
                    'controller' => 'gateway',
                    'action' => '*',
                ],
            ],
            // Please replace this token for your project
            'token' => 'XXXXX',
        ],
    ];
    

    if so, you need to edit this to have it white listed. At the moment (with this config) it accepts only GatewayController. There's been some changes in the way ACL are working yes.

  • UK5DS29L2
    UK5DS29L2 Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet

    hm no. it's ZED controller, called StockController which extends Spryker\Zed\Kernel\Communication\Controller\AbstractController (if that helps)

  • Sylvain Gaffie
    Sylvain Gaffie Cloud Engineer @Spryker. Sprykee Posts: 18 πŸ§‘πŸ»β€πŸš€ - Cadet

    Sorry, I may be missing something but this still look like what I am suggesting. It should be named GatewayController as per Spryker convention or white listed.

  • Sylvain Gaffie
    Sylvain Gaffie Cloud Engineer @Spryker. Sprykee Posts: 18 πŸ§‘πŸ»β€πŸš€ - Cadet

    try to unregister AclBootstrapProvider in ApplicationDependencyProvider, if it works again, that is the issue.

  • Sylvain Gaffie
    Sylvain Gaffie Cloud Engineer @Spryker. Sprykee Posts: 18 πŸ§‘πŸ»β€πŸš€ - Cadet

    oh sorry AbstractController I read the namespace wrong, nevermind that's not your issue.

  • UK5DS29L2
    UK5DS29L2 Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet

    yeah, AclBootstrapProvider is not even registered

  • UK5DS29L2
    UK5DS29L2 Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet
    - Removing symfony/http-client-contracts (v2.0.0)
      - Removing symfony/http-client-contracts (v2.0.0)
      - Removing symfony/http-client (v5.0.0)
      - Removing spryker/web-profiler (1.5.0)
      - Removing spryker/product-offer-stock-data-import (0.1.1)
      - Removing spryker/product-offer-stock (0.1.2)
      - Removing spryker/product-offer (0.1.1)
      - Removing spryker/merchant-product-offer-storage (0.1.0)
      - Removing spryker/merchant-gui-extension (1.0.0)
      - Removing spryker/merchant-extension (1.0.0)
      - Removing spryker/http-extension (1.0.0)
      - Removing spryker/http (1.1.0)
      - Removing spryker/decimal-object (1.0.0)
      - Removing spryker/customer-access-rest-api (1.1.0)
      - Removing spryker/cms-slot-store-connector (0.2.0)
      - Removing spryker/cms-slot-locale-connector (0.2.0)
      - Removing spryker/chart-gui (1.0.0)
      - Removing spryker-shop/storage-router (0.1.0)
      - Removing spryker-sdk/codeception-phantoman (0.1.0)
      - Removing sebastian/type (1.1.3)
      - Removing hoa/ustring (4.17.01.16)
      - Removing hoa/stream (1.17.02.21)
      - Removing hoa/protocol (1.17.01.14)
      - Removing hoa/iterator (2.17.01.10)
      - Removing hoa/file (1.17.07.11)
      - Removing hoa/exception (1.17.01.16)
      - Removing hoa/event (1.17.01.13)
      - Removing hoa/console (3.17.05.02)
      - Removing hoa/consistency (1.17.05.02)
      - Removing spryker-shop/merchant-product-offer-widget (0.1.0)
      - Removing spryker-shop/merchant-profile-page (0.1.1)
      - Removing spryker/merchant-profile-storage (0.1.1)
      - Removing spryker/merchant-profile-gui (0.1.1)
      - Removing spryker/shipment-gui (2.1.0)
      - Removing spryker/shipment-data-import (1.0.0)
      - Removing spryker/quote-approval-shipment-connector (1.0.1)
      - Removing spryker/merchant-sales-order (0.1.1)
      - Removing spryker/merchant-profile-data-import (0.1.0)
      - Removing spryker/merchant-product-offer-data-import (0.1.0)
      - Removing spryker/merchant-product-offer (0.1.1)
      - Removing spryker/cms-slot-storage (0.1.0)
      - Removing spryker/merchant-profile (0.1.1)
      - Installing composer/ca-bundle (1.2.4): Loading from cache
      - Installing symfony/var-exporter (v5.0.0): Loading from cache
      - Installing psr/cache (1.0.1): Loading from cache
      - Installing symfony/cache-contracts (v2.0.0): Loading from cache
      - Installing symfony/cache (v5.0.0): Loading from cache
      - Installing symfony/framework-bundle (v4.4.0): Loading from cache
      - Installing site5/phantoman (v2.0.1): Loading from cache
    

    those changes make it work again (essentially reverting an update found in spryker-shop/suite

  • UK5DS29L2
    UK5DS29L2 Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet

    now the question is WHAT EXACTLY broke it

  • UQQ1ZQF99
    UQQ1ZQF99 Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet

    You could step through the invocations via XDebug. One time with the old versions, and one time with he new ones. Just an idea..?! But therefore you would need an entry point where you can set your initial breakpoint, otherwise it would take hours 🀨

  • UK5DS29L2
    UK5DS29L2 Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet

    it already took hours to get where I am, waiting for Spryker to cleanup semvers or provide updates now