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

RS: disable CSP

    XMLWordPrintable

    Details

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

      Description

      Saving a NULL property should remove it, not make a red screen.
      You can reproduce the issue by disabling the CSP feature in Login > Security

      2018-04-04 20:55:03,580 [ajp-nio2-8001-exec-6] ERROR OLATRuntimeException - OLAT::ERROR ^%^ N1-E2 ^%^ org.olat.core.logging
      
       https://learn.olat.com/auth/AdminSite/0/secadmin/0
       Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15
       
       **RedScreen**
       <dispatchinfo>
       	<componentinfo>
       		<compname>ffo_main_barebone</compname>
       		<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
       		<extendedinfo>n/a</extendedinfo>
       		<event>
       			<class&gt;org.olat.core.gui.control.Event</class&gt;
       			<command>validation ok</command>
       			<tostring>com:validation ok,org.olat.core.gui.control.Event@d62b3f02</tostring>
       		</event>
       	</componentinfo>
       	<controllerinfo>
       		<controllername>org.olat.admin.security.SecurityAdminController</controllername>
       		<controllername>org.olat.admin.SystemAdminMainController</controllername>
       		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
       	</controllerinfo>
       </dispatchinfo>
       
      >>> stack of 1.cause::org.olat.core.logging.OLATRuntimeException: null
      -> at org.olat.core.gui.exception.ExceptionWindowController.<init>(ExceptionWindowController.java:116)
         at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:57)
         at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:46)
         at org.olat.core.gui.components.Window.dispatchRequest(Window.java:589)
         at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:282)
         at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
         at org.olat.dispatcher.AuthenticatedDispatcher.processValidDispatchURI(AuthenticatedDispatcher.java:273)
         at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:190)
         at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:287)
         at org.olat.core.servlets.OpenOLATServlet.doPost(OpenOLATServlet.java:230)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
      >>> stack of 2.cause::java.lang.NullPointerException: null
      -> at java.util.Hashtable.put(Hashtable.java:460)
         at java.util.Properties.setProperty(Properties.java:166)
         at org.olat.core.configuration.PersistedProperties.setStringProperty(PersistedProperties.java:369)
         at org.olat.core.configuration.AbstractSpringModule.setStringProperty(AbstractSpringModule.java:164)
         at org.olat.basesecurity.BaseSecurityModule.setContentSecurityPolicyDefaultSrc(BaseSecurityModule.java:639)
         at org.olat.admin.security.SecurityAdminController.formOK(SecurityAdminController.java:262)
         at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:380)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)
         at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
         at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:238)
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              gnaegi Florian Gnägi
              Tester:
              Mandy Menzel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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