View Issue Details

IDProjectCategoryView StatusLast Update
0000550WackoWikiactionpublic2019-11-09 08:34
Reporteradministrator Assigned Toadministrator  
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
Product Version5.5.0 
Target Version5.5.16Fixed in Version5.5.16 
Summary0000550: added missing link path normalization
DescriptionBoth action use the LIKE statement but {{search}} fails with a starting slash (/).

AND (a.tag LIKE 'Doc/Russian/%' ...)

HERE is WHY:
In the search action it does not normalize the tag which is done in the
unwrap_link() function.

$page -> unwrap_link() -> $tag

It checks for relative and absolute link and resolves them to the correct tag.
For relative links it uses the $this->tag and for included pages the
$this->context[] array to determine the correct tag. The tag starts always
without a slash, like it is stored in the tag field in the database.

I suggest we use in the action the $page parameter and after normalization the
$tag parameter and NOT $for, $root and others, so it is consistent.
Steps To Reproduce{{search page="Sub/Page"}} // missing link path normalization
{{tree page="/Sub/Page"}}
TagsNo tags attached.

Issue History

Date Modified Username Field Change
2019-11-09 07:14 administrator New Issue
2019-11-09 07:14 administrator Status new => assigned
2019-11-09 07:14 administrator Assigned To => administrator
2019-11-09 07:14 administrator Status assigned => resolved
2019-11-09 07:14 administrator Resolution open => fixed
2019-11-09 07:14 administrator Fixed in Version => 5.5.16
2019-11-09 07:14 administrator Note Added: 0001076
2019-11-09 08:34 administrator Description Updated View Revisions