Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-4544

Invalid requests (404) result in timeout or memory limit exceeded

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 4.3.1
    • 4.3.0
    • None

    Description

      jani.tarvainen@ibexa.co noticed that some pages are timing out on ibexa.co. He narrowed down the issue to requests resulting in 404 response. This happens in many cases: missing asset, invalid route etc.

      This is potentially dangerous as in some cases it'll leak timeout message from PHP unveiling PHP being used on the server as well as some filenames.

      Example response:

      Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /app/vendor/ibexa/commerce-shop/src/bundle/Eshop/Services/ConfigResolver.php on line 137
      
      Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 528384 bytes) in /app/vendor/ibexa/commerce-shop/src/bundle/Eshop/Services/ConfigResolver.php on line 137 

      It was reproduced on a few instances running both PHP 7.4 and 8.x, HTTP cache doesn't seem to play a role here as well. It can be reproduced locally only when prod env is used.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              maciej.kobus@ibexa.co Maciej Kobus
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: