Bug 591 - Property 'jnlp.' Aliasing Broken
Summary: Property 'jnlp.' Aliasing Broken
Status: RESOLVED FIXED
Alias: None
Product: Gluegen
Classification: JogAmp
Component: core (show other bugs)
Version: 2
Hardware: All all
: --- critical
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2012-06-21 10:10 CEST by Sven Gothel
Modified: 2012-06-21 20:46 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
2a10f604b65f12ae5e8987bfa73cffcc1d5f796e
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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