Skip to content

docs: align contributor toolchain versions and URL image default in migration guide - #1337

Merged
GOODBOY008 merged 2 commits into
apache:mainfrom
psxjoy:docs/fix-toolchain-and-url-image-docs
Nov 12, 2026
Merged

GOODBOY008 merged 2 commits into
apache:mainfrom
psxjoy:docs/fix-toolchain-and-url-image-docs

Conversation

@psxjoy

@psxjoy psxjoy commented Nov 12, 2026

Copy link
Copy Markdown
Member

Purpose of the pull request

Fix two documentation inconsistencies on the website so the guides match the build and the code.

What's changed?

Contribution guide (en + zh-cn): toolchain versions

The English guide required Maven 3.9+ / JDK 17+, while the zh-cn guide required Maven 3.8.1+ / JDK 17+ and recommended Maven 3.9.0+ / JDK 21+. Neither matched the project:

  • The root pom.xml has no enforcer rule for Maven or Java versions.
  • .mvn/wrapper/maven-wrapper.properties pins Maven 3.6.3.
  • CI builds and tests on JDK 8, 11, 17, 21 and 25; only spotless:check runs on JDK 25 (spotless-maven-plugin 3.x needs JDK 17+).

Both languages now say: JDK 8+ to build and test, JDK 17+ recommended locally and required for Spotless, use ./mvnw (Maven 3.6.3), or a local Maven 3.6.3+. Java 1.8 language level is still required.

FastExcel migration guide (en + zh-cn): URL image default

The guide said only http/https and public addresses are allowed by default. Since 2.1.0-incubating, UrlImageFetchPolicy defaults to an empty allowedHosts, and UrlImageConverter then throws IOException("Remote URL image fetching is disabled"). The guide now states that remote fetching is disabled by default and needs an explicit exact-host allowlist via UrlImageConverter.setFetchPolicy(...), that FastExcel code writing URL image fields will fail until it is configured, and links to the image docs' "URL Sources" section and the Security Model. This matches community/security-model.md.

Verified with npx docusaurus build (en and zh-cn); the new anchor links resolve.

Checklist

  • I have read the Contributor Guide.
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed. (docs only)

psxjoy and others added 2 commits November 12, 2026 20:05
…igration guide

The English and zh-cn contribution guides disagreed on the Maven and JDK
requirements and neither matched the build. State the real requirements:
JDK 8+ (CI matrix 8/11/17/21/25), JDK 17+ recommended and needed for
Spotless, and the Maven Wrapper pinned to 3.6.3.

The FastExcel migration guide still said URL images allow any public
http/https address by default. Since 2.1.0-incubating, remote fetching is
disabled until an exact-host allowlist is configured; update the English
and zh-cn guides to match UrlImageConverter.

@bengbengbalabalabeng bengbengbalabalabeng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@GOODBOY008 GOODBOY008 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@GOODBOY008
GOODBOY008 merged commit 5f3237a into apache:main Nov 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants