Skip to content

Conversation

@iseki0
Copy link

@iseki0 iseki0 commented Aug 10, 2023

Fix WindowsException allow ERROR_PRIVILEGE_NOT_HELD(1314) be converted to AccessDeniedException
JDK-8368907


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Errors

 ⚠️ Found copyright format issue for oracle in [test/jdk/javax/net/ssl/TLSCommon/TestSessionLocalPrincipal.java, test/jdk/javax/swing/JFileChooser/6738668/bug6738668.java]
 ⚠️ OCA signatory status must be verified

Integration blocker

 ⚠️ Title mismatch between PR and JBS for issue JDK-8368907

Warnings

 ⚠️ Patch contains a binary file (src/java.base/share/classes/jdk/internal/icu/impl/data/icudt72b/nfc.nrm)
 ⚠️ Patch contains a binary file (src/java.base/share/classes/jdk/internal/icu/impl/data/icudt72b/nfkc.nrm)
 ⚠️ Patch contains a binary file (src/java.base/share/classes/jdk/internal/icu/impl/data/icudt72b/ubidi.icu)
 ⚠️ Patch contains a binary file (src/java.base/share/classes/jdk/internal/icu/impl/data/icudt72b/uprops.icu)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/java/awt/doc-files/BorderLayout-1.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/java/awt/doc-files/FlowLayout-1.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/java/awt/doc-files/GridBagLayout-1.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/java/awt/doc-files/GridBagLayout-2.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/java/awt/doc-files/GridLayout-1.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/java/awt/doc-files/GridLayout-2.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/javax/swing/beaninfo/images/JAppletColor16.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/javax/swing/beaninfo/images/JAppletColor32.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/javax/swing/beaninfo/images/JAppletMono16.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/javax/swing/beaninfo/images/JAppletMono32.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/javax/swing/doc-files/BoxLayout-1.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/javax/swing/doc-files/JRootPane-1.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/javax/swing/text/doc-files/Document-insert.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/javax/swing/text/doc-files/Document-remove.gif)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-bw16.png)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-bw24.png)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-bw32.png)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-bw48.png)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-interim16.png)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-interim24.png)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-interim32.png)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-interim48.png)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-yellow16.png)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-yellow24.png)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-yellow32.png)
 ⚠️ Patch contains a binary file (src/java.desktop/share/classes/sun/awt/resources/security-icon-yellow48.png)
 ⚠️ Patch contains a binary file (src/java.desktop/windows/native/libawt/windows/security_warning.ico)
 ⚠️ Patch contains a binary file (src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/glass.png)
 ⚠️ Patch contains a binary file (src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/x.png)
 ⚠️ Patch contains a binary file (src/utils/IdealGraphVisualizer/View/src/main/resources/com/sun/hotspot/igv/view/images/hideDuplicates.png)
 ⚠️ Patch contains a binary file (test/hotspot/jtreg/gc/logging/testcases.jar)
 ⚠️ Patch contains a binary file (test/hotspot/jtreg/runtime/ClassFile/JsrRewritingTestCase.jar)
 ⚠️ Patch contains a binary file (test/hotspot/jtreg/runtime/ClassFile/testcase.jar)
 ⚠️ Patch contains a binary file (test/jdk/java/security/KeyRep/RSA.pre.1.5.key)
 ⚠️ Patch contains a binary file (test/jdk/java/security/ProtectionDomain/AllPerm.jar)
 ⚠️ Patch contains a binary file (test/jdk/java/util/zip/ZipFile/crash.jar)
 ⚠️ Patch contains a binary file (test/jdk/java/util/zip/ZipFile/input.jar)
 ⚠️ Patch contains a binary file (test/jdk/java/util/zip/ZipFile/input.zip)
 ⚠️ Patch contains a binary file (test/jdk/java/util/zip/test.zip)
 ⚠️ Patch contains a binary file (test/jdk/javax/management/loading/LibraryLoader/native.jar)
 ⚠️ Patch contains a binary file (test/jdk/javax/rmi/ssl/keystore)
 ⚠️ Patch contains a binary file (test/jdk/javax/rmi/ssl/truststore)
 ⚠️ Patch contains a binary file (test/jdk/javax/swing/AbstractButton/5049549/DE1.gif)
 ⚠️ Patch contains a binary file (test/jdk/javax/swing/AbstractButton/5049549/DI1.gif)
 ⚠️ Patch contains a binary file (test/jdk/javax/swing/AbstractButton/5049549/DS1.gif)
 ⚠️ Patch contains a binary file (test/jdk/javax/swing/AbstractButton/5049549/PR1.gif)
...

Issue

  • JDK-8368907: (fs) Windows Error code 1314 not translated to AccessDeniedException (win) (Enhancement - P4) ⚠️ Title mismatch between PR and JBS. ⚠️ Issue is already resolved. Consider making this a "backport pull request" by setting the PR title to Backport <hash> with the hash of the original commit. See Backports.

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/15221/head:pull/15221
$ git checkout pull/15221

Update a local copy of the PR:
$ git checkout pull/15221
$ git pull https://git.openjdk.org/jdk.git pull/15221/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 15221

View PR using the GUI difftool:
$ git pr show -t 15221

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/15221.diff

@bridgekeeper bridgekeeper bot added the oca Needs verification of OCA signatory status label Aug 10, 2023
@bridgekeeper
Copy link

bridgekeeper bot commented Aug 10, 2023

Hi @iseki0, welcome to this OpenJDK project and thanks for contributing!

We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing /signed in a comment in this pull request.

If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user iseki0" as summary for the issue.

If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing /covered in a comment in this pull request.

@openjdk
Copy link

openjdk bot commented Aug 10, 2023

