Skip to content

DOC: No trivial redirects - #7254

Merged
hjmjohnson merged 3 commits into
InsightSoftwareConsortium:mainfrom
albert-github:feature/bug_link_20261127_2
Nov 29, 2026
Merged

hjmjohnson merged 3 commits into
InsightSoftwareConsortium:mainfrom
albert-github:feature/bug_link_20261127_2

Conversation

@albert-github

Copy link
Copy Markdown
Contributor

When running a link checker on the ITK documentation a number of links are mentioned under "List of redirects" where a non-trivial change is possible, these have been applied (after a small discussion in #7253).

PR Checklist

When running a link checker on the ITK documentation a number of links are mentioned under "List of redirects" where a non-trivial change is possible, these have been applied (after a small discussion in InsightSoftwareConsortium#7253).
@github-actions github-actions Bot added type:Documentation Documentation improvement or change area:Python wrapping Python bindings for a class area:Core Issues affecting the Core module area:IO Issues affecting the IO module area:ThirdParty Issues affecting the ThirdParty module area:Numerics Issues affecting the Numerics module labels Nov 27, 2026
@greptile-apps

greptile-apps Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

security Security Review

This PR appears safe to merge from a security standpoint.

What was checked
  • The PR only rewrites URLs inside doc comments in headers and CMake documentation strings; no code, build logic, or dependency behavior changes.
  • No input handling, reader, factory, or CI code is touched, so untrusted-file parsing and plugin loading are unaffected.
  • No new credentials, secrets, or endpoints are introduced by the changed text.

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The documentation-only changes appear safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The documentation-only changes appear safe to merge.

Summary

Updates external links in C++ documentation and CMake module descriptions.

  • ITK documentation links now point to updated web addresses.

Reviews (1) · Last reviewed commit: "DOC: No trivial redirects" · Reviewed by Greptile

@hjmjohnson hjmjohnson 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.

Thanks, albert-github. The double-conversion, libtiff, Poynton, and Hall-Beyer GLCM replacements resolve to the right documents.

Two of the new targets are generic landing pages that no longer hold what the comment cites, and I could not find a live copy of either: every rules.sonarsource.com/cpp/... path and every CMRR Stimulate path (www.cmrr.umn.edu/stimulate/..., garwoodlab.cmrr.umn.edu, the MTM loadIt page) redirects or no longer resolves. Inline comments suggest dropping the SonarSource URL (the rule id and message are already quoted), and capturing the Stimulate format notes in the module itself.

Outside the diff: the ftp://ftp.cmrr.umn.edu/pub/stimulate/data/ line just below in itkStimulateImageIO.h does not respond either. Item 7 of #7253 (SLATEC) has no source left in the tree, so nothing to do for it here.

Suggested Modules/IO/Stimulate/README.md

Taken from the Stimulate User's Guide appendix and checked against the attributes StimulateImageIO parses.

# ITKIOStimulate

Reads and writes Stimulate (CMRR, University of Minnesota) SDT/SPR images.
The format description below is from the Stimulate User's Guide, appendix
"Sdt File Format", which is no longer online.

## File pair

- `.sdt` (Signal DaTa): raw binary voxel data only.
- `.spr` (Signal PaRameters): ASCII, one `attribute: value` pair per line.

Pass the `.spr` file to the reader, not the `.sdt` file.

## Mandatory parameters

| Attribute | Meaning |
|---|---|
| `numDim` | number of dimensions |
| `dim` | number of voxels along each dimension |
| `dataType` | one of `BYTE`, `WORD`, `LWORD`, `REAL`, `COMPLEX` |

## Optional parameters

| Attribute | Meaning |
|---|---|
| `origin` | center of the first voxel, one value per dimension; if absent and `fov` is given, the image is centered |
| `fov` | distance between the outer edges of the first and last voxel, per dimension; default `interval * dim` |
| `interval` | center-to-center voxel spacing, per dimension; default `fov / dim` |
| `displayRange` | `low high`; values below `low` display black, above `high` white, linear between |
| `fidName` | name of the associated `.sdt` file |
| `sdtOrient` | slice orientation, e.g. `sag` |

## Example

```text
numDim: 4
dim: 128 128 20 150
origin: -10.000000 -10.000000 0.000000 0.000000
fov: 20.000000 20.000000 2.000000 15.000000
interval: 0.156250 0.156250 1.000000 1.000000
dataType: REAL
displayRange: 0.000000 347.904358
fidName: stimFid.sdt
sdtOrient: sag
```

Comment thread Modules/IO/Stimulate/itk-module.cmake Resolved
Comment thread Modules/Core/Common/include/itkCopy.h Resolved
@hjmjohnson hjmjohnson mentioned this pull request Nov 27, 2026
2 tasks done
@albert-github

Copy link
Copy Markdown
Contributor Author

Outside the diff: the ftp://ftp.cmrr.umn.edu/pub/stimulate/data/ line just below in itkStimulateImageIO.h does not respond either.

The broken links I'm going to list later on and this might be one of them (though I currently don't see it in my list, might be that the site is currently down?, I'll keep it in mind)

Item 7 of #7253 (SLATEC) has no source left in the tree, so nothing to do for it here.

Strangely enough I do see it in my documentation though and not in the official ... might be that there is still some old stuff left in my build tree (I see there still a Modules/ThirdParty/Netlib directory ), so something to do for me ... and probably a false positive from my side.

@dzenanz

dzenanz commented Nov 27, 2026

Copy link
Copy Markdown
Member

When I instructed Claude to remove slatec references, it said:

upstream/main and your dev branch (at b3648a37a2d) have no SLATEC references left to remove. The only mentions are file lists in the old release notes Documentation/docs/releases/3.14.md and 3.16.md. Those are records of past releases, so I left them alone.

The netlib.org/slatec link you saw is still in branches that predate the Netlib module's removal (9a992dd50d4, June 2026):

  • your local main, which is stale (from 2025-09-04),
  • release and slicer-v5.4.6-…,
  • upstream/release and upstream/release-5.4.

On those branches the link is in Modules/ThirdParty/Netlib/itk-module.cmake and Modules/ThirdParty/Netlib/src/netlib/slatec/README.txt. Removing it there means backporting the module removal. That is not a doc-only change: ITKStatistics on those branches still links against itkNetlibSlatec. So the backport would also need 4f3fbe26f7d, which moved the statistics distributions onto std and Eigen special functions.

@albert-github

Copy link
Copy Markdown
Contributor Author

@dzenanz

I'm going to see if I can create a new build directory, during the weekend, my current build build directory is a bit dirty.

Apply suggestions from review
@albert-github

Copy link
Copy Markdown
Contributor Author

@dzenanz @hjmjohnson
Looks like my notes were still understandable and I created a new build directory without any problem.
The page about NetLib / slatec is gone now.

I also did most of the suggestion, still open the "Poynton" suggestion (#7254 (comment)) though looks like I have no access to that site either...

@hjmjohnson hjmjohnson 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.

Thanks, albert-github. I checked 9e089bd: the SonarSource URL is gone, the Stimulate header and itk-module.cmake now carry the suggested text, and the dead ftp://ftp.cmrr.umn.edu line went with it.

Two things remain. First, both new Stimulate comments point at Modules/IO/Stimulate/README.md, which this PR does not add, so they now reference a file that does not exist. The suggested README is in the collapsed block of my previous review; adding it (edited as you like) closes this. Second, the Poynton link you could not open now redirects to a 403 page; the Colour FAQ moved to https://poynton.ca/pdf/ColourFAQ.pdf (suggestions inline).

nit: the PR now has two commits with the same subject, DOC: No trivial redirects. Squashing them into one before merge keeps the history clean.

- corrected Poynton link
- added file Modules/IO/Stimulate/README.md
@albert-github

Copy link
Copy Markdown
Contributor Author

nit: the PR now has two commits with the same subject, DOC: No trivial redirects. Squashing them into one before merge keeps the history clean.

I always try to keep the subject the same, the changes always are because of the same problem.
It makes sense to squash the PR upon merging, @dzenanz always did this for me as I have no idea how to properly do it (git is more or less a black box for me)

@hjmjohnson
hjmjohnson dismissed stale reviews from themself November 29, 2026 14:18

Verified at 77139b2: Stimulate README added and Poynton link now points to the PDF. Requested changes are addressed; dismissing my change request.

@hjmjohnson
hjmjohnson merged commit 5ca98b2 into InsightSoftwareConsortium:main Nov 29, 2026
19 checks passed
@albert-github
albert-github deleted the feature/bug_link_20261127_2 branch November 29, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Core Issues affecting the Core module area:IO Issues affecting the IO module area:Numerics Issues affecting the Numerics module area:Python wrapping Python bindings for a class area:ThirdParty Issues affecting the ThirdParty module type:Documentation Documentation improvement or change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants