Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8257858: [macOS]: Remove JNF dependency from libosxsecurity/KeystoreImpl.m #1845

Closed
wants to merge 18 commits into from

Conversation

@wangweij
Copy link
Contributor

@wangweij wangweij commented Dec 18, 2020

This fix covers both


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issues

  • JDK-8257858: [macOS]: Remove JNF dependency from libosxsecurity/KeystoreImpl.m
  • JDK-8257860: [macOS]: Remove JNF dependency from libosxkrb5/SCDynamicStoreConfig.m

Reviewers

Download

$ git fetch https://git.openjdk.java.net/jdk pull/1845/head:pull/1845
$ git checkout pull/1845

…mpl.m

8257858: [macOS]: Remove JNF dependency from libosxsecurity/KeystoreImpl.m
@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented Dec 18, 2020

👋 Welcome back weijun! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

@openjdk openjdk bot commented Dec 18, 2020

@wangweij The following labels will be automatically applied to this pull request:

  • core-libs
  • security

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the build label Dec 18, 2020
@wangweij
Copy link
Contributor Author

@wangweij wangweij commented Dec 18, 2020

/issue add JDK-8257860

@openjdk
Copy link

@openjdk openjdk bot commented Dec 18, 2020

@wangweij
Adding additional issue to issue list: 8257860: [macOS]: Remove JNF dependency from libosxkrb5/SCDynamicStoreConfig.m.

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented Jan 15, 2021

@wangweij This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@wangweij
Copy link
Contributor Author

@wangweij wangweij commented Jan 21, 2021

New commit pushed. There is completely no dependency on JavaNativeFramework anymore.

Major change this time: Update the format of SCDynamicStoreConfig::getKerberosConfig.

ToDo: clean up JNIUtilities.h, take back JNFPerformEnvBlock.

@erikj79
Copy link
Member

@erikj79 erikj79 commented Jan 29, 2021

/label build

@openjdk
Copy link

@openjdk openjdk bot commented Jan 29, 2021

@erikj79 The build label was already applied.

@wangweij wangweij marked this pull request as ready for review Jan 29, 2021
@openjdk openjdk bot added the rfr label Jan 29, 2021
@mlbridge
Copy link

@mlbridge mlbridge bot commented Jan 29, 2021

Copy link
Member

@erikj79 erikj79 left a comment

Build changes look good.

@openjdk
Copy link

@openjdk openjdk bot commented Jan 29, 2021

@wangweij 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:

8257858: [macOS]: Remove JNF dependency from libosxsecurity/KeystoreImpl.m
8257860: [macOS]: Remove JNF dependency from libosxkrb5/SCDynamicStoreConfig.m

Reviewed-by: erikj, prr, ihse, valeriep

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 54 new commits pushed to the master branch:

  • b0ee7a8: 8241995: Clarify InetSocketAddress::toString specification
  • 0ef93fe: 8259265: Refactor UncaughtExceptions shell test as java test.
  • 5324b5c: 8260998: Shenandoah: Restore reference processing statistics reporting
  • c8de943: 8260617: Merge ZipFile encoding check with the initial hash calculation
  • ae2c5f0: 8260581: IGV: enhance node search
  • 9037615: 8222850: jshell tool: Misleading cascade compiler error in switch expression with undefined vars
  • 91e6c75: 8260928: InitArrayShortSize constraint func should print a helpful error message
  • cb127a4: 8198343: Test java/awt/print/PrinterJob/TestPgfmtSetMPA.java may fail w/o printer
  • c008410: 8197825: [Test] Intermittent timeout with javax/swing JColorChooser Test
  • b9d4211: 8260193: Remove JVM_GetInterfaceVersion() and JVM_DTraceXXX
  • ... and 44 more: https://git.openjdk.java.net/jdk/compare/f5ca8385abf22678fdc9c965c60d714d20f54100...master

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 master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready label Jan 29, 2021
@prrace
prrace approved these changes Jan 30, 2021
wangweij added 2 commits Jan 30, 2021
only in patch2:
unchanged:
@wangweij
Copy link
Contributor Author

@wangweij wangweij commented Jan 30, 2021

Added a test. Unfortunately it has to be manual because updating the dynamic store needs sudo privilege.

@AlanBateman
Copy link
Contributor

@AlanBateman AlanBateman commented Jan 31, 2021

/label remove core-libs

@openjdk openjdk bot removed the core-libs label Jan 31, 2021
@openjdk
Copy link

@openjdk openjdk bot commented Jan 31, 2021

@AlanBateman
The core-libs label was successfully removed.

Copy link
Member

@magicus magicus left a comment

Basically looks good, but the Obj-C test file needs proper handling.

make/test/JtregNativeJdk.gmk Outdated Show resolved Hide resolved
@openjdk openjdk bot removed ready rfr labels Feb 1, 2021
@erikj79
erikj79 approved these changes Feb 1, 2021
Copy link
Member

@erikj79 erikj79 left a comment

Build changes look good. Thanks for fixing the .m support in TestFilesCompilation.gmk!

@magicus
magicus approved these changes Feb 2, 2021
Copy link
Member

@magicus magicus left a comment

Looks good now!

if (!kdcs.isEmpty()) {
ri.put("kdc", kdcs);
}
realms.put(nextRealm, ri);

This comment has been minimized.

@valeriepeng

valeriepeng Feb 3, 2021

Do you need to check if ri is empty?

This comment has been minimized.

@wangweij

wangweij Feb 3, 2021
Author Contributor

It should make no difference to applications whether there is an empty section or not, but I can remove it.

Copy link

@valeriepeng valeriepeng left a comment

Rest of the Kerberos config handling changes look fine.
Thanks!

@wangweij
Copy link
Contributor Author

@wangweij wangweij commented Feb 3, 2021

/integrate

@openjdk openjdk bot closed this Feb 3, 2021
@openjdk openjdk bot added integrated and removed ready rfr labels Feb 3, 2021
@openjdk
Copy link

@openjdk openjdk bot commented Feb 3, 2021

@wangweij Since your change was applied there have been 55 commits pushed to the master branch:

  • 472bf62: 8258799: [Testbug] RandomCommandsTest must check if tested directive is added via jcmd
  • b0ee7a8: 8241995: Clarify InetSocketAddress::toString specification
  • 0ef93fe: 8259265: Refactor UncaughtExceptions shell test as java test.
  • 5324b5c: 8260998: Shenandoah: Restore reference processing statistics reporting
  • c8de943: 8260617: Merge ZipFile encoding check with the initial hash calculation
  • ae2c5f0: 8260581: IGV: enhance node search
  • 9037615: 8222850: jshell tool: Misleading cascade compiler error in switch expression with undefined vars
  • 91e6c75: 8260928: InitArrayShortSize constraint func should print a helpful error message
  • cb127a4: 8198343: Test java/awt/print/PrinterJob/TestPgfmtSetMPA.java may fail w/o printer
  • c008410: 8197825: [Test] Intermittent timeout with javax/swing JColorChooser Test
  • ... and 45 more: https://git.openjdk.java.net/jdk/compare/f5ca8385abf22678fdc9c965c60d714d20f54100...master

Your commit was automatically rebased without conflicts.

Pushed as commit 4a8b5c1.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@wangweij wangweij deleted the wangweij:8257858 branch Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
6 participants