Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330095

Summary: JMX: Add MBean support for new [eclipselink.logging.parameters] parameter binding log/exception hiding security feature
Product: z_Archived Reporter: Michael OBrien <michael.f.obrien>
Component: EclipselinkAssignee: Project Inbox <eclipselink.foundation-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipselink.foundation-inbox
Version: unspecifiedFlags: michael.f.obrien: documentation+
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
URL: https://fisheye2.atlassian.com/changelog/eclipselink/?cs=8491
Whiteboard:
Bug Depends on: 332312, 316513, 329852    
Bug Blocks:    

Description Michael OBrien CLA 2010-11-12 09:55:51 EST
>In bug # 329852 the property eclipselink.gging.parameters was added to hide parameter binding values
>from being printed in FINE/FINER/FINEST and exception logs.

The following log fragment
   bind => [528, Ottawa,,,,
Is printed as 
    bind => [6 parameters bound]
If the persistence unit property is set

>For the JMX MBeans API we need a new wrapper function to enable/disable this flag at runtime
Comment 1 Michael OBrien CLA 2011-02-08 16:27:36 EST
>Change
FINEST: Execute query WriteObjectQuery(org.dataparallel.collatz.business.Path[id=4])
FINE: INSERT INTO UNITOFWORK (ID, ENDTIMESTAMP, EXTENT, INITIAL, MAXPATH, MAXVALUE, RETRIES, STARTTIMESTAMP, VERSION, KNOWNMAX_ID, KNOWNPATH_ID, PROCESSOR_ID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
        bind => [12 parameters bound]
>To enable parameter binding value display
FINEST: Execute query WriteObjectQuery(org.dataparallel.collatz.business.Path[id=4])
FINE: INSERT INTO UNITOFWORK (ID, STARTTIMESTAMP, VERSION, MAXPATH, EXTENT, INITIAL, RETRIES, ENDTIMESTAMP, MAXVALUE, KNOWNPATH_ID, PROCESSOR_ID, KNOWNMAX_ID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
        bind => [5, 1297192198347, 1, 1, 1267650600228229401496704253952, 1267650600228229401496703205377, 0, null, 1, 4, 1, 3]
>via
<property name="eclipselink.logging.parameters" value="true"/>
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:08:33 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink