Issue #172: Search generates wrong files URL (conservancy/kallithea)

Cesar Romero issues-reply at bitbucket.org
Tue Nov 17 18:13:21 UTC 2015


New issue 172: Search generates wrong files URL
https://bitbucket.org/conservancy/kallithea/issues/172/search-generates-wrong-files-url

Cesar Romero:

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

Search: "Resource" brings n results like


```
#!delphi

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
```







More information about the kallithea-general mailing list