You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2004/02/19 16:45:08 UTC

cvs commit: xml-batik/test-resources/org/apache/batik/bridge ecmaCheckNoLoad2.svg IWasLoaded.jar IWasLoadedToo.jar JarCheckPermissionsDenied.jar JarCheckPermissionsGranted.jar unitTesting.xml

vhardy      2004/02/19 07:45:08

  Modified:    test-resources/org/apache/batik/bridge IWasLoaded.jar
                        IWasLoadedToo.jar JarCheckPermissionsDenied.jar
                        JarCheckPermissionsGranted.jar unitTesting.xml
  Added:       test-resources/org/apache/batik/bridge ecmaCheckNoLoad2.svg
  Log:
  New security regression tests
  
  Revision  Changes    Path
  1.7       +15 -15    xml-batik/test-resources/org/apache/batik/bridge/IWasLoaded.jar
  
  	<<Binary file>>
  
  
  1.7       +13 -12    xml-batik/test-resources/org/apache/batik/bridge/IWasLoadedToo.jar
  
  	<<Binary file>>
  
  
  1.6       +20 -18    xml-batik/test-resources/org/apache/batik/bridge/JarCheckPermissionsDenied.jar
  
  	<<Binary file>>
  
  
  1.6       +17 -18    xml-batik/test-resources/org/apache/batik/bridge/JarCheckPermissionsGranted.jar
  
  	<<Binary file>>
  
  
  1.10      +21 -1     xml-batik/test-resources/org/apache/batik/bridge/unitTesting.xml
  
  Index: unitTesting.xml
  ===================================================================
  RCS file: /home/cvs/xml-batik/test-resources/org/apache/batik/bridge/unitTesting.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- unitTesting.xml	31 Oct 2003 22:39:42 -0000	1.9
  +++ unitTesting.xml	19 Feb 2004 15:45:08 -0000	1.10
  @@ -64,6 +64,10 @@
               <property name="Secure" class="java.lang.Boolean" value="true" />
           </test>
   
  +        <test id="ecmaCheckPermissionsDenied2">
  +            <property name="Secure" class="java.lang.Boolean" value="true" />
  +        </test>
  +
           <test id="ecmaCheckPermissionsGranted">
               <property name="Secure" class="java.lang.Boolean" value="false" />
           </test>
  @@ -71,6 +75,22 @@
           <test id="ecmaCheckNoLoad">
               <property name="Scripts" class="java.lang.String" 
                         value="application/java-archive" />
  +        </test>
  +
  +        <test id="ecmaCheckNoLoad2">
  +            <property name="Scripts" class="java.lang.String" 
  +                      value="application/java-archive" />
  +        </test>
  +
  +        <test id="ecmaCheckNoLoad2">
  +            <property name="Scripts" class="java.lang.String" 
  +                      value="text/ecmascript" />
  +            <property name="Constrain" class="java.lang.Boolean" 
  +                      value="true" />
  +            <property name="Document" class="java.lang.Boolean" 
  +                      value="false" />
  +            <property name="Embed" class="java.lang.Boolean" 
  +                      value="false" />
           </test>
   
           <test id="ecmaCheckLoad">
  
  
  
  1.1                  xml-batik/test-resources/org/apache/batik/bridge/ecmaCheckNoLoad2.svg
  
  Index: ecmaCheckNoLoad2.svg
  ===================================================================
  <?xml version="1.0" standalone="no"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
  
  <!--
  
   ============================================================================
                     The Apache Software License, Version 1.1
   ============================================================================
  
   Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  
   Redistribution and use in source and binary forms, with or without modifica-
   tion, are permitted provided that the following conditions are met:
  
   1. Redistributions of  source code must  retain the above copyright  notice,
      this list of conditions and the following disclaimer.
  
   2. Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
  
   3. The end-user documentation included with the redistribution, if any, must
      include  the following  acknowledgment:  "This product includes  software
      developed  by the  Apache Software Foundation  (http://www.apache.org/)."
      Alternately, this  acknowledgment may  appear in the software itself,  if
      and wherever such third-party acknowledgments normally appear.
  
   4. The names "Batik" and  "Apache Software Foundation" must  not  be
      used to  endorse or promote  products derived from  this software without
      prior written permission. For written permission, please contact
      apache@apache.org.
  
   5. Products  derived from this software may not  be called "Apache", nor may
      "Apache" appear  in their name,  without prior written permission  of the
      Apache Software Foundation.
  
   THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
   APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
   INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
   DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
   OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
   ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
   (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
   THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  
   This software  consists of voluntary contributions made  by many individuals
   on  behalf of the Apache Software  Foundation. For more  information on the
   Apache Software Foundation, please see <http://www.apache.org/>.
  
  -->
  
  <!-- ========================================================================= -->
  <!-- Checks that access to critical functions is not allowed.                  -->
  <!--                                                                           -->
  <!-- @author vincent.hardy@sun.com                                             -->
  <!-- @version $Id: ecmaCheckNoLoad2.svg,v 1.1 2004/02/19 15:45:08 vhardy Exp $   -->
  <!-- ========================================================================= -->
  
  <svg xmlns="http://www.w3.org/2000/svg" 
       xmlns:xlink="http://www.w3.org/1999/xlink" 
       xmlns:test="http://xml.apache.org/batik/test"
       width="450" height="500" viewBox="0 0 450 500">
  
      <test:testResult id="testResult" result="passed"/>
      <script type="text/ecmascript" ><![CDATA[
          var result = document.getElementById("testResult");
          result.setAttributeNS(null, "result", "failed");
          result.setAttributeNS(null, "errorCode", "iWasLoaded.js should not have been loaded");
      ]]></script>
  
  </svg>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org