Kallithea issues archive

Issue #172: Search generates wrong files URL

Reported by: Cesar Romero
State: new
Created on: 2015-11-17 18:13
Updated on: 2015-12-22 14:32

Description

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

Attachments

Comments

Comment by Mads Kiilerich, on 2015-12-22 14:32

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.