@iseki0 The following label will be automatically applied to this pull request:

  • nio

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.

@openjdk openjdk bot added the nio nio-dev@openjdk.org label Aug 10, 2023
@bridgekeeper
Copy link

bridgekeeper bot commented Sep 7, 2023

@iseki0 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!

@iseki0
Copy link
Author

iseki0 commented Sep 7, 2023

I'm waiting OCA review. 😳

@iseki0
Copy link
Author

iseki0 commented Sep 12, 2023

/signed

@bridgekeeper bridgekeeper bot added the oca-verify Needs verification of OCA signatory status label Sep 12, 2023
@bridgekeeper
Copy link

bridgekeeper bot commented Sep 12, 2023

Thank you! Please allow for up to two weeks to process your OCA, although it is usually done within one to two business days. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated!

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 10, 2023

@iseki0 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!

@iseki0
Copy link
Author

iseki0 commented Oct 11, 2023

What's happened? The OCA is under reviewing for a long time.

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 8, 2023

@iseki0 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!

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 6, 2023

@iseki0 This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Dec 6, 2023
@iseki0
Copy link
Author

iseki0 commented Dec 12, 2023

/open

@openjdk openjdk bot reopened this Dec 12, 2023
@openjdk
Copy link

openjdk bot commented Dec 12, 2023

@iseki0 This pull request is now open

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 9, 2024

@iseki0 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!

@iseki0
Copy link
Author

iseki0 commented Jan 9, 2024

I want to know. What're the OCA reviewers doing? 😁

@bridgekeeper
Copy link

bridgekeeper bot commented Feb 6, 2024

@iseki0 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!

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 5, 2024

@iseki0 This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Mar 5, 2024
@iseki0
Copy link
Author

iseki0 commented Sep 19, 2024

/reopen ?

@iseki0
Copy link
Author

iseki0 commented Sep 19, 2024

/open

@openjdk
Copy link

openjdk bot commented Sep 19, 2024

@iseki0 Unknown command reopen - for a list of valid commands use /help.

@openjdk
Copy link

openjdk bot commented Sep 19, 2024

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot reopened this Sep 19, 2024
@openjdk
Copy link

openjdk bot commented Sep 19, 2024

@iseki0 This pull request is now open

@iseki0
Copy link
Author

iseki0 commented Sep 19, 2024

2 problems:

  • Where to submit issues?(I haven't an account of the bugs.openjdk.org.)
  • Why the OCA is still unverified?

@iseki0
Copy link
Author

iseki0 commented Sep 19, 2024

2 problems:

  • Where to submit issues?(I haven't an account of the bugs.openjdk.org.)
  • Why the OCA is still unverified?

@aivanov-jdk Could you help me solve the problems? Thank you.

@aivanov-jdk
Copy link
Member

aivanov-jdk commented Sep 19, 2024

Where to submit issues? (I haven't an account of the bugs.openjdk.org.)

@iseki0 You can submit a bug using https://bugreport.java.com‌.

You can also discuss this kind of issues at the core-libs-dev mailing list. People on the mailing list could also help you create an issue in JBS.

A pull request won't be announced on the relevant mailing list until it's linked to a JBS issue.

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 17, 2024

@iseki0 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!

3 similar comments
@bridgekeeper
Copy link

bridgekeeper bot commented Oct 31, 2024

@iseki0 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!

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 31, 2024

@iseki0 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!

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 31, 2024

@iseki0 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!

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 28, 2024

@iseki0 This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Nov 28, 2024
@iseki0 iseki0 changed the title Fix WindowsException allow ERROR_PRIVILEGE_NOT_HELD(1314) be converte… JDK-8368907: Fix WindowsException allow ERROR_PRIVILEGE_NOT_HELD(1314) be converted to AccessDeniedException Oct 2, 2025
@iseki0
Copy link
Author

iseki0 commented Oct 2, 2025

/open Now it's related to JDK-8368907

@iseki0
Copy link
Author

iseki0 commented Oct 2, 2025

/open

@openjdk openjdk bot reopened this Oct 2, 2025
@openjdk
Copy link

openjdk bot commented Oct 2, 2025

@iseki0 This pull request is now open

@openjdk
Copy link

openjdk bot commented Oct 2, 2025

@iseki0 This pull request is already open

@iseki0
Copy link
Author

iseki0 commented Oct 9, 2025

The message FileSystemException is difference between different Windows locale settings. In zh-Hans-CN:

jshell> Files.createSymbolicLink(Path.of("foo"), Path.of("bar"))
| 异常错误 java.nio.file.FileSystemException:foo: 客户端没有所需的特权。
| at WindowsException.translateToIOException (WindowsException.java:92)
| at WindowsException.rethrowAsIOException (WindowsException.java:103)
| at WindowsException.rethrowAsIOException (WindowsException.java:108)
| at WindowsFileSystemProvider.createSymbolicLink (WindowsFileSystemProvider.java:571)
| at Files.createSymbolicLink (Files.java:973)

| at (#1:1)

You can see I have no way to determine what happened actually, without a pattern matching on the message.

And since the message is various during different locale, it's almost impossible.

@openjdk
Copy link

openjdk bot commented Oct 14, 2025

@iseki0 this pull request can not be integrated into master due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout master-1
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push

@openjdk openjdk bot added the merge-conflict Pull request has merge conflict with target branch label Oct 14, 2025
@iseki0
Copy link
Author

iseki0 commented Oct 15, 2025

Fixed by #27753

@iseki0 iseki0 closed this Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-conflict Pull request has merge conflict with target branch nio nio-dev@openjdk.org oca Needs verification of OCA signatory status oca-verify Needs verification of OCA signatory status

Development

Successfully merging this pull request may close these issues.

2 participants