Search generates wrong files URL

Issue #172 new
Cesar Romero created an issue

When I use search feature, the result points to wrong file URL.

Search: "Resource" brings n results like

projetos/f10-2.0 » C:\F10\Repositorios\Mercurial\projetos\f10-2.0\F10Util/uF10Util.pas
Extrai o Resource do programa GBak
...

GBak.exe';

var
  Resource: TResourceStream
...

GBak', RT_RCDATA);
    Resource.SaveToFile(FilePath
...

Resource do programa GFix.exe do Firebird e retorna
...

FileName;

  try
    Resource := TResourceStream

the URL Points to:

http://repositorios.myserver.com.br/projetos/f10-2.0/files/tip/C%3A%5CF10%5CRepositorios%5CMercurial%5Cprojetos%5Cf10-2.0%5CF10Util/uF10Util.pas

When I click in the link it shows:

Not Found

The requested URL /projetos/f10-2.0/files/tip/C:\F10\Repositorios\Mercurial\projetos\f10-2.0\F10Util/uF10Util.pas was not found on this server.

and the correct file URL is:

http://repositorios.myserver.com.br/projetos/f10-2.0/files/54def1348ad3b4537ce001bfac00f6505b5d9eaf/F10Util/uF10Util.pas

Comments (1)

  1. Mads Kiilerich

    It seems to be a windows specific problem.

    You can perhaps try hacking kallithea/lib/indexers/daemon.py and query whoosh directly to figure out where the problem is. It seems like the daemon is putting the wrong filenames into the whoosh index.

  2. Log in to comment