Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3452

A local MathJax URI leads to Problems in the HeadersFilter CSP generation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12.4.2
    • Component/s: None
    • Labels:
      None

      Description

      The HeadersFilter class expects the MathJax CDN URL to be leading to another Server, setting it to a local Path ( "/mathjax/" instead of "https://mathjax.cdn.net/mathjax/" ) leads to unlogged exceptions and a silent 500 Error in turn without explanation.

      The attached Patch catches the thrown IllegalArgumentException of the URI.create function and does not append anything to the CSP when the mathJaxCdn is actually a local path.

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              d.haag Daniel Haag
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m