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

improve checkJavadocLinks.py to detect "invalid reference" #14287

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

rmuir
Copy link
Member

@rmuir rmuir commented Feb 24, 2025

See background by @mkhludnev on the dev list: https://lists.apache.org/thread/pm1szr9og6qhmjzp371xwk0mvwxxkd1l

In some cases: "invalid reference" is generated, passes through Xdoclint and broken-link checkers, yet links are broken.

Instead of a 404, javadocs seems to emit this in the resulting HTML:

<details class="invalid-tag">
<summary>invalid reference</summary>
<pre>flexible query parser</pre>
</details

Fix checkJavadocLinks.py to fail the build on these.

Closes #14285

Note: I rewound to before the fix was committed to this issue and validated it fails build. Not great error but par for the course for this checker, and it does the job.
Screen_Shot_2025-02-24_at_18 44 04

See background by @mkhludnev on the dev list: https://lists.apache.org/thread/pm1szr9og6qhmjzp371xwk0mvwxxkd1l

In some cases: "invalid reference" is generated, passes through Xdoclint and broken-link checkers, yet links are broken.

Instead of a 404, javadocs seems to emit this in the resulting HTML:

    <details class="invalid-tag">
    <summary>invalid reference</summary>
    <pre>flexible query parser</pre>
    </details

Fix checkJavadocLinks.py to fail the build on these.

Closes apache#14285
Copy link
Contributor

@dweiss dweiss left a comment

Choose a reason for hiding this comment

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

Thanks!

@rmuir rmuir merged commit e0f3520 into apache:main Feb 25, 2025
6 checks passed
asfgit pushed a commit that referenced this pull request Feb 25, 2025
See background by @mkhludnev on the dev list: https://lists.apache.org/thread/pm1szr9og6qhmjzp371xwk0mvwxxkd1l

In some cases: "invalid reference" is generated, passes through Xdoclint and broken-link checkers, yet links are broken.

Instead of a 404, javadocs seems to emit this in the resulting HTML:

    <details class="invalid-tag">
    <summary>invalid reference</summary>
    <pre>flexible query parser</pre>
    </details

Fix checkJavadocLinks.py to fail the build on these.

Closes #14285
@rmuir rmuir added this to the 10.2.0 milestone Feb 25, 2025
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.

improve checkJavadocLinks.py to detect "invalid reference"
2 participants