Skip to content

8320943: Files/probeContentType/Basic.java fails on latest Windows 11 - content type mismatch #2254

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

Closed
wants to merge 3 commits into from

Conversation

amosshi
Copy link
Contributor

@amosshi amosshi commented Feb 28, 2024

Backport of JDK-8320943

Testing

  • Local: Test passed on Mac
    • Basic.java - Test results: passed: 1

Mac machine

MacBook Pro
16-inch, 2021
Chip: Apple M1 Max
MacOS: 14.3.1 (23D60)

Windows machine:

Device name	W-PW05T4AD
Processor	12th Gen Intel(R) Core(TM) i7-12800H   2.40 GHz
Installed RAM	64.0 GB (63.7 GB usable)
System type	64-bit operating system, x64-based processor
  • 💛 Pipeline: All GHA Sanity Checks passed except linux-cross-compile / build (riscv64)

    • ❌ It failed with message Error: Unable to find an artifact with the name: bundles-linux-x64
    • ✅ This error is on Linux riscv64 - which not caused by current test case, because current PR is for Windows
  • Testing Machine: SAP nightlies passed on 2024-03-01,02,03


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
  • JDK-8320943 needs maintainer approval

Issue

  • JDK-8320943: Files/probeContentType/Basic.java fails on latest Windows 11 - content type mismatch (Bug - P4 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/2254/head:pull/2254
$ git checkout pull/2254

Update a local copy of the PR:
$ git checkout pull/2254
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/2254/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2254

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/2254.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Feb 28, 2024

👋 Welcome back ashi! 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 openjdk bot changed the title Backport 87516e29dc5015c4cab2c07c5539ad30f2768667 8320943: Files/probeContentType/Basic.java fails on latest Windows 11 - content type mismatch Feb 28, 2024
@openjdk
Copy link

openjdk bot commented Feb 28, 2024

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport rfr Pull request is ready for review labels Feb 28, 2024
@mlbridge
Copy link

mlbridge bot commented Feb 28, 2024

Webrevs

Copy link
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

exTypes.add(new ExType("webp", List.of("image/webp")));
exTypes.add(new ExType("xls", List.of("application/vnd.ms-excel")));
exTypes.add(new ExType("xlsx", List.of("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")));
// exTypes.add(new ExType("wasm", List.of("application/wasm")));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, JDK-8297609 is not in 17u. Can you add a comment explaining this, please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have spent a separate line, but ok.

@openjdk
Copy link

openjdk bot commented Mar 12, 2024

⚠️ @amosshi This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@amosshi
Copy link
Contributor Author

amosshi commented Mar 13, 2024

/approval request "Backporting for parity with 17.0.12-oracle. No risk, test fix. Un-Clean backport. SAP nightlies passed on 2024-03-01,03”

@openjdk
Copy link

openjdk bot commented Mar 13, 2024

@amosshi
8320943: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Mar 13, 2024
@openjdk
Copy link

openjdk bot commented Mar 13, 2024

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

8320943: Files/probeContentType/Basic.java fails on latest Windows 11 - content type mismatch

Reviewed-by: mdoerr

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

  • 6488725: 8324598: use mem_unit when working with sysinfo memory and swap related information
  • 02ef1c7: 8319128: sun/security/pkcs11 tests fail on OL 7.9 aarch64
  • 09ebd1c: 8320129: "top" command during jtreg failure handler does not display CPU usage on OSX
  • 49c260d: 8315898: Open source swing JMenu tests
  • b632518: 8299858: [Metrics] Swap memory limit reported incorrectly when too large
  • 3433fdb: 8314283: Support for NSS tests on aarch64 platforms
  • 0606e5a: 8326891: Prefer RPATH over RUNPATH for $ORIGIN rpaths in internal JDK binaries
  • a22ac46: 8320113: [macos14] : ShapeNotSetSometimes.java fails intermittently on macOS 14
  • a14f845: 8320342: Use PassFailJFrame for TruncatedPopupMenuTest.java
  • f8cfa35: 8319372: C2 compilation fails with "Bad immediate dominator info"
  • ... and 40 more: https://git.openjdk.org/jdk17u-dev/compare/39c9e9d2bf82cd85dc7d47031b71e97574533fe7...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.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@TheRealMDoerr) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels Mar 13, 2024
@amosshi
Copy link
Contributor Author

amosshi commented Mar 13, 2024

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Mar 13, 2024
@openjdk
Copy link

openjdk bot commented Mar 13, 2024

@amosshi
Your change (at version a989136) is now ready to be sponsored by a Committer.

@TheRealMDoerr
Copy link
Contributor

/sponsor

@openjdk
Copy link

openjdk bot commented Mar 14, 2024

Going to push as commit 27cf2f4.
Since your change was applied there have been 50 commits pushed to the master branch:

  • 6488725: 8324598: use mem_unit when working with sysinfo memory and swap related information
  • 02ef1c7: 8319128: sun/security/pkcs11 tests fail on OL 7.9 aarch64
  • 09ebd1c: 8320129: "top" command during jtreg failure handler does not display CPU usage on OSX
  • 49c260d: 8315898: Open source swing JMenu tests
  • b632518: 8299858: [Metrics] Swap memory limit reported incorrectly when too large
  • 3433fdb: 8314283: Support for NSS tests on aarch64 platforms
  • 0606e5a: 8326891: Prefer RPATH over RUNPATH for $ORIGIN rpaths in internal JDK binaries
  • a22ac46: 8320113: [macos14] : ShapeNotSetSometimes.java fails intermittently on macOS 14
  • a14f845: 8320342: Use PassFailJFrame for TruncatedPopupMenuTest.java
  • f8cfa35: 8319372: C2 compilation fails with "Bad immediate dominator info"
  • ... and 40 more: https://git.openjdk.org/jdk17u-dev/compare/39c9e9d2bf82cd85dc7d47031b71e97574533fe7...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Mar 14, 2024
@openjdk openjdk bot closed this Mar 14, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Mar 14, 2024
@openjdk
Copy link

openjdk bot commented Mar 14, 2024

@TheRealMDoerr @amosshi Pushed as commit 27cf2f4.

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

@amosshi amosshi deleted the backport-8320943 branch March 14, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants