Skip to content

[BUG] Some links are reported as 404 in AsciiDoc. #90

Description

@afalhambra-hivemq

Describe the bug
There are some special cases where some links are reported as 404. For example those AsciiDoc containing links ending with an special character. It most likely seems to be the problem is when parsing these links. Some of these examples are:

  • https://en.wikipedia.org/wiki/XML_Schema_(W3C) - Reported as 404, most likely because of the character at the end ).
  • . Now you can start and stop runs on your local machine (see https://hivemq.github.io/mqtt-cli/docs/swarm/): - Link here is reported as 404, most likely because of the characters at the end /).
  • https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.30/mysql-connector-java-8.0.30.jar'. Reported as 404, again most likely because of the character at the end '

To Reproduce
Steps to reproduce the behavior:

  1. Create folder called docs and a adoc file inside containing one of the links shown in the description above of this PR
  2. Create a config file named linkspector.yml with the following content:
dirs:
  - ./docs
fileExtensions:
  - adoc
useGitIgnore: true
  1. Run linkspector check -c linkspector.yml
  2. See errors shown

Expected behavior
No errors or dead links are shown

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions