Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330095 - JMX: Add MBean support for new [eclipselink.logging.parameters] parameter binding log/exception hiding security feature
Summary: JMX: Add MBean support for new [eclipselink.logging.parameters] parameter bin...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL: https://fisheye2.atlassian.com/change...
Whiteboard:
Keywords:
Depends on: 332312 316513 329852
Blocks:
  Show dependency tree
 
Reported: 2010-11-12 09:55 EST by Michael OBrien CLA
Modified: 2022-06-09 10:08 EDT (History)
1 user (show)

See Also:
michael.f.obrien: documentation+


Attachments

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