You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/11/04 17:16:44 UTC

svn commit: r1538663 - /myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/ResponseUtils.java

Author: lofwyr
Date: Mon Nov  4 16:16:44 2013
New Revision: 1538663

URL: http://svn.apache.org/r1538663
Log:
TOBAGO-633: Portlet support
 - no need to warn here

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/ResponseUtils.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/ResponseUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/ResponseUtils.java?rev=1538663&r1=1538662&r2=1538663&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/ResponseUtils.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/ResponseUtils.java Mon Nov  4 16:16:44 2013
@@ -125,7 +125,9 @@ public class ResponseUtils {
       }
     } else if (PortletUtils.isPortletApiAvailable() && response instanceof MimeResponse) {
      // TODO Portlet
-      LOG.warn("CSP not implemented for Portlet!");
+      if (contentSecurityPolicy.getMode() != ContentSecurityPolicy.Mode.OFF) {
+        LOG.warn("CSP not implemented for Portlet!");
+      }
     }
   }
 }