spring-projects / spring-projects/spring-security

Javadoc Search contains /undefined in URLs which leads to 404s

Open
#10,944 9 comments 0 reactions 1 assignee View on GitHub

@sjohnr is already working on this.

Since Apr 29, 2022.

in: docs type: bug
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

Originally reported via @wilkinsona

On https://docs.spring.io/spring-security/site/docs/5.7.0-SNAPSHOT/api/org/springframework/security/config/annotation/web/builders/HttpSecurity.html, if I search for WebSecurityConfigurerAdapter and click on the only result in the Types section, I takes me to https://docs.spring.io/spring-security/site/docs/5.7.0-SNAPSHOT/api/undefined/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.htmlwhich 404s.

It appears to be related to https://bugs.openjdk.java.net/browse/JDK-8215291 which was fixed in JDK 12. This seems to be confirmed by the fact that https://docs.spring.io/spring-security/site/docs/5.7.0-SNAPSHOT/api/org/springframework/security/config/annotation/web/builders/HttpSecurity.html works properly and is using JDK 17.

There are reports that adding --no-module-directories will fix the links, but it also breaks links to classes and interfaces that are in modules (i.e. JDK classes/interfaces).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.