Uploaded image for project: 'DAM Focal'
  1. DAM Focal
  2. RESPDAM-50

Prevent cropping overload

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.2
    • 2.0.6
    • None
    • None
    • Sprint 14

      Prevent flooding the system with multiple calls to .imaging:

      /magnolia/.imaging/focalpoint/999x999/dam/jcr:c322407c-02b7-4fbb-ab8f-8a61dbc349a2/Carrousel.jpg
      

      A hacker would call this url incrementing "999x999" from 1 to infinite.

      So that the imaging workspace would overflow or would request a high CPU usage from cropping the images.

      Notes:
      We should configure different breakpoints (bp) and the imaging/focal point module should return the resources that equals is is just above this bp.

      For example, we could configure:

      <=400 returns 400px
      <=800 returns 800px
      <=1024 returns 1024px
      <=1200 returns 1200px
      <=1600 returns 1600px (this is the last the the greatest)
      

        Acceptance criteria

              rfalvo Raphael Falvo
              rgange Richard Gange
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD