ndmitchell / ndmitchell/hoogle

hoogle server don't unescape path.

Open
#83 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

fixed in v5
Dominant language
Haskell
Stars
803
Forks
152
PR merge metrics
No merged PRs in 30d

Description

Situation.

  1. Document path contain space, less than, or the like.
  2. Hoogle was booted by command "hoogle server --local" .
  3. Search by hoogle on local server.
  4. Click item the link.

Result.
Server report "File not found".
Hoogle server looking for path that has not been unescaped.

For example, I search "Just".

http://localhost/file//c:/Program%20Files/Haskell%20Platform/2014.2.0.0/doc/html/libraries/base-4.7.0.1/Prelude.html#v:Just

%20 was not unescaped.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by running hoogle server --local, searching for Just, and opening the result URL shown in the report. Investigate the local server's handling of the encoded path, and consider the issue complete when paths containing %20, <, or similar characters load the referenced documentation instead of returning "File not found".

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
backend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.