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

Started failing for valid link containing %28/%29 after release of link-check@4.5.3 #142

Closed
DavidAnson opened this issue Dec 6, 2020 · 12 comments
Assignees
Labels
bug issue is a bug or pull request fixes a bug

Comments

@DavidAnson
Copy link

This worked 24 hours ago (I run CI nightly) with v3.8.3 and fails now with v3.8.4. However, downgrading to v3.8.3 does not help. Perhaps a dependency updated their patch version?

pi@pi:~/m-l-c $ cat issue.md 
# Issue

[link](https://en.wikipedia.org/wiki/Glob_%28programming%29)

pi@pi:~/m-l-c $ npm install markdown-link-check --no-package-lock
+ markdown-link-check@3.8.4

pi@pi:~/m-l-c $ ./node_modules/.bin/markdown-link-check --verbose issue.md 

FILE: issue.md
[✖] https://en.wikipedia.org/wiki/Glob_%28programming%29 → Status: 400

1 links checked.

ERROR: 1 dead links found!
[✖] https://en.wikipedia.org/wiki/Glob_%28programming%29 → Status: 400
pi@pi:~/m-l-c $ 
@DavidAnson
Copy link
Author

Downgrading to link-check@4.5.2 fixes the break.

@DavidAnson
Copy link
Author

pi@pi:~/m-l-c $ cat issue.md 
# Issue

[link](https://en.wikipedia.org/wiki/Glob_%28programming%29)

pi@pi:~/m-l-c $ npm install markdown-link-check@3.8.3 --no-package-lock
+ markdown-link-check@3.8.3

pi@pi:~/m-l-c $ npm install link-check@4.5.2 --no-package-lock
+ link-check@4.5.2

pi@pi:~/m-l-c $ ./node_modules/.bin/markdown-link-check --verbose issue.md 

FILE: issue.md
[✓] https://en.wikipedia.org/wiki/Glob_%28programming%29 → Status: 200

1 links checked.
pi@pi:~/m-l-c $ 

@DavidAnson DavidAnson changed the title Started failing for valid link containing %28/%29 in the last 24 hours Started failing for valid link containing %28/%29 after release of link-check@4.5.3 Dec 6, 2020
@NicolasMassart
Copy link
Contributor

I reproduced and confirmed the bug. I will investigate on the link-check side first.

@NicolasMassart NicolasMassart self-assigned this Dec 7, 2020
@NicolasMassart NicolasMassart added the bug issue is a bug or pull request fixes a bug label Dec 7, 2020
@NicolasMassart NicolasMassart added this to In progress in Issues progress Dec 7, 2020
@TriplEight
Copy link

Also fails on this link: https://research.web3.foundation/en/latest/polkadot/Token%20Economics.html#inflation-model

@TriplEight
Copy link

For those who uses markdown-link-check within gaurav-nelson/github-action-markdown-link-check/ Github Action I've had an issue with %20 in URL and had to workaround it with gaurav-nelson/github-action-markdown-link-check#85

@kingthorin
Copy link

kingthorin commented Dec 9, 2020

I've encountered numerous failures in the last 2 days since the latest was pushed. As noted above all occurrences have URLEncoded elements.
Ex:

@tcort tcort closed this as completed in 547a978 Dec 9, 2020
Issues progress automation moved this from In progress to Done Dec 9, 2020
@tcort
Copy link
Owner

tcort commented Dec 9, 2020

I've published version 3.8.5 which should solve this.

@TriplEight
Copy link

@tcort thanks, but it doesn't seem working: gaurav-nelson/github-action-markdown-link-check#86

@TriplEight
Copy link

TriplEight commented Dec 9, 2020

$someone has fixed my example link https://research.web3.foundation/en/latest/polkadot/Token%20Economics.html#inflation-model and now I fail to find a good example with %20

@NicolasMassart
Copy link
Contributor

It looks like gaurav-nelson/github-action-markdown-link-check#86 tests are successful.

The correct Polkadot link is https://research.web3.foundation/en/latest/polkadot/economics/1-token-economics.html#inflation-model, the one you provided is broken and is reported as broken by link-check not because of the % but because the page doesn't exist (deleted?) and was not redirected, that seems correct to me.

@TriplEight
Copy link

yes, the link was as I mentioned yesterday. Now I'll put https://www.google.com/?q=url%20with%20a%20space to a test. And yes, it's working.

@kingthorin
Copy link

Thanks, I've only been able to re-tests one occurrence but it does seem fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue is a bug or pull request fixes a bug
Projects
Development

No branches or pull requests

5 participants