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

Absent CD validation: URLs in repo with HTTP 404 error response #365

Open
dstadulis opened this issue Jul 1, 2022 · 2 comments · May be fixed by #670
Open

Absent CD validation: URLs in repo with HTTP 404 error response #365

dstadulis opened this issue Jul 1, 2022 · 2 comments · May be fixed by #670

Comments

@dstadulis
Copy link

Script to find URLs in repo with 404 error response

$ grep --color -rhsI . -oE -e "(http|https)://[a-zA-Z0-9./?@=_-]*" | sort | uniq | parallel 'echo -n "{} "; curl --write-out '%{http_code}' --silent --output /dev/null {}; echo' > ~/responsecodes

$ grep " 404" ~/responsecodes | awk '{print $1}' | tr -d \' | parallel 'grep -rn {}; echo'

Output

./lightning-network-tools/lnd/recovery-planning-for-failure.md:51:[Learn how to recover your funds.](https://docs.lightning.engineering/lightning-network-tools/lnd/recovery)

./docs/lnd/grpc/javascript.md:239:Javascript](https://developers.google.com/protocol-buffers/docs/reference/javascript-generated).

./community-resources/resource-list.md:110:* [LNBits](https://lnbits.org)

./the-lightning-network/lsat/aperture.md:38:[See how the client interceptor is coded in Aperture](https://github.com/lightninglabs/aperture/blob/master/lsat/client\_interceptor.go)

./lightning-network-tools/lnd/macaroons.md:44:The macaroon files are the only files with highly sensitive information that are not encrypted \(unlike the wallet file and the macaroon database file that contains the [root key](https://github.com/lightninglabs/docs.lightning.engineering/tree/33bc7e27861f932d5d0676912bf45cf608534ceb/docs/macaroons/README.md), these are always encrypted, even if no password is used\).
./lightning-network-tools/lnd/macaroons.md:127:The macaroon bakery is described in more detail in the [README in the macaroons package](https://github.com/lightninglabs/docs.lightning.engineering/tree/33bc7e27861f932d5d0676912bf45cf608534ceb/docs/macaroons/README.md).

./lightning-network-tools/lightning-terminal/lnc-npm.md:104:* Check out the relevant code in the project’s [readme](https://github.com/lightninglabs/lnc-web/blob/update-connect-demo/demos/connect-demo/README.md)

./the-lightning-network/taro.md:42:[Bitcoin UTXO](https://mirror.xyz/0xaFaBa30769374EA0F971300dE79c62Bf94B464d5/Yetu-6pZkbQCOpsBxswn\_7dGUZDxoBU8NrOQIZScwpg)

./build-a-lapp/local-cluster-setup-with-polar/README.md:5:This tutorial will leverage the Polar application for setting up a local cluster of Lightning Network nodes on regtest. Polar [can be downloaded](https://github.com/lightninglabs/docs.lightning.engineering/tree/9423e81a91e5a382442d5fa2fdacde019133dbcb/build-a-lapp/lightningpolar.com) for MacOS, Linux, and Windows. The source code is hosted [on Github](https://github.com/jamaljsr/polar/releases/).

./lightning-network-tools/lnd/safety.md:53:* For more technical information [see the aezeed README](https://github.com/lightninglabs/docs.lightning.engineering/tree/f123436bd902a6be74cb853447456c5c65307dd6/docs/aezeed/README.md).

./lightning-network-tools/lnd/safety.md:67:See the [high-level macaroons documentation](https://github.com/lightninglabs/docs.lightning.engineering/tree/f123436bd902a6be74cb853447456c5c65307dd6/docs/lnd/macaroons.md) or the [technical README](https://github.com/lightninglabs/docs.lightning.engineering/tree/f123436bd902a6be74cb853447456c5c65307dd6/docs/macaroons/README.md) for more information.

./lightning-network-tools/lightning-terminal/lightning-node-connect.md:53:[Read also: the gRPC service definition of Terminal Web Proxy.](https://github.com/lightninglabs/subasta/blob/master/auctioneerrpc/hashmail.proto)

./lightning-network-tools/lnd/macaroons.md:123:Have a look at the [Java GRPC example](https://github.com/lightninglabs/docs.lightning.engineering/tree/33bc7e27861f932d5d0676912bf45cf608534ceb/docs/grpc/java.md) for programmatic usage details.

Note: some URL point to internal LL resources which will return 404 for outside viewers but not for repo maintainers logged in.

@kaloudis
Copy link

kaloudis commented Jul 1, 2022

@Liongrass
Copy link
Contributor

Thank you @dstadulis and @kaloudis ! I've gone through all these links and updated them. In some instances the links are for articles that are not currently displayed in the gitbook, I don't know why they remain in the repo but they could be removed. In other cases a manual inspection didn't reveal any errors.

I've also removed the internal link.

@dstadulis dstadulis changed the title URLs in repo with HTTP 404 error response Absenst CD validation: URLs in repo with HTTP 404 error response Sep 17, 2024
@dstadulis dstadulis changed the title Absenst CD validation: URLs in repo with HTTP 404 error response Absent CD validation: URLs in repo with HTTP 404 error response Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants