8290367: Update default value and extend the scope of com.sun.jndi.ldap.object.trustSerialData system property#10228
Conversation
…ap.object.trustSerialData system property
|
👋 Welcome back aefimov! A progress list of the required criteria for merging this PR into |
|
/csr needed |
|
@AlekseiEfimov an approved CSR request is already required for this pull request. |
|
@AlekseiEfimov The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
test/jdk/com/sun/jndi/ldap/objects/RemoteLocationAttributeTest.java
Outdated
Show resolved
Hide resolved
dfuch
left a comment
There was a problem hiding this comment.
@AlekseiEfimov The CSR is well written, and the update to the module-info.java look good to me. The code changes and tests changes look good. I'm glad to see this change.
src/java.naming/share/classes/com/sun/jndi/ldap/VersionHelper.java
Outdated
Show resolved
Hide resolved
jaikiran
left a comment
There was a problem hiding this comment.
Thank you for the changes, Aleksei. They look fine to me.
|
/integrate |
|
@AlekseiEfimov This pull request has not yet been marked as ready for integration. |
|
@AlekseiEfimov This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 123 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
Going to push as commit 7765942.
Your commit was automatically rebased without conflicts. |
|
@AlekseiEfimov Pushed as commit 7765942. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Summary of the change
The LDAP Naming Service Provider implementation's default settings are changed to disallow deserialization and reconstruction of Java objects from different LDAP attributes (RFC 2713). Currently, only the deserialization is controlled by the
com.sun.jndi.ldap.object.trustSerialDatasystem property, and it is allowed by default.The change proposed here switches the default value of the
com.sun.jndi.ldap.object.trustSerialDatasystem property to"false", and also extends its scope to cover the reconstruction of RMI remote objects from thejavaRemoteLocationLDAP attribute.CSR for this change can be viewed here.
List of code changes
Switch the default value of the 'com.sun.jndi.ldap.object.trustSerialData' system property to "false".
Extend the scope of the property to also cover the reconstruction of RMI remote objects from the deprecated 'javaRemoteLocation' LDAP attribute.
Document the support for
javaRemoteLocationand thejavaReferenceAddressLDAP attributes injava.naming's module-info.Test changes
New
test/jdk/com/sun/jndi/ldap/objects/RemoteLocationAttributeTest.javatest has been added to test thatcom.sun.jndi.ldap.object.trustSerialDatasystem property can be used to control reconstruction of RMI objects from thejavaRemoteLocationLDAP attribute.test/jdk/javax/naming/module/RunBasic.javawas modified to passcom.sun.jndi.ldap.object.trustSerialData=trueto the sub-tests that rely on reconstruction/deserialization from LDAP attributes.During the update for
test/jdk/javax/naming/module/RunBasic.java, it was spotted that sub-tests apps launched in separate processes were returning the '0' exit value irrelevant to their execution status. All these sub-tests were modified to throw an exception when failure is observed. It helps to ensure that the exit value of launched process is not '0' for failed sub-tests.Testing
tier1-tier3and JNDI regression/JCK tests not showing any failures related to this change.No failures observed for the modified regression tests.
Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10228/head:pull/10228$ git checkout pull/10228Update a local copy of the PR:
$ git checkout pull/10228$ git pull https://git.openjdk.org/jdk pull/10228/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10228View PR using the GUI difftool:
$ git pr show -t 10228Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10228.diff