Bug 591

Summary: Property 'jnlp.' Aliasing Broken
Product: [JogAmp] Gluegen Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: critical    
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
2a10f604b65f12ae5e8987bfa73cffcc1d5f796e
Workaround: ---

Description Sven Gothel 2012-06-21 10:10:43 CEST
I have broken GlueGen's [and hence all modules] 
property parsing in Debug*/PropertyAccess using the 'jnlp.' prefix.

+++

Abstract:

Usually you set a property like 
  jogamp.debug.IOUtil
  jogamp.debug=all
to enable either IOUtil debugging or all debugging.

In case you use Applets or JNLP you cannot use above 
property namespace, since it's considered insecure.
GlueGen would allow you to use an 'jnlp.' alias, e.g.:
  jnlp.jogamp.debug.IOUtil
  jnlp.jogamp.debug=all

The latter are secure properties and will be passed to the invoked JVM.

+++

I broke that logic in GlueGen w/ commit f4ac27e177f6deb444280d3b375e7d343e38bd08.
Comment 1 Sven Gothel 2012-06-21 10:12:41 CEST
Example of a JNLP file using secure JogAmp's debug properties:

...
    <resources>
      <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
      <property name="sun.java2d.noddraw" value="true"/>
      <property name="jnlp.jogamp.debug" value="all"/>
      <property name="jnlp.nativewindow.debug" value="all"/>
      <property name="jnlp.jogl.debug" value="all"/>
      <property name="jnlp.newt.debug" value="all"/>
      <jar href="http://jogamp.org/deployment/archive/rc/v2.0-rc3/jogl-demos/jar/jogl-demos.jar" main="true"/>
      <jar href="http://jogamp.org/deployment/archive/rc/v2.0-rc3/jogl-demos/jar/jogl-demos-util.jar" />
      <extension name="jogl-all-awt" href="http://jogamp.org/deployment/archive/rc/v2.0-rc3/jogl-all-awt.jnlp" />
    </resources>
...
Comment 2 Sven Gothel 2012-06-21 20:46:29 CEST
Fixed w/ 2a10f604b65f12ae5e8987bfa73cffcc1d5f796e